Positioning method and related device
By monitoring the automatic gain and output signal amplitude of the GNSS receiver, identifying faults and outputting prompts, the positioning inaccurate problem caused by GNSS receiver failure is solved, and the positioning accuracy and user experience are improved.
Patent Information
- Application Number
- CN202410086678.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2025-07-22
AI Technical Summary
The location service caused by GNSS receiver failure is inaccurate, and users cannot distinguish whether the location error is caused by the environment or the equipment failure, which affects the user experience.
By judging the automatic gain and output signal amplitude of the positioning signal receiver, outputting fault prompts, helping users identify the cause of the fault, and reducing the impact of the interference signal when necessary, selecting the appropriate frequency band for positioning.
Quickly identify positioning signal receiver faults, improve positioning accuracy, reduce the impact of environmental interference on positioning results, and improve user experience.
Smart Images

Figure CN120352893A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technologies, and in particular, to a positioning method and related devices. Background Art
[0002] The global navigation satellite system (GNSS) can provide services such as navigation and positioning, and can be widely used in fields such as transportation, mechanical control, Internet of Things, agriculture, and forestry.
[0003] A GNSS receiver can receive signals from one or more satellites and perform navigation and positioning based on the satellite signals. When the GNSS receiver in the device fails, the device cannot provide accurate positioning services. Moreover, the user cannot know whether the error in the positioning result is caused by a GNSS receiver failure. Long-term positioning errors of the device in the case of GNSS failure will reduce the user experience. Summary of the Invention
[0004] This application provides a positioning method and related devices, which can determine whether a positioning signal receiver fails according to the automatic gain corresponding to the positioning signal and the magnitude of the output signal amplitude, and output a fault prompt when the positioning signal receiver fails.
[0005] In a first aspect, this application provides a positioning method. Among them, an electronic device receives a first-band signal; the electronic device obtains a first automatic gain of the first-band signal and a first output signal amplitude, and the first output signal amplitude includes the amplitude of the output signal of the first-band signal under the first automatic gain; when the first automatic gain is greater than a first gain threshold and the first output signal amplitude is less than a first amplitude threshold, the electronic device outputs a first prompt, and the first prompt is used to indicate that the positioning signal receiver of the electronic device fails.
[0006] It can be seen that the electronic device can determine whether the positioning receiver that receives the first-band signal fails according to the automatic gain corresponding to the first-band signal and the output signal amplitude. Among them, a relatively large automatic gain and a relatively low output signal amplitude may indicate that a front-end path of the positioning signal receiver fails. The above method can simply and quickly determine whether the positioning signal receiver fails, and output a fault prompt when the positioning signal receiver fails. The above fault prompt can provide an early warning of the positioning signal receiver failure for the user, so as to facilitate the user to distinguish whether the weak positioning signal or positioning error is caused by the current environment or by a device failure. In this way, when receiving the above fault prompt, the user can timely repair the electronic device and eliminate the fault in the positioning signal receiver.
[0007] In combination with the first aspect, in some embodiments, the electronic device receives a second frequency band signal; the electronic device obtains the second automatic gain of the second frequency band signal and the amplitude of the second output signal, where the amplitude of the second output signal includes the amplitude of the signal output by the second frequency band signal under the second automatic gain; when the first automatic gain is greater than the first gain threshold, the second automatic gain is greater than the second gain threshold, the amplitude of the first output signal is less than the first amplitude threshold, and the amplitude of the second output signal is less than the second amplitude threshold, the electronic device outputs a first prompt.
[0008] It can be seen that if the positioning signal receiver in the electronic device is a dual - frequency receiver, then in addition to receiving the first frequency band signal, the electronic device can also receive the second frequency band signal. The electronic device can perform positioning by combining the signals of the two frequency bands. The electronic device can perform fault detection on the front - end paths corresponding to the signals of the two frequency bands. When faults occur in the front - end paths corresponding to the signals of the two frequency bands, the electronic device can output a fault prompt.
[0009] In some embodiments, if the front - end path corresponding to the first frequency band signal fails (i.e., the first automatic gain is greater than the first gain threshold and the amplitude of the first output signal is less than the first amplitude threshold), and the front - end path corresponding to the second frequency band signal works normally (i.e., the second automatic gain is less than or equal to the second gain threshold, and / or the amplitude of the second output signal is greater than or equal to the second amplitude threshold), then the electronic device can perform positioning only using the second frequency band signal. If the front - end path corresponding to the second frequency band signal fails (i.e., the second automatic gain is greater than the second gain threshold and the amplitude of the second output signal is less than the second amplitude threshold), and the front - end path corresponding to the first frequency band signal works normally (i.e., the first automatic gain is less than or equal to the first gain threshold, and / or the amplitude of the first output signal is greater than or equal to the first amplitude threshold), then the electronic device can perform positioning only using the first frequency band signal.
[0010] That is to say, in the case where the front - end path corresponding to one frequency band signal in the dual - frequency receiver works normally while the front - end path corresponding to the other frequency band signal fails, the electronic device can perform positioning only using the signal received by the front - end path that can work normally. Since the electronic device can still use the signal of one frequency band to provide a relatively accurate positioning service, the electronic device can temporarily not output a fault prompt.
[0011] In combination with the first aspect, in some embodiments, the first automatic gain includes multiple automatic gains of the first frequency band signal within the first time period, the second automatic gain includes multiple automatic gains of the second frequency band signal within the first time period, the first output signal amplitude includes multiple output signal amplitudes of the first frequency band signal within the first time period, and the second output signal amplitude includes multiple output signal amplitudes of the second frequency band signal within the first time period; wherein, the first automatic gain is greater than the first gain threshold, specifically including: the multiple automatic gains included in the first automatic gain are greater than the first gain threshold, or the average value of the multiple automatic gains included in the first automatic gain is greater than the first gain threshold; the second automatic gain is greater than the second gain threshold, specifically including: the multiple automatic gains included in the second automatic gain are greater than the second gain threshold, or the average value of the multiple automatic gains included in the second automatic gain is greater than the second gain threshold; the first output signal amplitude is less than the first amplitude threshold, specifically including: the multiple output signal amplitudes included in the first output signal amplitude are less than the first amplitude threshold, or the average value of the multiple output signal amplitudes included in the first output signal amplitude is less than the first amplitude threshold; the second output signal amplitude is less than the second amplitude threshold, specifically including: the multiple output signal amplitudes included in the second output signal amplitude are less than the second amplitude threshold, or the average value of the multiple output signal amplitudes included in the second output signal amplitude is less than the second amplitude threshold.
[0012] In some embodiments, the above-mentioned first automatic gain may also be the automatic gain corresponding to the first frequency band signal at a moment, or the automatic gain corresponding to one frame of the first frequency band signal. The above-mentioned first output signal amplitude may also be the output signal amplitude corresponding to the first frequency band signal at a moment, or the output signal amplitude corresponding to one frame of the first frequency band signal. The above-mentioned second automatic gain may also be the automatic gain corresponding to the second frequency band signal at a moment, or the automatic gain corresponding to one frame of the second frequency band signal. The above-mentioned second output signal amplitude may also be the output signal amplitude corresponding to the second frequency band signal at a moment, or the output signal amplitude corresponding to one frame of the second frequency band signal.
[0013] In combination with the first aspect, in some embodiments, when the second automatic gain is greater than the second gain threshold, the second output signal amplitude is less than the second amplitude threshold, and the variation amount between the multiple automatic gains included in the first automatic gain is greater than the first variation amount threshold, the electronic device outputs a second prompt, and the second prompt is used to indicate that there is strong interference at the location where the electronic device is located; when the first automatic gain is greater than the first gain threshold, the first output signal amplitude is less than the first amplitude threshold, and the variation amount between the multiple automatic gains included in the second automatic gain is greater than the second variation amount threshold, the electronic device outputs a second prompt.
[0014] The variation amount between multiple automatic gains included in the first automatic gain can be the difference between the largest automatic gain and the smallest automatic gain among the multiple automatic gains. The variation amount between multiple automatic gains included in the second automatic gain can be the difference between the largest automatic gain and the smallest automatic gain among the multiple automatic gains.
[0015] It can be understood that when the second automatic gain is greater than the second gain threshold and the second output signal amplitude is less than the second amplitude threshold, it can indicate a fault in the front-end path corresponding to the second frequency band signal. When the variation amount between multiple automatic gains included in the first automatic gain is greater than the first variation amount threshold, it can indicate that the multiple automatic gains included in the first automatic gain fluctuate greatly. That is, not all of the multiple automatic gains included in the first automatic gain are greater than the first gain threshold. This can indicate that the front-end path corresponding to the first frequency band signal is operating normally. And the large fluctuation of the multiple automatic gains included in the first automatic gain can indicate that the electronic device is strongly interfered by the co-frequency signal of the first frequency band signal. The electronic device outputting the second prompt can be convenient for distinguishing and locating whether the error is caused by the current environment or by a device fault.
[0016] Similarly, when the first automatic gain is greater than the first gain threshold and the first output signal amplitude is less than the first amplitude threshold, it can indicate a fault in the front-end path corresponding to the first frequency band signal. When the variation amount between multiple automatic gains included in the second automatic gain is greater than the second variation amount threshold, it can indicate that the multiple automatic gains included in the second automatic gain fluctuate greatly. That is, not all of the multiple automatic gains included in the second automatic gain are greater than the first gain threshold. This can indicate that the front-end path corresponding to the second frequency band signal is operating normally.
[0017] The first variation amount threshold can refer to the first fluctuation threshold or the second fluctuation threshold in the subsequent embodiments of this application. For example, the first variation amount threshold can be the first fluctuation threshold, or the second fluctuation threshold, or a value between the first fluctuation threshold and the second fluctuation threshold. The second variation amount threshold can refer to the third fluctuation threshold or the fourth fluctuation threshold in the subsequent embodiments of this application. For example, the second variation amount threshold can be the third fluctuation threshold, or the fourth fluctuation threshold, or a value between the third fluctuation threshold and the fourth fluctuation threshold. The first variation amount threshold and the second variation amount threshold can be the same or different. The embodiments of this application do not limit the values of the first variation amount threshold and the second variation amount threshold.
[0018] In combination with the first aspect, in some embodiments, the electronic device determines a first gain fluctuation of a first frequency band signal and a second gain fluctuation of a second frequency band signal within a second time period. The first gain fluctuation is the change amount of the automatic gain of the first frequency band signal within the second time period, and the second gain fluctuation is the change amount of the automatic gain of the second frequency band signal within the second time period. When the first gain fluctuation is greater than or equal to a first fluctuation threshold and the second gain fluctuation is less than a third fluctuation threshold, the electronic device reduces the weight of the first frequency band signal and uses the second frequency band signal and the down-weighted first frequency band signal for positioning.
[0019] The first gain fluctuation being greater than or equal to the first fluctuation threshold may indicate that there are more interference components in the first frequency band signal. The second gain fluctuation being less than the third fluctuation threshold may indicate that there are fewer interference components in the second frequency band signal.
[0020] It can be seen that the electronic device can receive signals of multiple frequency bands. When there are more interference components in the first frequency band signal while there are no or only fewer interference components in the second frequency band signal, the electronic device can reduce the weight of the first frequency band signal and then combine it with the second frequency band signal for positioning. The above method can reduce the influence of the interference components in the first frequency band signal on the positioning result and improve the positioning accuracy.
[0021] In combination with the first aspect, in some embodiments, the output signal amplitude of the first frequency band signal within the second time period is greater than or equal to a first amplitude threshold; the output signal amplitude of the second frequency band signal within the second time period is greater than or equal to a second amplitude threshold.
[0022] In combination with the first aspect, in some embodiments, the greater the difference between the first gain fluctuation and the first fluctuation threshold, the greater the amount of down-weighting of the first frequency band signal by the electronic device.
[0023] It can be understood that the first gain fluctuation is greater than the first fluctuation threshold, and the greater the difference between the first gain fluctuation and the first fluctuation threshold, the more interference components can be indicated in the first frequency band signal. Therefore, the more interference components in the first frequency band signal, the more the electronic device down-weights the first frequency band signal when using the first frequency band signal for positioning. This can better reduce the influence of the interference components in the first frequency band signal on the positioning result and improve the positioning accuracy.
[0024] In combination with the first aspect, in some embodiments, when the first gain fluctuation is greater than or equal to a second fluctuation threshold and the second gain fluctuation is less than a fourth fluctuation threshold, the electronic device uses only the second frequency band signal for positioning, where the second fluctuation threshold is greater than the first fluctuation threshold and the fourth fluctuation threshold is greater than the third fluctuation threshold.
[0025] Understandably, if the first gain fluctuation is greater than or equal to the second fluctuation threshold, it can indicate that the signal in the first frequency band is severely interfered. Such interferences will cause a serious decline in the observed quality of the signal in the first frequency band, and the signal in the first frequency band is not suitable for positioning. If the second gain fluctuation is less than the fourth fluctuation threshold, it can indicate that the signal in the first frequency band is not severely interfered. Therefore, the electronic device can reduce the weight value corresponding to the signal in the first frequency band to 0, that is, only use the signal in the second frequency band for positioning. This can avoid the influence of the interference component in the first frequency band signal on the positioning result and improve the positioning accuracy.
[0026] Combined with the first aspect, in some embodiments, when the first gain fluctuation is less than the first fluctuation threshold and the second gain fluctuation is greater than or equal to the third fluctuation threshold, the electronic device reduces the weight of the signal in the second frequency band and uses the signal in the first frequency band and the down-weighted signal in the second frequency band for positioning.
[0027] The second gain fluctuation being greater than or equal to the third fluctuation threshold can indicate that there are more interference components in the signal of the second frequency band. The first gain fluctuation being less than the first fluctuation threshold can indicate that there are fewer interference components in the signal of the second frequency band.
[0028] It can be seen that when there are more interference components in the signal of the second frequency band while there are no or only fewer interference components in the signal of the first frequency band, the electronic device can reduce the weight of the signal in the second frequency band and then combine it with the signal in the first frequency band for positioning. The above method can reduce the influence of the interference components in the signal of the second frequency band on the positioning result and improve the positioning accuracy.
[0029] Combined with the first aspect, in some embodiments, the greater the difference between the second gain fluctuation and the third fluctuation threshold, the greater the degree of weight reduction of the signal in the second frequency band by the electronic device.
[0030] Combined with the first aspect, in some embodiments, when the first gain fluctuation is less than the second fluctuation threshold and the second gain fluctuation is greater than or equal to the fourth fluctuation threshold, the electronic device only uses the signal in the first frequency band for positioning, and the second fluctuation threshold is greater than the first fluctuation threshold. The second gain fluctuation being greater than or equal to the fourth fluctuation threshold can indicate that the signal in the second frequency band is severely interfered.
[0031] Combined with the first aspect, in some embodiments, when the first gain fluctuation is less than the first fluctuation threshold and the second gain fluctuation is less than the third fluctuation threshold, the electronic device uses the signal in the first frequency band and the signal in the second frequency band for positioning.
[0032] In combination with the first aspect, in some embodiments, the anti-interference ability of the second frequency band is stronger than that of the first frequency band. For example, the first frequency band may be the L1 frequency band, and the second frequency band may be the L2 frequency band. When the first gain fluctuation is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, and the second gain fluctuation is greater than or equal to the third fluctuation threshold and less than the fourth fluctuation threshold, or when the first gain fluctuation is greater than or equal to the second fluctuation threshold and the second gain fluctuation is greater than or equal to the fourth fluctuation threshold, the electronic device only uses the second frequency band signal for positioning.
[0033] In a second aspect, the present application provides an electronic device. The electronic device includes a positioning signal receiver, a memory, and a processor. The positioning signal receiver is configured to receive signals of one or more frequency bands, the memory is configured to store a computer program, and the processor is configured to call the computer program so that the electronic device executes any possible implementation method in the first aspect.
[0034] In a third aspect, the present application provides a computer-readable storage medium, including instructions, which when running on an electronic device, cause the electronic device to execute any possible implementation method in the first aspect.
[0035] In a fourth aspect, the present application provides a computer program product, which may include computer instructions, which when running on an electronic device, cause the electronic device to execute any possible implementation method in the first aspect.
[0036] In a fifth aspect, the present application provides a chip, which is applied to an electronic device. The chip includes one or more processors, and the processors are configured to call computer instructions to cause the electronic device to execute any possible implementation method in the first aspect.
[0037] It can be understood that the electronic device provided in the second aspect, the computer-readable storage medium provided in the third aspect, the computer program product provided in the fourth aspect, and the chip provided in the fifth aspect are all used to execute the method provided in the embodiments of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be elaborated here. Description of the Drawings
[0038] Figure 1 is a schematic structural diagram of a device 100 provided in an embodiment of the present application;
[0039] Figure 2 is a schematic structural diagram of a positioning signal receiver provided in an embodiment of the present application;
[0040] Figure 3 is a flowchart of a positioning method provided in an embodiment of the present application;
[0041] Figure 4It is a flowchart of a method for detecting faults in a positioning signal receiver provided by an embodiment of the present application. Detailed implementation manner
[0042] The following describes the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and claims of the present application, the singular forms "a", "the", "above-mentioned", "this" and "this one" are also intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one" and "one or more" mean one or more than two (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship.
[0043] The reference to "an embodiment" or "some embodiments" etc. described in this specification means that a specific feature, structure or characteristic described in combination with that embodiment is included in one or more embodiments of the present application. Thus, the statements "in an embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" etc. that appear in different places in this specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "include", "comprise", "have" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise stated. "First" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features.
[0044] In the embodiments of the present application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplarily" or "for example" in the embodiments of the present application should not be construed as being more preferred or more advantageous than other embodiments or design solutions. Rather, the use of words such as "exemplarily" or "for example" is intended to present relevant concepts in a specific manner.
[0045] The present application provides a positioning method, which can be applied to a device including a positioning signal receiver. The positioning signal receiver can receive signals in two frequency bands. For example, signals in the L1 frequency band, signals in the L5 frequency band, and so on. The center frequency of the L1 frequency band is 1575.42 MHz (which can be referred to as the L1 frequency point). The center frequency of the L5 frequency band is 1176.45 MHz (which can be referred to as the L5 frequency point). The signals in the L1 frequency band include positioning signals in the L1 frequency band (i.e., satellite signals in the L1 frequency band). The signals in the L5 frequency band include positioning signals in the L5 frequency band (i.e., satellite signals in the L5 frequency band). When the positioning signal receiver receives signals, it may be interfered by co-frequency devices in the environment. For example, there are multiple L1 co-frequency devices in the environment where the positioning signal receiver is located. The L1 co-frequency devices can include devices operating near the L1 frequency point. The signals received by the positioning signal receiver include not only the satellite signals in the L1 frequency band but also the L1 frequency band signals transmitted by the L1 co-frequency devices. When the signals received by the positioning signal receiver contain a large amount of interference signals from the L1 co-frequency devices, the bit error rate of the satellite signal data in the L1 frequency band increases, resulting in a decrease in the observation quality of the satellite signal and a reduction in the positioning accuracy of the device.
[0046] The positioning signal receiver may include an automatic gain controller to control the amplitude of the signals input to the backend. When there is strong interference in the received signals, the automatic gain is small. When the interference in the received signals is weak, the automatic gain is large. Therefore, when the positioning signal receiver is interfered randomly during signal reception, the automatic gain will fluctuate. Among them, the stronger the fluctuation of the automatic gain, the stronger the interference in the signals can be indicated. The device can perform positioning by combining the positioning signals in different frequency bands in the signal receiver and the fluctuations of the automatic gains corresponding to the positioning signals in different frequency bands.
[0047] Among them, the positioning signal receiver receives a first frequency band signal and a second frequency band signal. In the case where the fluctuation of the automatic gain corresponding to the second frequency band signal is less than the first fluctuation threshold, the device can determine whether the fluctuation of the automatic gain corresponding to the first frequency band signal is less than the first fluctuation threshold.
[0048] If the fluctuation of the automatic gain corresponding to the first frequency band signal is less than the first fluctuation threshold, the device can use the first frequency band signal and the second frequency band signal for positioning. The weights of the first frequency band signal and the second frequency band signal when used for positioning can be the default weight configuration. The weight corresponding to the first frequency band signal can be the weight of the first frequency band signal when participating in the positioning solution. The weight corresponding to the second frequency band signal can be the weight of the second frequency band signal when participating in the positioning solution.
[0049] If the automatic gain fluctuation corresponding to the first frequency band signal is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, the device may use the second frequency band signal and the down-weighted first frequency band signal for positioning. The second fluctuation threshold is greater than the first fluctuation threshold. Among them, the down-weighting of the first frequency band signal may include reducing the weight value corresponding to the first frequency band signal based on the default weight configuration of the first frequency band signal.
[0050] If the automatic gain fluctuation corresponding to the first frequency band signal is greater than or equal to the second fluctuation threshold, the device may not use the first frequency band signal and instead use only the second frequency band signal for positioning. It can be understood that when the automatic gain fluctuation corresponding to the first frequency band signal is greater than or equal to the second fluctuation threshold, the weight value corresponding to the first frequency band signal is equivalent to being reduced to 0.
[0051] This application does not limit the values of the above first fluctuation threshold and second fluctuation threshold. Among them, the automatic gain fluctuation being less than the first fluctuation threshold may indicate that the interference received by the positioning signal is extremely small and is suitable for positioning. The automatic gain fluctuation being greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold may indicate that the positioning signal is subject to relatively large interference, the data error rate of the positioning signal increases, resulting in a decline in the observation quality of the positioning signal. Therefore, there will be a large error when the positioning signal is used for positioning. The automatic gain fluctuation being greater than or equal to the second fluctuation threshold may indicate that the positioning signal is subject to extremely large interference. These interferences will cause a serious decline in the observation quality of the positioning signal, and the positioning signal is not suitable for positioning.
[0052] Therefore, when the automatic gain fluctuation of a frequency band signal is less than the first fluctuation threshold, the signal of this frequency band can be directly used for positioning. When the automatic gain fluctuation of a frequency band signal is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, the signal of this frequency band can be used for positioning after down-weighting. This can reduce the positioning error caused by the interference component in the signal of this frequency band. When the automatic gain fluctuation of a frequency band signal is greater than the second fluctuation threshold, the device may not use the signal of this frequency band during positioning, thereby avoiding the interference signal of this frequency band from affecting the positioning result and improving the positioning accuracy.
[0053] Not limited to receiving signals in the L1 frequency band and L5 frequency band, the positioning signal receiver may also receive signals in other frequency bands. For example, signals in the L2 frequency band. The center frequency of the L2 frequency band is 1227.6 MHz (which can be referred to as the L2 frequency point). Not limited to receiving signals in two frequency bands, the positioning signal receiver may also receive signals in more frequency bands. For a signal in a frequency band received by the positioning signal receiver, the device may determine whether to use the signal in this frequency band for positioning and the weight value corresponding to the signal in this frequency band when used for positioning according to the automatic gain fluctuation of the signal in this frequency band.
[0054] Figure 1 Exemplarily shown is a schematic structural diagram of a device 100 provided by the present application.
[0055] As Figure 1 shown, the device 100 may include a processor 110, an antenna 1, an antenna 2, a mobile communication module 120, a wireless communication module 130, a display screen 140, a speaker 150, a microphone 160, a memory 170, and so on.
[0056] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the device 100. In other embodiments of the present application, the device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0057] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modulation and demodulation processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0058] Among them, the controller may be the nerve center and command center of the device 100. The controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
[0059] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0060] The wireless communication function of the device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 120, the wireless communication module 130, the modulation and demodulation processor, and the baseband processor, etc.
[0061] Antenna 1 and Antenna 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, Antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0062] The mobile communication module 120 can provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to device 100. The mobile communication module 120 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 120 can receive electromagnetic waves by Antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 120 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through Antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 120 can be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 120 and at least some modules of the processor 110 can be disposed in the same device.
[0063] The modulation and demodulation processor ( Figure 1 not shown in the figure) can include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor ( Figure 1 not shown in the figure) for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 150, etc.), or displays an image or video through the display screen 140. In some embodiments, the modulation and demodulation processor can be an independent device. In other embodiments, the modulation and demodulation processor can be independent of the processor 110 and be disposed in the same device as the mobile communication module 120 or other functional modules.
[0064] The wireless communication module 130 may provide solutions for wireless communications applied to the device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), GNSS, frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 130 may be one or more devices integrating at least one communication processing module. The wireless communication module 130 receives an electromagnetic wave signal via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 130 may also receive a signal to be sent from the processor 110, perform frequency modulation and amplification on it, and convert it into an electromagnetic wave through the antenna 2 for radiation.
[0065] In some embodiments, the electromagnetic wave signal received by the wireless communication module 130 via the antenna 2 may include a positioning signal from a satellite. The wireless communication module 130 may perform processing such as frequency modulation and filtering on the positioning signal, and send the processed positioning signal to the processor 110. Then, the processor 110 may perform positioning settlement based on the positioning signal, determine the real-time position of the device 100, and provide services such as positioning and navigation for the user.
[0066] In some embodiments, antenna 1 of device 100 is coupled to mobile communication module 120, and antenna 2 is coupled to wireless communication module 130, such that device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0067] Processor 110 may include one or more GPUs. A GPU is a microprocessor for image processing, and may be connected to display screen 140 and the application processor. The GPU can be used to perform mathematical and geometric calculations for graphics rendering. Device 100 can implement a display function through the GPU, display screen 140, application processor, etc.
[0068] The display screen 140 is used to display images, videos, etc. The display screen 140 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the device 100 may include one or more display screens.
[0069] The speaker 150, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The device 100 can listen to music or make hands-free calls through the speaker 150.
[0070] The microphone 160, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. The device 100 may include one or more microphones.
[0071] The memory 170 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the device 100 by running the instructions stored in the memory 170. The memory 170 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a positioning function, a navigation function, a sound playback function, an image playback function, etc.). The data storage area can store data created during the use of the device 100 (such as audio data, a phone book, etc.). In addition, the memory 170 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0072] In this application, a computer program may be stored in the memory 170 and used to enable the processor 110 to implement the positioning method of this application. Exemplarily, the computer program in the memory 170 of the memory may be used to: determine the relationship between the automatic gain fluctuation of a signal in a frequency band and the first fluctuation threshold and the second fluctuation threshold, determine whether to use the positioning signal in this frequency band for positioning and the weight of the signal in this frequency band when used for positioning according to the automatic gain fluctuation of the signal in a frequency band, determine whether the positioning signal receiver fails according to the automatic gain of the signal and the output signal amplitude, and so on.
[0073] The device 100 may be a device capable of providing positioning services such as a mobile phone, a tablet computer, or an in-vehicle computer. The embodiments of this application do not limit the type of the device 100.
[0074] Figure 2 An exemplary structural schematic diagram of a positioning signal receiver is shown.
[0075] As Figure 2 shown, the positioning signal receiver may include a digital chip processor 210, a front-end path for receiving L1-band signals, and a front-end path for receiving L5-band signals. The front-end path for receiving L1-band signals may include: an antenna, a band-pass filter 221, an amplifier 222, a band-pass filter 223, a mixer 224, a band-pass filter 225, an amplifier 226, an analog-to-digital converter 227, and an automatic gain controller 228. The front-end path for receiving L5-band signals may include: an antenna, a band-pass filter 231, an amplifier 232, a band-pass filter 233, a mixer 234, a band-pass filter 235, an amplifier 236, an analog-to-digital converter 237, and an automatic gain controller 238.
[0076] In the front-end path for receiving L1-band signals, the band-pass filter 221 can be used to perform primary filtering on the electromagnetic wave signals received by the antenna, and filter out signals near the center frequency of the L1 band. The signals may include interference signals and positioning signals from satellites. The above interference signals can be referred to as co-frequency interference signals of the positioning signals in the L1 band. The amplifier 222 can be used to perform primary amplification on the signals filtered by the band-pass filter 221. Among them, amplifying the signal can include amplifying the power of the signal. The amplifier 222 can input the amplified signal to the band-pass filter 223. The band-pass filter 223 can perform secondary filtering on the signals amplified by the amplifier 222 and input the signals after secondary filtering to the mixer 224. The above signals after secondary filtering are high-frequency signals. The mixer 224 can convert the signals after secondary filtering into intermediate-frequency signals so that subsequent devices can process the signals. The mixer 224 can input the signals converted into intermediate-frequency signals to the band-pass filter 225. The band-pass filter 225 can filter the intermediate-frequency signals to eliminate a part of the noise in the signals. The band-pass filter 225 can input the filtered signals to the amplifier 226. The amplifier 226 can perform secondary amplification on the signals filtered by the band-pass filter 225 and input the signals after secondary amplification to the analog-to-digital converter 227.
[0077] The automatic gain controller 228 can be used to determine the automatic gain of the signal according to the amplitude of the input signal, so that the amplitude of the signal is stable within a preset range after being processed based on the automatic gain. This can avoid the signals input to the digital chip processor 210 being too strong or too weak. Among them, the amplitude of the signal can reflect the strength of the signal. The larger the amplitude of the signal, the stronger the signal can be represented. When the amplitude of the signal is large, the signal may contain strong co-frequency interference signals, and the automatic gain controller 228 can set the automatic gain according to the amplitude of the signal to reduce the amplitude of the signal and make it stable within a preset range. When the amplitude of the signal is small, the signal is relatively weak, and the automatic gain controller 228 can set the automatic gain according to the amplitude of the signal to increase the amplitude of the signal and make it stable within a preset range.
[0078] Exemplarily, the preset amplitude of the signal is 20. If the amplitude of the signal received by the positioning signal receiver after being processed by the above band-pass filter 221, amplifier 222, band-pass filter 223, mixer 224, band-pass filter 225, and amplifier 226 is 60 when reaching the analog-to-digital converter 227, the automatic gain controller 228 can determine that the automatic gain is -40. In this way, after the signal is processed by the automatic gain with a value of -40, the amplitude can be reduced to the preset amplitude. If the amplitude of the signal received by the positioning signal receiver after being processed by the above band-pass filter 221, amplifier 222, band-pass filter 223, mixer 224, band-pass filter 225, and amplifier 226 is 10 when reaching the analog-to-digital converter 227, the automatic gain controller 228 can determine that the automatic gain is 10. In this way, after the signal is processed by the automatic gain with a value of 10, the amplitude can be increased to the preset amplitude.
[0079] It can be understood that when there is a strong co-frequency interference signal in the signal of a frequency band, the automatic gain of the signal in this frequency band is relatively small. When the co-frequency interference signal in the signal of a frequency band is weak, the automatic gain of the signal in this frequency band is relatively large. Therefore, when the signal of a frequency band is affected by random interference, the automatic gain of the signal in this frequency band will fluctuate. Among them, if the automatic gain of the signal in a frequency band fluctuates greatly within a period of time, it can indicate that the positioning signal in this frequency band is interfered by a strong co-frequency interference signal.
[0080] In some embodiments, when receiving the signal from the amplifier 226, the analog-to-digital converter 227 can send the signal to the automatic gain controller 228. The automatic gain controller 228 can determine the automatic gain corresponding to the signal according to the amplitude of the signal and send the automatic gain to the amplifier 226. The amplifier 226 processes the signal after the secondary amplification according to the automatic gain from the automatic gain controller 228, so that the amplitude of the signal is stabilized within a preset range. The embodiments of the present application do not limit the above preset range.
[0081] After the amplifier 226 processes the signal according to the automatic gain, it can send the signal to the analog-to-digital converter 227. The analog-to-digital converter 227 can perform analog-to-digital conversion on the signal, convert the signal into a digital signal, and send the digital signal to the digital chip processor 210.
[0082] In some embodiments, the automatic gain controller 228 can also perform gain feedback and send the automatic gain corresponding to the L1 frequency band signal to the digital chip processor 210.
[0083] The antenna, band-pass filter 231, amplifier 232, band-pass filter 233, mixer 234, band-pass filter 235, amplifier 236, analog-to-digital converter 237, and automatic gain controller 238 in the front-end path for receiving L5-band signals can refer to the introduction of the front-end path for receiving L1-band signals described above.
[0084] The analog-to-digital converter 237 can perform analog-to-digital conversion on the L5-band signal, convert the signal into a digital signal, and send the digital signal to the digital chip processor 210.
[0085] The automatic gain controller 238 can determine the automatic gain corresponding to the L5-band signal, perform gain feedback, and send the automatic gain corresponding to the L5-band signal to the digital chip processor 210.
[0086] The digital chip processor 210 can be used to determine the weights of the L1-band signal and the L5-band signal based on the automatic gains corresponding to the L1-band signal and the L5-band signal, and further based on the above-mentioned automatic gains. The digital chip processor 210 can use the L1-band signal sent by the analog-to-digital converter 227, the L5-band signal sent by the analog-to-digital converter 237, and their respective corresponding weights to calculate the position of the device 100.
[0087] The digital chip processor 210 can be included in the above-mentioned Figure 1 shown processor 110. Optionally, the digital chip processor 210 can also be independent of the above-mentioned Figure 1 shown processor 110 and integrated with the processor 110 on different chips.
[0088] The above-mentioned Figure 2 shown positioning signal receiver is only an exemplary illustration of the present application and should not constitute a limitation to the present application. The positioning signal receiver can include more or fewer devices than Figure 2 shown.
[0089] Figure 3 An exemplary flowchart of a positioning method provided by the present application is shown.
[0090] As Figure 3 shown, the positioning method can include steps S311 to S322. This method can be applied to the device 100 including a positioning signal receiver. Here, taking the positioning signal receiver as a dual-frequency receiver and receiving the first-band signal and the second-band signal as an example for illustration.
[0091] S311. Obtain the automatic gain corresponding to the first-band signal and the automatic gain corresponding to the second-band signal.
[0092] Device 100 can receive a first band signal and a second band signal through a positioning signal receiver. The first band signal can include signals with frequencies in the first band. The second band signal can include signals with frequencies in the second band. For example, the first band can be the L1 band (i.e., the band with a center frequency of 1575.42 MHz). The second band can be the L5 band (i.e., the band with a center frequency of 1176.45 MHz). Optionally, the first band and the second band can be any two of the L1 band, the L2 band (i.e., the band with a center frequency of 1227.6 MHz), and the L5 band. The embodiments of the present application do not limit the frequencies included in the first band and the second band.
[0093] Among them, in the environment where device 100 is located, in addition to L1 co-frequency devices, there may also be L5 co-frequency devices. The L5 co-frequency devices can include devices operating near the L5 frequency point. The L5 co-frequency devices will interfere with device 100's reception of the positioning signal in the L5 band, increasing the bit error rate of the positioning signal data in the L5 band, thereby reducing the observation quality of the L5 band signal. Using the above-mentioned interfered L5 band signal for positioning by device 100 will reduce the positioning accuracy. That is to say, the positioning signal of each band may be interfered by the signals of the co-frequency devices in the corresponding band.
[0094] The first band signal can include the positioning signal of the first band. The second band signal can include the positioning signal of the second band. The positioning signals of the above-mentioned first band and second band can be electromagnetic wave signals sent by positioning satellites.
[0095] In some embodiments, the first band signal further includes the co-frequency interference signal of the first band. The second band signal further includes the co-frequency interference signal of the second band.
[0096] S312. Determine the first gain fluctuation of the automatic gain corresponding to the first band signal within the time period T1, and the second gain fluctuation of the automatic gain corresponding to the second band signal within the time period T1.
[0097] As can be seen from the above-mentioned Figure 2 positioning signal receiver, device 100 can determine the automatic gain corresponding to each band signal through the automatic gain controller in the positioning signal receiver. Device 100 can determine the first gain fluctuation of the first band signal within the time period T1 according to the automatic gain corresponding to the first band signal. Device 100 can determine the second gain fluctuation of the second band signal within the time period T1 according to the automatic gain corresponding to the second band signal.
[0098] For example, the above time period T1 can be the time period between time T1 and time T2. The device 100 can obtain the automatic gain P1_T1 of the first frequency band signal at time T1, and the automatic gain P1_T2 of the first frequency band signal at time T2. The first gain fluctuation of the first frequency band signal within the time period T1 can be: |P1_T2 - P1_T1|. The device 100 can obtain the automatic gain P2_T1 of the second frequency band signal at time T1, and the automatic gain P2_T2 of the second frequency band signal at time T2. The second gain fluctuation of the second frequency band signal within the time period T1 can be: |P2_T2 - P2_T1|.
[0099] The embodiment of the present application does not limit the duration of the above time period T1.
[0100] S313. Determine whether the first gain fluctuation is less than the first fluctuation threshold, and whether the second gain fluctuation is less than the first fluctuation threshold.
[0101] In some embodiments, the above first fluctuation threshold can be determined according to the maximum change amount of the automatic gain provided by the automatic gain controller in the positioning signal receiver. The maximum change amount of the automatic gain can be completed by test calibration in an open sky environment. That is to say, the automatic gain provided by the automatic gain controller has a certain range. The automatic gain controller can adjust the amplitude of the received signal within the corresponding automatic gain range. The embodiment of the present application does not limit the specific value of the maximum change amount of the automatic gain.
[0102] Exemplarily, the maximum change amount of the automatic gain is ±x milliwatt decibels (dBm). x is greater than 0. The first fluctuation threshold can be a value greater than 0 and less than x. For example, the first fluctuation threshold can be x / 2. Or, the first fluctuation threshold can also be 2x / 5. The embodiment of the present application does not limit the specific value of the first fluctuation threshold.
[0103] The device 100 can determine whether both the first gain fluctuation and the second gain fluctuation are less than the first fluctuation threshold. The device 100 can determine how to use the first frequency band signal and the second frequency band signal for positioning according to the magnitude relationship between the first gain fluctuation and the first fluctuation threshold, and the magnitude relationship between the second gain fluctuation and the first fluctuation threshold.
[0104] S314. Use the first frequency band signal and the second frequency band signal for positioning.
[0105] If both the first gain fluctuation and the second gain fluctuation are less than the first fluctuation threshold, the device 100 can use the first frequency band signal and the second frequency band signal for positioning. Among them, the weight values of the first frequency band signal and the second frequency band signal when used for positioning can be the default weight configuration.
[0106] It can be understood that both the first gain fluctuation and the second gain fluctuation are less than the first fluctuation threshold, which may indicate that the interference signal components in the first frequency band signal are less, and the interference signal components in the second frequency band signal are also less. The errors of the first frequency band signal and the second frequency band signal during positioning are both small.
[0107] S315. Determine whether the first gain fluctuation is less than the second fluctuation threshold, and whether the second gain fluctuation is less than the second fluctuation threshold, where the second fluctuation threshold is greater than the first fluctuation threshold.
[0108] In some embodiments, the above-mentioned second fluctuation threshold may be determined according to the maximum change amount of the automatic gain. For example, the second fluctuation threshold may be x. Alternatively, the second fluctuation threshold may also be a value greater than the first fluctuation threshold and less than x. The specific value of the second fluctuation threshold in the embodiments of the present application is not limited.
[0109] If both the first gain fluctuation and the second gain fluctuation are greater than or equal to the first fluctuation threshold, device 100 may determine whether the first gain fluctuation is less than the second fluctuation threshold, and whether the second gain fluctuation is less than the second fluctuation threshold.
[0110] S316. Determine whether the first gain fluctuation is less than the second gain fluctuation.
[0111] In some embodiments, if both the first gain fluctuation and the second gain fluctuation are greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, or both the first gain fluctuation and the second gain fluctuation are greater than or equal to the second fluctuation threshold, device 100 may determine whether the first gain fluctuation is less than the second gain fluctuation. Device 100 may perform the following steps S317 and S318 according to the magnitude relationship between the first gain fluctuation and the second gain fluctuation.
[0112] It can be understood that both the first gain fluctuation and the second gain fluctuation are greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, or both the first gain fluctuation and the second gain fluctuation are greater than or equal to the second fluctuation threshold, which may indicate that the interference components in the first frequency band signal and the second frequency band signal are both large and relatively close. That is, the positioning signals in both the first frequency band and the second frequency band are interfered by large co-frequency interference signals, and the interference degrees are close. Device 100 may determine whether the positioning signal in the first frequency band is more interfered or the positioning signal in the second frequency band is more interfered according to the first gain fluctuation and the second gain fluctuation, and then decide which frequency band signal to downweight during positioning to reduce the influence of the co-frequency interference signal on the positioning result.
[0113] S317. Locate using the second frequency band signal and the downweighted first frequency band signal.
[0114] If the first gain fluctuation is greater than or equal to the second gain fluctuation, device 100 can use the second frequency band signal and the down-weighted first frequency band signal for positioning.
[0115] In some embodiments, device 100 can down-weight the first frequency band signal according to a preset weight value. For example, the above preset weight value can be 0.5, or 0.6, etc. Device 100 can reduce the weight value of the first frequency band signal to the above preset weight value. The preset weight value can be a value greater than 0 and less than 1. The specific value of the preset weight value is not limited in the embodiments of the present application.
[0116] In some embodiments, device 100 can determine the degree of down-weighting of the first frequency band signal according to the ratio of the first gain fluctuation to the second gain fluctuation. The method and degree of down-weighting the first frequency band signal are not limited in the embodiments of the present application.
[0117] Device 100 down-weighting the first frequency band signal can include reducing the weight value corresponding to the first frequency band signal on the basis of the default weight value configuration of the first frequency band signal.
[0118] The weight value corresponding to the first frequency band signal can be the weight value of the first frequency band signal when participating in positioning calculation. The weight value corresponding to the second frequency band signal can be the weight value of the second frequency band signal when participating in positioning calculation.
[0119] Exemplarily, device 100 can use the weighted least squares estimation method for positioning calculation. For example, device 100 receives positioning signals from 10 satellites operating near the L1 frequency point (i.e., the positioning signals of the L1 frequency band), and positioning signals from 5 satellites operating near the L5 frequency point (i.e., the positioning signals of the L5 frequency band). In the process of using the weighted least squares estimation method for positioning calculation, the positioning signal of each satellite can be used to construct an equation. Therefore, device 100 can use the positioning signals of multiple satellites to construct a system of equations for positioning calculation. Among them, each equation in the system of equations can correspond to a weight value. The weight value corresponding to an equation can be the weight value corresponding to the positioning signal used to construct this equation.
[0120] When it is necessary to down-weight the positioning signal of the L1 frequency band, device 100 can reduce the weight value corresponding to the equation constructed by the positioning signals from 10 satellites operating near the L1 frequency point. When it is necessary to down-weight the positioning signal of the L5 frequency band, device 100 can reduce the weight value corresponding to the equation constructed by the positioning signals from 5 satellites operating near the L5 frequency point.
[0121] After determining the weight values corresponding to the positioning signals of the L1 frequency band and the L5 frequency band, device 100 can use the weighted least squares estimation method to solve the system of equations determined by the positioning signals of all satellites to determine the position of device 100.
[0122] It can be understood that the first gain fluctuation is greater than the second gain fluctuation, which may indicate that the positioning signal of the first frequency band is more interfered than the positioning signal of the second frequency band. Therefore, the device 100 can reduce the weight of the first frequency band signal during positioning to reduce the influence of the interference component in the first frequency band signal on the positioning result and improve the positioning accuracy.
[0123] Among them, the first gain fluctuation is equal to the second gain fluctuation, which may indicate that the positioning signal of the first frequency band is interfered to the same degree as the positioning signal of the second frequency band. When the first frequency band is the L1 frequency band and the second frequency band is the L5 frequency band, the device 100 can reduce the weight of the first frequency band signal and then combine it with the non-reduced second frequency band signal for positioning. The anti-interference ability of the L5 frequency band is stronger than that of the L1 frequency band. Therefore, when the positioning signals of the L1 frequency band and the L5 frequency band are interfered to the same degree, the device 100 can rely more on the signal of the L5 frequency band for positioning. The positioning result of the device 100 depends more on the signal of the L5 frequency band.
[0124] In some embodiments, when both the first gain fluctuation and the second gain fluctuation are greater than or equal to the second fluctuation threshold, the device 100 can output a prompt message indicating that there is strong interference nearby. This prompt message can be used to prompt the user that there is strong interference at the current location and the positioning result may have a large error.
[0125] S318. Use the first frequency band signal and the reduced-weight second frequency band signal for positioning.
[0126] If the first gain fluctuation is less than the second gain fluctuation, the device 100 can use the first frequency band signal and the reduced-weight second frequency band signal for positioning.
[0127] The method for the device 100 to reduce the weight of the second frequency band signal can refer to the method for reducing the weight of the first frequency band signal in the above step S317.
[0128] It can be understood that the first gain fluctuation is less than the second gain fluctuation, which may indicate that the positioning signal of the first frequency band is less interfered than the positioning signal of the second frequency band. Therefore, the device 100 can reduce the weight of the second frequency band signal during positioning to reduce the influence of the interference component in the second frequency band signal on the positioning result and improve the positioning accuracy.
[0129] The above step S316 is optional.
[0130] In some embodiments, when it is determined through the above steps S313 and S315 that both the first gain fluctuation and the second gain fluctuation are greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, or both the first gain fluctuation and the second gain fluctuation are greater than or equal to the second fluctuation threshold, the device 100 may execute the above step S314. That is, the device 100 may not downweight the first frequency band signal and the second frequency band signal and directly use the first frequency band signal and the second frequency band signal for positioning.
[0131] In some embodiments, the anti-interference ability of the second frequency band is stronger than that of the first frequency band. When it is determined through the above steps S313 and S315 that both the first gain fluctuation and the second gain fluctuation are greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, or both the first gain fluctuation and the second gain fluctuation are greater than or equal to the second fluctuation threshold, the device 100 may not compare the magnitudes of the first gain fluctuation and the second gain fluctuation and directly execute step S317. That is to say, when the interference levels of the positioning signals of the first frequency band and the second frequency band are the same or close, the first device may downweight the signal of the frequency band with weaker anti-interference ability and then combine it with the signal of the frequency band with stronger anti-interference ability for positioning.
[0132] S319. Position using only the second frequency band signal.
[0133] If the first gain fluctuation is greater than or equal to the second fluctuation threshold and the second gain fluctuation is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, the device 100 may position using only the second frequency band signal. When the device 100 positions without using the first frequency band signal, it can be equivalent to reducing the weight value corresponding to the first frequency band signal to 0.
[0134] It can be understood that the first gain fluctuation being greater than or equal to the second fluctuation threshold may indicate that the positioning signal of the first frequency band is particularly severely interfered. At this time, the first frequency band signal may be interfered to the interference saturation state, and there is a risk of being unable to position for a long time. The second gain fluctuation being greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold may indicate that the positioning signal of the second frequency band is somewhat interfered. Therefore, the device 100 may not use the first frequency band signal during positioning, thereby avoiding the interference component in the first frequency band signal from affecting the positioning result and improving the positioning accuracy. Moreover, the above embodiments can also avoid the situation where the first frequency band signal cannot be positioned due to being interfered to the saturation state.
[0135] S320. Position using only the first frequency band signal.
[0136] If the first gain fluctuation is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, and the second gain fluctuation is greater than or equal to the second fluctuation threshold, device 100 may perform positioning only using the first frequency band signal. When device 100 performs positioning without using the second frequency band signal, it may be equivalent to reducing the weight corresponding to the second frequency band signal to 0.
[0137] It can be understood that when the second gain fluctuation is greater than or equal to the second fluctuation threshold, it may indicate that the positioning signal of the second frequency band is severely interfered. At this time, the second frequency band signal may be interfered to the saturation state, and there is a risk of being unable to perform positioning for a long time. When the first gain fluctuation is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, it may indicate that the positioning signal of the first frequency band is interfered to some extent. Therefore, device 100 may not use the second frequency band signal during positioning, so as to avoid the interference component in the second frequency band signal from affecting the positioning result and improve the positioning accuracy. Moreover, the above embodiments may also avoid the situation where positioning cannot be performed due to the second frequency band signal being interfered to the saturation state.
[0138] S321. Determine whether the second gain fluctuation is less than the second fluctuation threshold.
[0139] When the first gain fluctuation is less than the first fluctuation threshold and the second gain fluctuation is greater than or equal to the first fluctuation threshold, device 100 may determine whether the second gain fluctuation is less than the second fluctuation threshold.
[0140] If the second gain fluctuation is less than the second fluctuation threshold, device 100 may execute step S318.
[0141] Among them, device 100 may reduce the weight of the second frequency band signal according to a preset weight. Optionally, device 100 may determine the magnitude of the weight reduction of the second frequency band signal according to the second gain fluctuation, the first fluctuation threshold, and the second fluctuation threshold. For example, the closer the second gain fluctuation is to the first fluctuation threshold, the smaller the magnitude of the weight reduction of the second frequency band signal by device 100. The closer the second gain fluctuation is to the second fluctuation threshold, the greater the magnitude of the weight reduction of the second frequency band signal by device 100.
[0142] If the second gain fluctuation is greater than or equal to the second fluctuation threshold, device 100 may execute step S320.
[0143] It can be understood that the first gain fluctuation being less than the first fluctuation threshold may indicate that there are fewer interference components in the first frequency band signal, and the positioning accuracy of the first frequency band signal for positioning is relatively high. The second gain fluctuation being greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold may indicate that there are certain interference components in the second frequency band signal, and the positioning accuracy of the second frequency band signal for positioning decreases, but the second frequency band signal can still be used for positioning. Therefore, device 100 can reduce the weight of the second frequency band signal and then combine it with the first frequency band signal for positioning to reduce the influence of the interference components in the second frequency band signal on the positioning result. The second gain fluctuation being greater than or equal to the second fluctuation threshold may indicate that there are many interference components in the second frequency band signal, and the positioning accuracy of the second frequency band signal for positioning is relatively low, and there may even be a situation where the second frequency band signal cannot be used for positioning. Therefore, device 100 can eliminate the second frequency band signal and only use the first frequency band signal for positioning.
[0144] S322. Determine whether the first gain fluctuation is less than the second fluctuation threshold.
[0145] When the first gain fluctuation is greater than or equal to the first fluctuation threshold and the second gain fluctuation is less than the first fluctuation threshold, device 100 can determine whether the first gain fluctuation is less than the second fluctuation threshold.
[0146] If the first gain fluctuation is less than the second fluctuation threshold, then device 100 can execute step S317.
[0147] Among them, device 100 can reduce the weight of the first frequency band signal according to a preset weight value. Optionally, device 100 can determine the magnitude of the weight reduction of the first frequency band signal according to the first gain fluctuation, the first fluctuation threshold, and the second fluctuation threshold. For example, the closer the first gain fluctuation is to the first fluctuation threshold, the smaller the magnitude of the weight reduction of the first frequency band signal by device 100. The closer the first gain fluctuation is to the second fluctuation threshold, the greater the magnitude of the weight reduction of the first frequency band signal by device 100.
[0148] If the first gain fluctuation is greater than or equal to the second fluctuation threshold, then device 100 can execute step S319.
[0149] It can be understood that the second gain fluctuation is less than the first fluctuation threshold, which may indicate that there are fewer interference components in the second frequency band signal, and the positioning accuracy is higher when the second frequency band signal is used for positioning. The first gain fluctuation is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, which may indicate that there are certain interference components in the first frequency band signal, and the positioning accuracy decreases when the first frequency band signal is used for positioning, but the first frequency band signal can still be used for positioning. Therefore, the device 100 can reduce the weight of the first frequency band signal and then combine it with the second frequency band signal for positioning to reduce the influence of the interference components in the first frequency band signal on the positioning result. The first gain fluctuation is greater than or equal to the second fluctuation threshold, which may indicate that there are more interference components in the first frequency band signal, and the positioning accuracy is lower when the first frequency band signal is used for positioning, and there may even be a situation where the first frequency band signal cannot be used for positioning. Therefore, the device 100 can eliminate the first frequency band signal and only use the second frequency band signal for positioning.
[0150] In some embodiments, the device 100 can detect the automatic gain fluctuations of the first frequency band signal and the second frequency band signal in real-time with a sliding window. When the automatic gain fluctuations of the first frequency band signal and / or the second frequency band signal change, the device 100 can adjust the weights corresponding to the first frequency band signal and / or the second frequency band signal according to the method Figure 3 shown above, and then perform positioning calculation.
[0151] Exemplarily, in the case where the device 100 uses the first frequency band signal with reduced weight for positioning, if the automatic gain fluctuation of the first frequency band signal changes to be less than the first fluctuation threshold, the device 100 can cancel the reduction of the weight of the first frequency band signal and use the first frequency band signal without weight reduction and the second frequency band signal for positioning. In the case where the device 100 only uses the second frequency band signal for positioning, if the automatic gain fluctuation of the first frequency band signal changes to be less than the first fluctuation threshold, the device 100 can resume using the first frequency band signal for positioning, that is, use the first frequency band signal without weight reduction and the second frequency band signal for positioning. In the case where the device 100 only uses the second frequency band signal for positioning, if the automatic gain fluctuation of the first frequency band signal changes to be greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, the device 100 can resume using the first frequency band signal for positioning and reduce the weight of the first frequency band signal, that is, use the second frequency band signal and the first frequency band signal with reduced weight for positioning.
[0152] In some embodiments, not limited to the above first frequency band signal and second frequency band signal, the device 100 can also combine positioning signals of more frequency bands for positioning. The method for the device 100 to determine the weights corresponding to the positioning signals of other frequency bands can refer to the above Figure 3The method for determining the weights corresponding to the first frequency band signal and the second frequency band signal in the embodiments. For example, the device 100 can also receive the third frequency band signal through the positioning signal receiver. When the automatic gain fluctuations of both the first frequency band signal and the second frequency band signal are greater than the second fluctuation threshold, and the automatic gain fluctuation of the third frequency band signal is less than the first fluctuation threshold, the device 100 can eliminate the first frequency band signal and the second frequency band signal and use only the third frequency band signal for positioning. When the automatic gain fluctuation of the first frequency band signal is greater than the second fluctuation threshold, and the automatic gain fluctuations of both the second frequency band signal and the third frequency band signal are less than the first fluctuation threshold, the device 100 can eliminate the first frequency band signal and use the second frequency band signal and the third frequency band signal for positioning.
[0153] From the method shown above Figure 3 it can be seen that the device 100 can receive positioning signals of multiple frequency bands. When the co-channel interference received by the positioning signal of a certain frequency band is particularly large (for example, the automatic gain fluctuation corresponding to the positioning signal of this frequency band is greater than or equal to the second fluctuation threshold), the device 100 can eliminate the positioning signal of this frequency band and use the positioning signals of other frequency bands with less co-channel interference for positioning. When the co-channel interference received by the positioning signal of a certain frequency band is moderate (for example, the automatic gain fluctuation corresponding to the positioning signal of this frequency band is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold), the device 100 can reduce the weight of the positioning signal of this frequency band and then combine it with the positioning signals of other frequency bands with less co-channel interference for positioning. The above method can reduce the influence of co-channel interference signals on the positioning result and improve the positioning accuracy.
[0154] In some embodiments, the fluctuation thresholds used by the device 100 to determine the degree of interference received by signals of different frequency bands can be different. For example, the device 100 can use the above first fluctuation threshold and second fluctuation threshold to determine the degree of interference received by the first frequency band signal. The device 100 can use the third fluctuation threshold and the fourth fluctuation threshold to determine the degree of interference received by the second frequency band signal. The fourth fluctuation threshold is greater than the third fluctuation threshold.
[0155] Among them, when the automatic gain fluctuation of the first frequency band signal is less than the first fluctuation threshold, the co-channel interference received by the first frequency band signal is small, and the device 100 can directly use the first frequency band signal for positioning without reducing the weight of the first frequency band signal. When the automatic gain fluctuation of the first frequency band signal is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, the co-channel interference received by the first frequency band signal is large, and the device 100 can reduce the weight of the first frequency band signal and use the weighted first frequency band signal for positioning. When the automatic gain fluctuation of the first frequency band signal is greater than or equal to the second fluctuation threshold, the co-channel interference received by the first frequency band signal is particularly large, and the device 100 can not use the first frequency band signal during positioning.
[0156] When the automatic gain fluctuation of the second - band signal is less than the third fluctuation threshold, the co - channel interference received by the second - band signal is small, and the device 100 can directly use the second - band signal for positioning without reducing the power of the second - band signal. When the automatic gain fluctuation of the second - band signal is greater than or equal to the third fluctuation threshold and less than the fourth fluctuation threshold, the co - channel interference received by the second - band signal is relatively large, and the device 100 can reduce the power of the second - band signal and use the power - reduced second - band signal for positioning. When the automatic gain fluctuation of the second - band signal is greater than or equal to the fourth fluctuation threshold, the co - channel interference received by the second - band signal is extremely large, and the device 100 can refrain from using the second - band signal during positioning.
[0157] In some embodiments, the above - mentioned third fluctuation threshold and fourth fluctuation threshold can be determined according to the maximum change in the automatic gain provided by the automatic gain controller in the positioning signal receiver of the second - band signal. For example, the maximum change in the automatic gain corresponding to the second - band signal is ±y dBm. The third fluctuation threshold can be y / 2. The fourth fluctuation threshold can be y. The values of the above - mentioned third fluctuation threshold and fourth fluctuation threshold are only exemplary descriptions of this application. The embodiments of this application do not limit this.
[0158] The above - mentioned first fluctuation threshold and second fluctuation threshold can be determined according to the maximum change in the automatic gain provided by the automatic gain controller in the positioning signal receiver of the first - band signal. For example, the maximum change in the automatic gain corresponding to the first - band signal is ±x dBm. The above - mentioned x and y can be the same or different. The above - mentioned first fluctuation threshold and third fluctuation threshold can be the same or different. The above - mentioned second fluctuation threshold and fourth fluctuation threshold can be the same or different.
[0159] In some embodiments, the above - mentioned second fluctuation threshold and fourth fluctuation threshold are optional. The device 100 can use only the first fluctuation threshold to determine the degree of interference of the first - band signal, and only use the third fluctuation threshold to determine the degree of interference of the second - band signal. Among them, when the automatic gain fluctuation of the first - band signal is less than the first fluctuation threshold, the device 100 can directly use the first - band signal for positioning without reducing the power of the first - band signal. When the automatic gain fluctuation of the first - band signal is greater than or equal to the first fluctuation threshold, the device 100 can reduce the power of the first - band signal and use the power - reduced first - band signal for positioning. When the automatic gain fluctuation of the second - band signal is less than the third fluctuation threshold, the device 100 can directly use the second - band signal for positioning without reducing the power of the second - band signal. When the automatic gain fluctuation of the second - band signal is greater than or equal to the third fluctuation threshold, the device 100 can reduce the power of the second - band signal and use the power - reduced second - band signal for positioning. That is to say, the device 100 can use only one fluctuation threshold to determine the degree of interference of a band signal.
[0160] In some embodiments, one or more components in the positioning signal receiver may fail, resulting in a weak received positioning signal. Such failures may include, but are not limited to, antenna damage, disconnection of the path between two components, etc. Figure 2 In the positioning signal receiver shown, one or more path failures may occur in the path from the bandpass filter 221 to the automatic gain controller 228 in the front-end path for receiving the L1 frequency band signal. In this way, even if the positioning signal received by the antenna is strong, the signal strength of the L1 frequency band signal received by the antenna will be very weak when it is transmitted to the analog-to-digital converter 227 through the front-end path. The device 100 prompts the user on the screen that the positioning signal is weak. However, the user cannot know that the weak positioning signal is caused by a device failure. This will affect the user's experience of using the positioning function.
[0161] The present application provides a positioning signal receiver fault detection method. Among them, the device 100 can also detect whether the positioning signal receiver is faulty according to the automatic gain of the signal and the output signal amplitude. When the positioning signal receiver is detected to be faulty, the device 100 can prompt the user on the screen. The above method can provide the user with an early warning of the failure of the device positioning device, which is convenient for the user to distinguish whether the weak positioning signal is caused by the current environment or by the device failure, thereby improving the user's positioning experience.
[0162] Figure 4 A flowchart of a positioning signal receiver fault detection method provided by the present application is exemplified.
[0163] like Figure 4 As shown, the fault detection method may include steps S411 and S412.
[0164] S411, obtaining a first automatic gain and a first output signal amplitude corresponding to a first frequency band signal in a time period T2, and a second automatic gain and a second output signal amplitude corresponding to a second frequency band signal in a time period T2.
[0165] The first automatic gain and the second automatic gain may be determined by an automatic gain controller in the positioning signal receiver. The first output signal amplitude may refer to the amplitude of the output signal input to the digital chip processor 210 after the first frequency band signal received by the antenna is processed by various components (such as bandpass filters, amplifiers, automatic gain controllers, etc.) in the positioning signal receiver. The second output signal amplitude may refer to the amplitude of the output signal input to the digital chip processor 210 after the second frequency band signal received by the antenna is processed by various components (such as bandpass filters, amplifiers, automatic gain controllers, etc.) in the positioning signal receiver.
[0166] For example, the first frequency band is the L1 frequency band. The second frequency band is the L2 frequency band. The first automatic gain may be the aforementioned Figure 2sent by the automatic gain controller 228 in to the digital chip processor 210. The second automatic gain can be the one Figure 2 sent by the automatic gain controller 238 in to the digital chip processor 210. The first output signal amplitude can be the amplitude of the output signal output by the amplifier 226 in to the analog-to-digital converter 227 after processing the first frequency band signal according to the first automatic gain. Since the analog-to-digital converter 227 does not change the amplitude of the signal, the first output signal amplitude can also be the amplitude of the signal sent by the analog-to-digital converter 227 shown in to the digital chip processor 210. The second output signal amplitude can be the amplitude of the output signal output by the amplifier 236 in to the analog-to-digital converter 237 after processing the second frequency band signal according to the second automatic gain, that is, the amplitude of the signal sent by the analog-to-digital converter 237 to the digital chip processor 210. Figure 2 sent by the automatic gain controller 228 in to the digital chip processor 210. The first output signal amplitude can be the amplitude of the output signal output by the amplifier 226 in to the analog-to-digital converter 227 after processing the first frequency band signal according to the first automatic gain. Since the analog-to-digital converter 227 does not change the amplitude of the signal, the first output signal amplitude can also be the amplitude of the signal sent by the analog-to-digital converter 227 shown in to the digital chip processor 210. The second output signal amplitude can be the amplitude of the output signal output by the amplifier 236 in to the analog-to-digital converter 237 after processing the second frequency band signal according to the second automatic gain, that is, the amplitude of the signal sent by the analog-to-digital converter 237 to the digital chip processor 210. Figure 2 sent by the automatic gain controller 228 in to the digital chip processor 210. The first output signal amplitude can be the amplitude of the output signal output by the amplifier 226 in to the analog-to-digital converter 227 after processing the first frequency band signal according to the first automatic gain. Since the analog-to-digital converter 227 does not change the amplitude of the signal, the first output signal amplitude can also be the amplitude of the signal sent by the analog-to-digital converter 227 shown in to the digital chip processor 210. The second output signal amplitude can be the amplitude of the output signal output by the amplifier 236 in to the analog-to-digital converter 237 after processing the second frequency band signal according to the second automatic gain, that is, the amplitude of the signal sent by the analog-to-digital converter 237 to the digital chip processor 210. Figure 2 sent by the automatic gain controller 228 in to the digital chip processor 210. The first output signal amplitude can be the amplitude of the output signal output by the amplifier 226 in to the analog-to-digital converter 227 after processing the first frequency band signal according to the first automatic gain. Since the analog-to-digital converter 227 does not change the amplitude of the signal, the first output signal amplitude can also be the amplitude of the signal sent by the analog-to-digital converter 227 shown in to the digital chip processor 210. The second output signal amplitude can be the amplitude of the output signal output by the amplifier 236 in to the analog-to-digital converter 237 after processing the second frequency band signal according to the second automatic gain, that is, the amplitude of the signal sent by the analog-to-digital converter 237 to the digital chip processor 210.
[0167] The device 100 can receive multiple frames of first frequency band signals within the time period T2. The first automatic gain within the time period T2 can include multiple automatic gains corresponding to the above multiple frames of first frequency band signals. The first output signal amplitude within the time period T2 can include multiple output signal amplitudes corresponding to the above multiple frames of first frequency band signals. Similarly, the device 100 can receive multiple frames of second frequency band signals within the time period T2. The second automatic gain within the time period T2 can include multiple automatic gains corresponding to the above multiple frames of second frequency band signals. The second output signal amplitude within the time period T2 can include multiple output signal amplitudes corresponding to the above multiple frames of second frequency band signals.
[0168] The embodiment of the present application does not limit the duration of the above time period T2.
[0169] S412. When the first automatic gain is greater than the first gain threshold, the second automatic gain is greater than the second gain threshold, the first output signal amplitude is less than the first amplitude threshold, and the second output signal amplitude is less than the second amplitude threshold, output a prompt message for indicating that a positioning signal receiver fails.
[0170] As can be seen from the foregoing embodiments, the automatic gain controller in the positioning signal receiver can be used to limit the input signal so that the amplitude of the output signal is stabilized within a preset range. And the automatic gain provided by the automatic gain controller has a certain range. For example, the automatic gain range is [-x / 2, x / 2]. The automatic gain controller can increase the amplitude of the signal by at most x / 2 and decrease the amplitude of the signal by at most x / 2. Under the above automatic gain range, the maximum change amount of the automatic gain is x.
[0171] When a fault occurs in the front-end path of a positioning signal receiver and the front-end path cannot process the signal received by the antenna normally, the automatic gain controller can determine that the amplitude of the input signal is low and then provide a large automatic gain to increase the amplitude of the signal. However, due to the fault in the front-end path, the above automatic gain may not be added to the input signal, or even if the input signal is added with the automatic gain, the amplitude of the output signal may still be at a low level.
[0172] Exemplarily, in the front-end path for receiving L1 band signals shown above Figure 2 the signal received by the antenna will be amplified once by amplifier 222 and then amplified twice by amplifier 226. Finally, amplifier 226 will adjust the amplitude of the signal according to the automatic gain provided by the automatic gain controller 228. Among them, when a fault occurs in the front-end path for receiving L1 band signals, the signal received by the antenna may not undergo the above-mentioned first amplification and / or second amplification. Then, the automatic gain controller 228 detects that the amplitude of the input signal is low and provides a high automatic gain. If amplifier 226 fails, the automatic gain provided by the above automatic gain controller 228 may not be added to the signal, and the amplitude of the signal remains low. Or, amplifier 226 adjusts the amplitude of the signal according to the automatic gain provided by the automatic gain controller 228. Compared with the above-mentioned first amplification and second amplification, the adjustment of the signal amplitude by the automatic gain is weak. Since the signal has not undergone the first amplification and / or second amplification, even if the signal is added with the automatic gain, the amplitude of the output signal is still low.
[0173] That is to say, if the automatic gain provided by the automatic gain controller is large for a long time and the amplitude of the output signal is low for a long time, it can indicate that a fault has occurred in the front-end path.
[0174] Device 100 can determine whether the first automatic gain is greater than the first gain threshold and whether the first output signal amplitude is less than the first amplitude threshold. If the first automatic gain is greater than the first gain threshold and the first output signal amplitude is less than the first amplitude threshold, it can indicate that a fault has occurred in the front-end path for receiving the first band signal. Among them, if the first output signal amplitude is greater than or equal to the first amplitude threshold, it can indicate that the front-end path for receiving the first band signal is working properly.
[0175] Device 100 can determine whether the second automatic gain is greater than the second gain threshold and whether the second output signal amplitude is less than the second amplitude threshold. If the second automatic gain is greater than the second gain threshold and the second output signal amplitude is less than the second amplitude threshold, it can indicate that a fault has occurred in the front-end path for receiving the second band signal. Among them, if the second output signal amplitude is greater than or equal to the second amplitude threshold, it can indicate that the front-end path for receiving the second band signal is working properly.
[0176] In some embodiments, that the first automatic gain is greater than the first gain threshold may indicate that multiple automatic gains included in the first automatic gain (i.e., the automatic gains of all first frequency band signals within time period T2) are all greater than the first gain threshold. That the second automatic gain is greater than the second gain threshold may indicate that multiple automatic gains included in the second automatic gain (i.e., the automatic gains of all second frequency band signals within time period T2) are all greater than the second gain threshold. Alternatively, that the first automatic gain is greater than the first gain threshold may indicate that the average value of multiple automatic gains included in the first automatic gain is greater than the first gain threshold. That the second automatic gain is greater than the second gain threshold may indicate that the average value of multiple automatic gains included in the second automatic gain is greater than the second gain threshold.
[0177] That the first output signal amplitude is less than the first amplitude threshold may indicate that multiple output signal amplitudes included in the first output signal amplitude (i.e., the output signal amplitudes of all first frequency band signals within time period T2) are all less than the first amplitude threshold. That the second output signal amplitude is less than the second amplitude threshold may indicate that multiple output signal amplitudes included in the second output signal amplitude (i.e., the output signal amplitudes of all second frequency band signals within time period T2) are all less than the second amplitude threshold. Alternatively, that the first output signal amplitude is less than the first amplitude threshold may indicate that the average value of multiple output signal amplitudes included in the first output signal amplitude is less than the first amplitude threshold. That the second output signal amplitude is less than the second amplitude threshold may indicate that the average value of multiple output signal amplitudes included in the second output signal amplitude is less than the second amplitude threshold.
[0178] Embodiments of the present application do not limit the values of the above first gain threshold, second gain threshold, first amplitude threshold, and second amplitude threshold. The first gain threshold and the second gain threshold may be the same or different. The first amplitude threshold and the second amplitude threshold may be the same or different. For example, the first gain threshold may be 2 / 3 of the maximum automatic gain that the automatic gain controller can provide. The first amplitude threshold may be the lowest amplitude of the signal that the analog-to-digital converter 227 can process.
[0179] In some embodiments, not limited to obtaining the automatic gains and output signal amplitudes corresponding to each frequency band signal within the above time period T2, the device 100 may also obtain the automatic gains and output signal amplitudes corresponding to each frequency band signal at a certain moment, and use the automatic gains and output signal amplitudes corresponding to each frequency band signal at this moment to determine whether there is a fault in the front-end path of each frequency band signal. Alternatively, the device 100 may obtain the automatic gains and output signal amplitudes corresponding to one frame of first frequency band signals, and use the automatic gains and output signal amplitudes corresponding to this frame of first frequency band signals to determine whether there is a fault in the front-end path of the first frequency band signals. The device 100 may obtain the automatic gains and output signal amplitudes corresponding to one frame of second frequency band signals, and use the automatic gains and output signal amplitudes corresponding to this frame of second frequency band signals to determine whether there is a fault in the front-end path of the second frequency band signals.
[0180] When the front-end path for receiving the first frequency band signal fails while the front-end path for receiving the second frequency band signal is operating normally, device 100 can use the second frequency band signal for positioning. When the front-end path for receiving the second frequency band signal fails while the front-end path for receiving the first frequency band signal is operating normally, device 100 can use the first frequency band signal for positioning.
[0181] In some embodiments, when one of the two front-end paths fails and the other front-end path is operating normally, device 100 can output a prompt message. This prompt message can be used to indicate that some components in the positioning signal receiver have failed. For example, the content of this prompt message can include: The component for receiving the signal of one frequency band in the positioning signal receiver has failed. Please repair the device in time.
[0182] If both the front-end paths for receiving the first frequency band signal and the second frequency band signal fail, device 100 will always be unable to provide accurate positioning for the user. Therefore, device 100 can output a prompt message indicating that the positioning signal receiver has failed. The embodiments of the present application do not limit the content of the above prompt message. For example, when an application in device 100 calls the positioning service to obtain the location information of device 100, device 100 can display the prompt message on the screen to prompt the user that the positioning signal receiver has failed. Or, device 100 can also voice broadcast the prompt message indicating that the positioning signal receiver has failed. In this way, the user can repair device 100 in time to eliminate the fault in the positioning signal receiver.
[0183] In some embodiments, when the front-end path for receiving the first frequency band signal fails while the front-end path for receiving the second frequency band signal is operating normally, device 100 can obtain the automatic gain fluctuation of the second frequency band signal within a period of time according to the method Figure 3 shown above. If the automatic gain fluctuation of the second frequency band signal is greater than a preset fluctuation threshold (such as, the first fluctuation threshold, or the second fluctuation threshold, etc.), then device 100 can output a prompt message indicating that there is strong interference nearby. This prompt message can be used to prompt the user that there is strong interference at the current location, and the positioning result may have a large error.
[0184] When the front-end path for receiving the second frequency band signal fails while the front-end path for receiving the first frequency band signal is operating normally, device 100 can obtain the automatic gain fluctuation of the first frequency band signal within a period of time according to the method Figure 3 shown above. If the automatic gain fluctuation of the first frequency band signal is greater than the preset fluctuation threshold, then device 100 can output a prompt message indicating that there is strong interference nearby. This prompt message can be used to prompt the user that there is strong interference at the current location, and the positioning result may have a large error.
[0185] That is to say, when the positioning signal receiver of the device 100 is a multi-frequency receiver (such as a dual-frequency receiver), the device 100 can determine whether there is a fault in the front-end path of the signal corresponding to each frequency band according to the automatic gain and output signal amplitude of the signals in each frequency band over a period of time. When at least one front-end path of the frequency band signals in the positioning signal receiver of the device 100 is operating normally, the device 100 can determine whether the automatic gain fluctuation corresponding to the frequency band signal received by the normally operating front-end path is greater than a preset fluctuation threshold. If the automatic gain fluctuations corresponding to the frequency band signals received by all the normally operating front-end paths are greater than the preset fluctuation threshold, the device 100 can output a prompt message indicating that there is strong interference nearby.
[0186] Not limited to dual-frequency receivers, the device 100 can also detect whether there is a fault in the front-end path of a single-frequency receiver. A single-frequency receiver can refer to a positioning signal receiver for receiving a signal in one frequency band. For example, the single-frequency receiver can be a positioning signal receiver for the L1 frequency band signal, or it can also be a positioning signal receiver for the L5 frequency band signal.
[0187] When the positioning signal receiver in the device 100 is a single-frequency receiver, the device 100 can obtain the automatic gain and output signal amplitude of the signal received by the single-frequency receiver over a period of time to determine whether there is a fault in the front-end path of the single-frequency receiver. If the automatic gain of the signal over a period of time is greater than a first gain threshold (or a second gain threshold), and the output signal amplitude is less than a first amplitude threshold (or a second amplitude threshold), it can indicate that there is a fault in the front-end path of the single-frequency receiver. If there is a fault in the front-end path of the single-frequency receiver, the electronic device 100 can output a prompt message indicating that there is a fault in the positioning signal receiver.
[0188] It should be noted that, without contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.
[0189] As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A positioning method, characterized in that, The method includes: The electronic device receives a first frequency band signal; The electronic device obtains a first automatic gain of the first frequency band signal and a first output signal amplitude, where the first output signal amplitude includes the amplitude of the output signal of the first frequency band signal under the first automatic gain; When the first automatic gain is greater than a first gain threshold and the first output signal amplitude is less than a first amplitude threshold, the electronic device outputs a first prompt, and the first prompt is used to indicate a failure of the positioning signal receiver of the electronic device.
2. The method according to claim 1, wherein The method further includes: The electronic device receives a second frequency band signal; The electronic device obtains a second automatic gain of the second frequency band signal and a second output signal amplitude, where the second output signal amplitude includes the amplitude of the output signal of the second frequency band signal under the second automatic gain; The step that when the first automatic gain is greater than the first gain threshold and the first output signal amplitude is less than the first amplitude threshold, the electronic device outputs the first prompt specifically includes: When the first automatic gain is greater than the first gain threshold, the second automatic gain is greater than a second gain threshold, the first output signal amplitude is less than the first amplitude threshold, and the second output signal amplitude is less than a second amplitude threshold, the electronic device outputs the first prompt.
3. The method according to claim 2, wherein The first automatic gain includes multiple automatic gains of the first frequency band signal within a first time period, the second automatic gain includes multiple automatic gains of the second frequency band signal within the first time period, the first output signal amplitude includes multiple output signal amplitudes of the first frequency band signal within the first time period, and the second output signal amplitude includes multiple output signal amplitudes of the second frequency band signal within the first time period; Among them, the first automatic gain being greater than the first gain threshold specifically includes: multiple automatic gains included in the first automatic gain are greater than the first gain threshold, or the mean value of the multiple automatic gains included in the first automatic gain is greater than the first gain threshold; The second automatic gain being greater than the second gain threshold specifically includes: multiple automatic gains included in the second automatic gain are greater than the second gain threshold, or the mean value of the multiple automatic gains included in the second automatic gain is greater than the second gain threshold; The first output signal amplitude being less than the first amplitude threshold specifically includes: multiple output signal amplitudes included in the first output signal amplitude are less than the first amplitude threshold, or the mean value of the multiple output signal amplitudes included in the first output signal amplitude is less than the first amplitude threshold; The second output signal amplitude being less than the second amplitude threshold specifically includes: multiple output signal amplitudes included in the second output signal amplitude are less than the second amplitude threshold, or the mean value of the multiple output signal amplitudes included in the second output signal amplitude is less than the second amplitude threshold.
4. The method according to claim 3, characterized in that, The method further includes: When the second automatic gain is greater than the second gain threshold, the amplitude of the second output signal is less than the second amplitude threshold, and the variation amount between multiple automatic gains included in the first automatic gain is greater than the first variation threshold, the electronic device outputs a second prompt, and the second prompt is used to indicate that there is strong interference at the location where the electronic device is located; When the first automatic gain is greater than the first gain threshold, the amplitude of the first output signal is less than the first amplitude threshold, and the variation amount between multiple automatic gains included in the second automatic gain is greater than the second variation threshold, the electronic device outputs the second prompt.
5. The method according to claim 3 or 4, characterized in that, The method further includes: When the second automatic gain is greater than the second gain threshold, the amplitude of the second output signal is less than the second amplitude threshold, and the amplitude of the first output signal is greater than or equal to the first amplitude threshold, the electronic device locates using only the first frequency band signal; When the first automatic gain is greater than the first gain threshold, the amplitude of the first output signal is less than the first amplitude threshold, and the amplitude of the second output signal is greater than or equal to the second amplitude threshold, the electronic device locates using only the second frequency band signal.
6. The method according to any one of claims 2-5, characterized in that, The method further includes: The electronic device determines a first gain fluctuation of the first frequency band signal and a second gain fluctuation of the second frequency band signal within a second time period, where the first gain fluctuation is the variation amount of the automatic gain of the first frequency band signal within the second time period, and the second gain fluctuation is the variation amount of the automatic gain of the second frequency band signal within the second time period; When the first gain fluctuation is greater than or equal to a first fluctuation threshold and the second gain fluctuation is less than a third fluctuation threshold, the electronic device reduces the weight of the first frequency band signal and locates using the second frequency band signal and the first frequency band signal with reduced weight.
7. The method according to claim 6, wherein The amplitude of the output signal of the first frequency band signal within the second time period is greater than or equal to the first amplitude threshold; the amplitude of the output signal of the second frequency band signal within the second time period is greater than or equal to the second amplitude threshold.
8. The method according to claim 6 or 7, characterized in that, The greater the difference between the first gain fluctuation and the first fluctuation threshold, the greater the amount of weight reduction of the first frequency band signal by the electronic device.
9. The method according to any one of claims 6 - 8, characterized in that, The method further includes: When the first gain fluctuation is greater than or equal to a second fluctuation threshold and the second gain fluctuation is less than a fourth fluctuation threshold, the electronic device locates using only the second frequency band signal, where the second fluctuation threshold is greater than the first fluctuation threshold and the fourth fluctuation threshold is greater than the third fluctuation threshold.
10. The method according to any one of claims 6-9, characterized in that, The method further includes: When the first gain fluctuation is less than the first fluctuation threshold and the second gain fluctuation is greater than or equal to the third fluctuation threshold, the electronic device reduces the weight of the second frequency band signal and locates using the first frequency band signal and the second frequency band signal with reduced weight.
11. The method according to claim 10, wherein The greater the difference between the second gain fluctuation and the third fluctuation threshold, the greater the amount of weight reduction of the second frequency band signal by the electronic device.
12. The method according to any one of claims 6-11, characterized in that, The method further includes: When the first gain fluctuation is less than the second fluctuation threshold and the second gain fluctuation is greater than or equal to the fourth fluctuation threshold, the electronic device locates using only the first band signal. The second fluctuation threshold is greater than the first fluctuation threshold, and the fourth fluctuation threshold is greater than the third fluctuation threshold.
13. The method according to any one of claims 6 - 12, characterized in that, The method further includes: When the first gain fluctuation is less than the first fluctuation threshold and the second gain fluctuation is less than the third fluctuation threshold, the electronic device locates using the first band signal and the second band signal.
14. The method according to any one of claims 6-13, characterized in that, The anti-interference ability of the second band is stronger than that of the first band. The method further includes: When the first gain fluctuation is greater than or equal to the first fluctuation threshold and less than the second fluctuation threshold, and the second gain fluctuations are all greater than or equal to the third fluctuation threshold and less than the fourth fluctuation threshold, or when the first gain fluctuation is greater than or equal to the second fluctuation threshold and the second gain fluctuation is greater than or equal to the fourth fluctuation threshold, the electronic device locates using only the second band signal.
15. An electronic device, characterized in that, The electronic device includes a positioning signal receiver, a memory, and a processor. Among them, the positioning signal receiver is configured to receive signals of one or more bands; the memory is configured to store a computer program, and the processor is configured to call the computer program so that the electronic device executes the method according to any one of claims 1-14.
16. A computer-readable storage medium stores instructions, characterized in that, When the instruction runs on the electronic device, the electronic device executes the method according to any one of claims 1-14.
17. A computer program product, characterized in that, The computer program product includes computer instructions. When the computer instructions run on the electronic device, the electronic device executes the method according to any one of claims 1-14.