Enable signal control method and device, and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-08-07
- Publication Date
- 2026-04-17
AI Technical Summary
When using the GNSS positioning function, the power consumption of electronic devices is large, and the positioning accuracy of the GNSS receiver is improved marginally. How to reduce power consumption without affecting the performance benefits of GNSS is an urgent problem.
By detecting the carrier-to-noise ratio of the satellite signal, if it is found that the carrier-to-noise ratio is outside the preset range, the enable signal that determines the second duty cycle is used to control the amplifier so that the carrier-to-noise ratio is within the preset range, and adjust the duty cycle of the enable signal to reduce power consumption when the second duty cycle is lower than the first duty cycle.
While not affecting the performance benefits of GNSS receivers, it reduces the power consumption of electronic devices and improves the flexibility and compatibility of the operating time of the amplifier during the operating cycle.
Smart Images

Figure CN121890185A_ABST
Abstract
Description
Enable signal control method, device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 30, 2023, with application number 202311632184.9 and application name “Enable Signal Control Method, Device and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a method, device, and storage medium for controlling an enable signal. Background Art
[0003] With the increasing application of Internet of Things technology and the use of electronic devices (such as wearable devices) based on location-based services (LBS), the market demand for Global Navigation Satellite System (GNSS) is growing.
[0004] In one implementation, GNSS positioning performance is related to the carrier-to-noise ratio (CNR). As the CNR increases, the positioning error caused by GNSS receiver noise gradually decreases. If the positioning error caused by other error sources, such as multipath, remains unchanged, the marginal improvement in CNR on GNSS positioning accuracy (or GNSS performance benefit) decreases. Furthermore, when electronic devices use positioning functions, they consume significant power. Therefore, reducing power consumption without compromising GNSS performance is a pressing issue.
[0005] Summary of the Invention
[0006] The present application provides a method, device, and storage medium for controlling an enabling signal, which can reduce the power consumption of electronic devices without affecting the performance benefits of a GNSS receiver.
[0007] In a first aspect, embodiments of the present application provide an enable signal control method, wherein: an amplifier is controlled based on an enable signal having a first duty cycle; upon detecting that a current carrier-to-noise ratio of a satellite signal is outside a preset range, a second duty cycle is determined, and when the enable signal having the second duty cycle is used to control the amplifier, the carrier-to-noise ratio of the satellite signal is within the preset range; and if the second duty cycle is lower than the first duty cycle, the amplifier is controlled based on the enable signal having the second duty cycle. Thus, upon detecting that the current carrier-to-noise ratio of a satellite signal is outside the preset range, the second duty cycle is determined, and when the enable signal having the second duty cycle is used to control the LNA, the carrier-to-noise ratio of the satellite signal is within the preset range, thereby avoiding impacting the performance benefits of a GNSS receiver. Furthermore, because the duty cycle of the enable signal can be adjusted from the higher first duty cycle to the lower second duty cycle when the second duty cycle is lower than the first duty cycle, power consumption of the electronic device is reduced. Therefore, the present invention can reduce power consumption of the electronic device while not impacting the performance benefits of the GNSS receiver. In addition, compared with the solution of always using the enable signal with the first duty cycle to control the amplifier, the solution of the present application can adaptively adjust the duty cycle of the enable signal, thereby adaptively adjusting the working time of the amplifier within the working cycle. The solution of the present application is more flexible and more compatible.
[0008] In conjunction with the first aspect, in an optional embodiment, determining the second duty cycle includes: if the current carrier-to-noise ratio is greater than a maximum value within a preset range, obtaining the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and the maximum value within the preset range. Thus, when the current carrier-to-noise ratio is greater than the maximum value within the preset range, the maximum value within the preset range is considered when determining the second duty cycle, thereby making the second duty cycle smaller than the first duty cycle. When the LNA is controlled using an enable signal for the second duty cycle, the carrier-to-noise ratio of the satellite signal is kept within the preset range, thereby reducing power consumption of the electronic device while maintaining performance benefits of the GNSS receiver.
[0009] In combination with the first aspect, in an optional embodiment, obtaining the second duty cycle based on a current carrier-to-noise ratio, a first duty cycle, and a maximum value within a preset range includes: determining a first carrier-to-noise ratio difference, where the first carrier-to-noise ratio difference is a carrier-to-noise ratio difference corresponding to the first duty cycle; determining a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and the maximum value within the preset range; and determining a second duty cycle, where the second duty cycle is a duty cycle corresponding to the second carrier-to-noise ratio difference; the carrier-to-noise ratio difference refers to a difference between a carrier-to-noise ratio threshold and the carrier-to-noise ratio in the same scenario, where the carrier-to-noise ratio threshold refers to the carrier-to-noise ratio corresponding to a duty cycle of 100%; and the carrier-to-noise ratio difference includes the first carrier-to-noise ratio difference and the second carrier-to-noise ratio difference.
[0010] Optionally, when the duty cycle of the enable signal is known, the carrier-to-noise ratio difference corresponding to the duty cycle can be determined by a first polynomial. For example, the first polynomial can be:
[0011] y=-46.67x 3 +97.85x 2 -72.16x+20.87 (1)
[0012] Here, x represents the duty cycle of the enable signal, and y represents the carrier-to-noise ratio difference.
[0013] Optionally, when the carrier-to-noise ratio difference is known, the duty cycle corresponding to the carrier-to-noise ratio difference may be determined using a second polynomial.
[0014] For example, the second polynomial may be:
[0015] y=-0.0003x 3 +0.0115x 2 -0.1706x+1.0113 (2)
[0016] Here, x represents the carrier-to-noise ratio difference, and y represents the duty cycle of the enable signal.
[0017] Optionally, when the duty cycle of the enable signal is known to be x0, the corresponding carrier-to-noise ratio difference can be calculated using the following expression:
[0018] Among them, x0, x a 、x b They are used to represent the duty cycle of the enable signal, y0, y a 、y b They are respectively used to represent the corresponding carrier-to-noise ratio differences.
[0019] For example, when the C / N difference is known to be y0, the duty cycle of the corresponding enable signal can be obtained by the following expression:
[0020] Among them, y0, y m 、y n They are used to represent the difference in carrier-to-noise ratio; x0, x m 、x n They are respectively used to represent the duty cycle of the corresponding enable signal.
[0021] In this way, the second duty cycle can be determined based on the one-to-one correspondence between the duty cycle of the enable signal and the carrier-to-noise ratio difference.
[0022] In conjunction with the first aspect, in an optional embodiment, determining a second carrier-to-noise ratio difference based on a current carrier-to-noise ratio, a first carrier-to-noise ratio difference, and a maximum value within a preset range includes: determining a carrier-to-noise ratio threshold based on the current carrier-to-noise ratio and the first carrier-to-noise ratio difference; determining the first difference based on the maximum value within the preset range and the current carrier-to-noise ratio; and determining the second carrier-to-noise ratio difference based on the carrier-to-noise ratio threshold and the first difference. The first difference is the difference between the maximum value within the preset range and the current carrier-to-noise ratio.
[0023] Optionally, the second carrier-to-noise ratio difference may be determined by the following formula:
[0024] y2=CN0+y1-(CN0 max -CN0) (5)
[0025] Among them, y2 is used to represent the second carrier-to-noise ratio difference, CN0 is used to represent the current carrier-to-noise ratio, y1 is used to represent the first carrier-to-noise ratio difference, CN0 max Used to indicate the maximum value of a preset range.
[0026] In conjunction with the first aspect, in an optional embodiment, the method further includes: detecting whether the satellite ephemeris is valid; if the satellite ephemeris is invalid, updating the satellite ephemeris; if the satellite ephemeris is valid, controlling the amplifier based on an enable signal of the second duty cycle when the second duty cycle is lower than the first duty cycle. In this manner, if the satellite ephemeris is valid, there is no need to update the satellite ephemeris; if the satellite ephemeris is invalid, it is necessary to update the satellite ephemeris. Timely updating of the satellite ephemeris ensures positioning performance.
[0027] In an optional embodiment, the method further includes determining whether the current time is within the valid time range of the satellite ephemeris, and if not, updating the satellite ephemeris. If not, updating the satellite ephemeris is not required.
[0028] In conjunction with the first aspect, in an optional embodiment, updating satellite ephemeris includes: controlling an amplifier based on an enable signal with a 100% duty cycle; receiving satellite ephemeris from a satellite, and updating the satellite ephemeris based on the received satellite ephemeris. In this embodiment, satellite ephemeris can be received directly from the satellite. When receiving satellite ephemeris from the satellite, the duty cycle of the enable signal can be increased to 100%, thereby increasing the LNA operating time to a full duty cycle, thereby improving the success rate of the electronic device receiving satellite ephemeris from the satellite.
[0029] In conjunction with the first aspect, in an optional embodiment, updating satellite ephemeris includes: detecting whether the electronic device is within a mobile communication range; if the electronic device is outside the mobile communication range, controlling an amplifier based on an enable signal with a 100% duty cycle; receiving satellite ephemeris from a satellite, and updating the satellite ephemeris based on the received satellite ephemeris. In this embodiment, when the satellite ephemeris fails and the electronic device is outside the mobile communication range, the electronic device can receive satellite ephemeris from the satellite, which facilitates the electronic device to successfully receive satellite ephemeris even when outside the mobile communication range.
[0030] In conjunction with the first aspect, in an optional embodiment, after detecting whether the electronic device is within mobile communication range, the method further includes: if the electronic device is within mobile communication range, receiving satellite ephemeris from the mobile communication network, and updating the satellite ephemeris based on the received satellite ephemeris. In this embodiment, the satellite ephemeris can be received directly from the mobile communication network, which shortens the time required to update the satellite ephemeris.
[0031] In conjunction with the first aspect, in an optional implementation, if the second duty cycle is greater than or equal to the first duty cycle, the amplifier is controlled based on an enable signal with the first duty cycle. In this way, without adjusting the duty cycle of the enable signal, the amplifier is still controlled based on the enable signal with the first duty cycle. This allows the amplifier to be controlled with an enable signal with a lower duty cycle, thereby saving power consumption in the electronic device.
[0032] In conjunction with the first aspect, in an optional implementation, if the second duty cycle is greater than or equal to the first duty cycle, the amplifier is controlled based on an enable signal having the second duty cycle. Thus, by controlling the amplifier using the enable signal having the second duty cycle, the carrier-to-noise ratio of the satellite signal can be kept within a preset range or as close to the preset range as possible, thereby avoiding impacting the performance benefits of the GNSS receiver.
[0033] In conjunction with the first aspect, in an optional embodiment, determining the second duty cycle includes: if the current carrier-to-noise ratio is less than a minimum value within a preset range, obtaining the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and the minimum value within the preset range. Thus, when the current carrier-to-noise ratio is less than the minimum value within the preset range, the minimum value within the preset range is considered when determining the second duty cycle, thereby making the second duty cycle greater than the first duty cycle. When the amplifier is controlled using an enable signal for the second duty cycle, the carrier-to-noise ratio of the satellite signal is kept within the preset range or as close to the preset range as possible, thereby avoiding impacting the performance benefits of the GNSS receiver.
[0034] In a second aspect, an embodiment of the present application provides an electronic device, including: a controller;
[0035] The controller is configured to control the amplifier based on an enable signal having a first duty cycle;
[0036] The controller is configured to determine a second duty cycle when detecting that the current carrier-to-noise ratio of the satellite signal is outside a preset range, and an enable signal of the second duty cycle is used to control the amplifier so that the carrier-to-noise ratio of the satellite signal is within the preset range;
[0037] If the second duty cycle is lower than the first duty cycle, the controller is configured to control the amplifier based on an enable signal of the second duty cycle.
[0038] In conjunction with the second aspect, in an optional implementation manner, the controller is configured to determine the second duty cycle, including:
[0039] If the current carrier-to-noise ratio is greater than the maximum value of the preset range, the controller is configured to obtain the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and the maximum value of the preset range.
[0040] In conjunction with the second aspect, in an optional implementation, the controller is configured to obtain the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and a maximum value within a preset range, including:
[0041] The controller is used to determine a first carrier-to-noise ratio difference, where the first carrier-to-noise ratio difference is a carrier-to-noise ratio difference corresponding to the first duty cycle;
[0042] The controller is configured to determine a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and a maximum value of a preset range;
[0043] The controller is used to determine a second duty cycle, where the second duty cycle is a duty cycle corresponding to the second carrier-to-noise ratio difference;
[0044] The carrier-to-noise ratio difference refers to the difference between the carrier-to-noise ratio threshold and the carrier-to-noise ratio in the same scenario. The carrier-to-noise ratio threshold refers to the carrier-to-noise ratio corresponding to a 100% duty cycle. The carrier-to-noise ratio difference includes a first carrier-to-noise ratio difference and a second carrier-to-noise ratio difference.
[0045] In conjunction with the second aspect, in an optional implementation, the controller is configured to determine the second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and a maximum value in a preset range, including:
[0046] The controller is configured to determine a carrier-to-noise ratio threshold based on the current carrier-to-noise ratio and the first carrier-to-noise ratio difference;
[0047] The controller is configured to determine a first difference based on a maximum value of a preset range and a current carrier-to-noise ratio; the first difference being a difference between the maximum value of the preset range and the current carrier-to-noise ratio;
[0048] The controller is configured to determine a second carrier-to-noise ratio difference based on the carrier-to-noise ratio threshold and the first difference.
[0049] In combination with the second aspect, in an optional implementation, after the controller is configured to determine the second duty cycle, if the second duty cycle is higher than or equal to the first duty cycle, the controller is configured to control the amplifier based on an enable signal of the first duty cycle.
[0050] In combination with the second aspect, in an optional implementation, after the controller is configured to determine the second duty cycle, if the second duty cycle is higher than or equal to the first duty cycle, the controller is configured to control the amplifier based on an enable signal of the second duty cycle.
[0051] In combination with the second aspect, in an optional embodiment, the controller is used to determine the second duty cycle, including: if the current carrier-to-noise ratio is less than the minimum value of the preset range, the controller is used to obtain the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle and the minimum value of the preset range.
[0052] In combination with the second aspect, in an optional implementation, the electronic device further includes an antenna; the antenna is used to receive satellite signals.
[0053] In combination with the second aspect, in an optional implementation, the electronic device further includes an amplifier, and the amplifier is used to amplify the satellite signal.
[0054] In conjunction with the second aspect, in an optional implementation, the electronic device further includes a global navigation satellite system receiver; the global navigation satellite system receiver is used to detect the carrier-to-noise ratio of the satellite signal.
[0055] In combination with the second aspect, in an optional embodiment, the global navigation satellite system receiver is used to detect whether the satellite ephemeris is valid; if the satellite ephemeris is invalid, the global navigation satellite system receiver is used to update the satellite ephemeris; if the satellite ephemeris is valid, when the second duty cycle is lower than the first duty cycle, the controller is used to control the amplifier based on an enable signal of the second duty cycle.
[0056] In combination with the second aspect, in an optional embodiment, the global navigation satellite system receiver is used to update satellite ephemeris, including: after the controller is used to control the amplifier based on an enable signal with a 100% duty cycle, the global navigation satellite system receiver is used to receive satellite ephemeris from the satellite through an antenna, and update the satellite ephemeris based on the received satellite ephemeris.
[0057] In combination with the second aspect, in an optional embodiment, the global navigation satellite system receiver is used to update satellite ephemeris, including: the global navigation satellite system receiver is used to detect whether the electronic device is within a mobile communication range; if it is outside the mobile communication range, then after the controller is used to control the amplifier based on an enable signal with a 100% duty cycle, the global navigation satellite system receiver is used to receive satellite ephemeris from the satellite through an antenna, and update the satellite ephemeris based on the received satellite ephemeris.
[0058] In combination with the second aspect, in an optional embodiment, after the global navigation satellite system receiver is used to detect whether the electronic device is within the mobile communication range, the global navigation satellite system receiver is also used to: if it is within the mobile communication range, receive satellite ephemeris from the mobile communication network through the antenna, and update the satellite ephemeris based on the received satellite ephemeris.
[0059] It should be noted that the beneficial effects of the second aspect and any optional implementation of the second aspect can be referred to the beneficial effects of the first aspect and any optional implementation of the first aspect, and will not be repeated here.
[0060] In a third aspect, an embodiment of the present application provides a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect.
[0061] In a fourth aspect, an embodiment of the present application provides a chip or chip system, comprising a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to run the code instructions to execute the method described in the first aspect.
[0062] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run on a computer, it enables the computer to execute the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments of the present application will be described below.
[0064] FIG1 is a schematic diagram of the structure of a GNSS system provided by the present application;
[0065] FIG2 is a schematic diagram of an interface provided by an embodiment of the present application;
[0066] FIG3 is a schematic diagram of a duty cycle provided in an embodiment of the present application;
[0067] FIG4 is a schematic structural diagram of a test system provided in an embodiment of the present application;
[0068] FIG5 is a schematic diagram of a curve and data points of a first polynomial provided in an embodiment of the present application;
[0069] FIG6 is a schematic diagram of a curve and data points of a second polynomial provided in an embodiment of the present application;
[0070] FIG7 is a graph showing how the error caused by noise in a GNSS receiver varies with the carrier-to-noise ratio according to an embodiment of the present application;
[0071] FIG8 is a schematic structural diagram of a circuit system provided in an embodiment of the present application;
[0072] FIG9 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0073] FIG10 is a flow chart of a method for controlling an enable signal according to an embodiment of the present application;
[0074] FIG11 is a flow chart of another method for controlling an enable signal according to an embodiment of the present application;
[0075] FIG12 is a flow chart of another method for controlling an enable signal according to an embodiment of the present application;
[0076] FIG13 is a schematic diagram of various data points provided in an embodiment of the present application;
[0077] FIG14 is a schematic diagram of another data point provided in an embodiment of the present application;
[0078] FIG15 is a flow chart of another method for controlling an enable signal according to an embodiment of the present application;
[0079] FIG16 is a flow chart of another method for controlling an enable signal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and claims of this application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in this application refers to any or all possible combinations including one or more of the listed features. In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise stated, the meaning of "multiple" is two or more.
[0081] To facilitate understanding, some concepts involved in this application are described below.
[0082] 1. GNSS system
[0083] The GNSS system is an airborne radio navigation and positioning system that can provide users with all-weather three-dimensional coordinates, velocity, and time information at any location on the Earth's surface or in near-Earth space. Optionally, GNSS systems typically include the Global Positioning System (GPS), the GLONASS (globalnaja nawigazionnaja sputnikowaja sistema), the Galileo (GALILEO) system, and the Beidou satellite navigation system. Among them, the GPS system is a radio navigation positioning system based on artificial Earth satellites, including 24 satellites covering the entire world. The Beidou satellite navigation system is divided into two generations, namely the Beidou-1 and Beidou-2 systems. The system typically includes four geosynchronous orbit satellites.
[0084] Figure 1 shows a schematic diagram of the structure of a GNSS system. A GNSS system typically consists of three main components: a space segment, a ground control segment, and a user receiver. As shown in Figure 1, the space segment of the GNSS system may include multiple satellites 10, the ground control segment may include a ground control station 20, which typically includes a master control station, a monitoring station, and an injection station. The user receiver 30 of the GNSS system can receive satellite signals transmitted by the multiple satellites 10.
[0085] The basic principle of the GNSS system is to determine the position of a user receiver by measuring the distances between multiple satellites with known positions and the user receiver. The satellite positions can be obtained from the satellite ephemeris, based on the time recorded by the onboard clock. The distance between the user receiver and the satellite can be determined by the time it takes for the satellite signal, also known as the GNSS signal, to be transmitted to the user receiver.
[0086] During the positioning process, the ground control station 20 can transmit satellite ephemeris and other information to multiple satellites 10; multiple satellites 10 can continuously transmit satellite signals, which usually include satellite ephemeris and the transmission time of the satellite signal; the user receiver 30 can search and receive satellite signals, determine the position of the satellite 10 through the satellite ephemeris in the satellite signal, and determine the distance between itself and the satellite 10 through its own clock and the transmission time of the satellite signal, and further determine its own position based on the position of the satellite 10 and the distance between itself and the satellite 10.
[0087] Optionally, the user receiver 30 can be deployed in an electronic device so that the electronic device can implement a positioning function. That is, the electronic device can determine its own location based on the received satellite signals and display its own location on an electronic map. FIG2 shows a schematic diagram of an interface for an electronic device displaying an electronic map. As shown in FIG2 , the location of the electronic device can be represented by a circle containing a triangle. By viewing the user interface displayed by the electronic device, the user can know the location of the electronic device and the environment surrounding the electronic device.
[0088] Optionally, the user receiver 30 in the electronic device may include an antenna, an amplifier, and a GNSS receiver, wherein the antenna is used to receive satellite signals; the amplifier is used to amplify the satellite signals; and the GNSS receiver is used to implement positioning based on the satellite signals.
[0089] 2. Amplifier
[0090] The amplifier is a preamplifier of the GNSS receiver, which can be used to amplify satellite signals to obtain processed satellite signals and send the processed satellite signals to the GNSS receiver.
[0091] Optionally, the amplifier may include at least one of a low-noise amplifier (LNA) or a gain amplifier. A low-noise amplifier (LNA) is an amplifier with a very low noise figure. It is commonly used as a preamplifier in various radio receivers and as an amplifying circuit in highly sensitive electronic detection equipment. When amplifying weak signals, a low-noise amplifier can effectively reduce the interference of the amplifier's own noise on the signal, effectively improving the signal-to-noise ratio. A gain amplifier is used to amplify the voltage, current, or power of an input signal to a higher level, enhancing the signal's strength and making it easier to process or transmit. For example, in radio communications, a gain amplifier can boost signal strength, enabling it to be transmitted over longer distances or more easily received in noisy environments. In audio amplifiers, a gain amplifier can amplify the volume of an input signal to a higher level, making it easier to hear. For ease of illustration, the subsequent embodiments use a low-noise amplifier as an example. When the amplifier is a low-noise amplifier, it can reduce the interference of the amplifier's own noise on satellite signals, effectively improving the satellite signal's carrier-to-noise ratio.
[0092] 3. Enable signal
[0093] The use signal is used to control the LNA. For example, the enable signal controls the LNA to operate when it is at a high level and to stop the LNA when it is at a low level.
[0094] 4. Duty cycle of enable signal
[0095] The duty cycle of the enable signal is equal to the ratio of the duration that the enable signal is at a high level to the duty cycle of the enable signal. It should be noted that in the embodiment of the present application, the duty cycle of the enable signal may also be referred to as the duty cycle.
[0096] Exemplarily, taking the duty cycle of the enable signal = T as an example, FIG3(a) shows a schematic diagram of the enable signal with a duty cycle of 25%; FIG3(b) shows a schematic diagram of the enable signal with a duty cycle of 50%.
[0097] Optionally, the duty cycle of the enable signal can range from 10% to 100%. The lower the duty cycle of the enable signal, the shorter the LNA's operating time within a duty cycle, and the lower the power consumption of the electronic device (conversely, the higher the duty cycle of the enable signal, the longer the LNA's operating time within a duty cycle, and the higher the power consumption of the electronic device). For example, as described in conjunction with FIG3 , when the LNA is controlled based on an enable signal with a 50% duty cycle, the LNA's operating time within a duty cycle is half of the duty cycle. When the LNA is controlled based on an enable signal with a 25% duty cycle, the LNA's operating time within a duty cycle is one-quarter of the duty cycle. Compared to the enable signal with a 50% duty cycle, the LNA's operating time is shorter when controlled by the enable signal with a 25% duty cycle. When the duty cycle of the enable signal is adjusted from 50% to 25%, the power consumption of the electronic device is reduced.
[0098] 5. Carrier-to-noise ratio
[0099] The carrier-to-noise ratio (CNR) is the ratio of the received power of the satellite signal to the noise power. Alternatively, it can be said that the CNR is the ratio of the received power of the satellite signal to the noise power received by the GNSS receiver.
[0100] Optionally, the carrier-to-noise ratio is related to a duty cycle of the enable signal.
[0101] For example, as shown in Table 1, the carrier-to-noise ratios are measured when the duty cycle of the enable signal is 100%, 80%, 60%, 40%, 20%, and 10%, respectively. When the duty cycle of the enable signal is 100%, the carrier-to-noise ratio is 40.4 decibel-hertz (dBHz); when the duty cycle of the enable signal is 80%, the carrier-to-noise ratio is 38.9 dBHz; when the duty cycle of the enable signal is 60%, the carrier-to-noise ratio is 37.4 dBHz; when the duty cycle of the enable signal is 40%, the carrier-to-noise ratio is 35.5 dBHz; when the duty cycle of the enable signal is 20%, the carrier-to-noise ratio is 31 dBHz; and when the duty cycle of the enable signal is 10%, the carrier-to-noise ratio is 25.5 dBHz.
[0102] Table 1
[0103] In one embodiment, when the LNA is controlled by an enable signal with the same duty cycle, if the communication scenario changes (for example, the power of the signal received by the GNSS receiver changes), the measured carrier-to-noise ratio may be different. As shown in Table 2, the carrier-to-noise ratio corresponding to the power a of the signal received by the GNSS receiver and the carrier-to-noise ratio corresponding to the power b of the signal received by the GNSS receiver are shown, respectively, where a and b are different. Taking the duty cycle of the enabling signal as 100%, 80%, 60%, 40%, 20% and 10% as an example, when the duty cycle of the enabling signal is 100%, if the power of the signal received by the GNSS receiver is a, the corresponding carrier-to-noise ratio may be 40.4dBHz, and if the power of the signal received by the GNSS receiver is b, the corresponding carrier-to-noise ratio may be 35.5dBHz; when the duty cycle of the enabling signal is 80%, if the power of the signal received by the GNSS receiver is a, the corresponding carrier-to-noise ratio may be 38.9dBHz, and if the power of the signal received by the GNSS receiver is b, the corresponding carrier-to-noise ratio may be 34dBHz; when the duty cycle of the enabling signal is 60%, if the power of the signal received by the GNSS receiver is a, the corresponding carrier-to-noise ratio may be 37.4dBHz, and if the power of the signal received by the GNSS receiver is The rate is b, the corresponding carrier-to-noise ratio may be 32.5dBHz; when the duty cycle of the enable signal is 40%, if the power of the signal received by the GNSS receiver is a, the corresponding carrier-to-noise ratio may be 35.5dBHz, if the power of the signal received by the GNSS receiver is b, the corresponding carrier-to-noise ratio may be 30.6dBHz; when the duty cycle of the enable signal is 20%, if the power of the signal received by the GNSS receiver is a, the corresponding carrier-to-noise ratio may be 31dBHz, if the power of the signal received by the GNSS receiver is b, the corresponding carrier-to-noise ratio may be 26dBHz; when the duty cycle of the enable signal is 10%, if the power of the signal received by the GNSS receiver is a, the corresponding carrier-to-noise ratio may be 25.5dBHz, if the power of the signal received by the GNSS receiver is b, the corresponding carrier-to-noise ratio may be 21.5dBHz.
[0104] Table 2
[0105] 6. Carrier-to-noise ratio threshold
[0106] The carrier-to-noise ratio threshold is a carrier-to-noise ratio corresponding to a 100% duty cycle of the enable signal, and the carrier-to-noise ratio threshold can be obtained through testing.
[0107] 7. Carrier-to-noise ratio difference
[0108] The carrier-to-noise ratio difference refers to the difference between the carrier-to-noise ratio threshold and the carrier-to-noise ratio in the same scenario. For example, as shown in Table 2, when the duty cycle of the enable signal is 80%, the carrier-to-noise ratio threshold tested in the first communication scenario is 40.4dBHz, the carrier-to-noise ratio is 38.9dBHz, and the carrier-to-noise ratio difference = 40.4-38.9 = 1.5dBHz; the carrier-to-noise ratio threshold tested in the second communication scenario is 35.5dBHz, the carrier-to-noise ratio is 34dBHz, and the carrier-to-noise ratio difference = 35.5-34 = 1.5dBHz; when the duty cycle of the enable signal is 60%, the carrier-to-noise ratio tested in the first communication scenario is 40.4dBHz, the carrier-to-noise ratio is 38.9dBHz, and the carrier-to-noise ratio difference = 40.4-38.9 = 1.5dBHz. The carrier-to-noise ratio threshold is 40.4dBHz, the carrier-to-noise ratio is 37.4dBHz, and the carrier-to-noise ratio difference is 40.4-37.4=3dBHz. The carrier-to-noise ratio threshold tested in the second communication scenario is 35.5dBHz, the carrier-to-noise ratio is 32.5dBHz, and the carrier-to-noise ratio difference is 35.5-32.5=3dBHz. When the duty cycle of the enable signal is 40%, the carrier-to-noise ratio threshold tested in the first communication scenario is 40.4dBHz, the carrier-to-noise ratio is 35.5dBHz, and the carrier-to-noise ratio difference is 40.4- 35.5=4.9dBHz; the carrier-to-noise ratio threshold tested in the second communication scenario is 35.5dBHz, the carrier-to-noise ratio is 30.6dBHz, and the carrier-to-noise ratio difference = 35.5-30.6=4.9dBHz; when the duty cycle of the enable signal is 20%, the carrier-to-noise ratio threshold tested in the first communication scenario is 40.4dBHz, the carrier-to-noise ratio is 31dBHz, and the carrier-to-noise ratio difference = 40.4-31=9.4dBHz; the carrier-to-noise ratio threshold tested in the second communication scenario is 35.5dBHz z, the carrier-to-noise ratio is 26 dBHz, and the carrier-to-noise ratio difference = 35.5-26 = 9.5 dBHz; when the duty cycle of the enable signal is 10%, the carrier-to-noise ratio threshold tested in the first communication scenario is 40.4 dBHz, the carrier-to-noise ratio is 25.5 dBHz, and the carrier-to-noise ratio difference = 40.4-25.5 = 14.9 dBHz; the carrier-to-noise ratio threshold tested in the second communication scenario is 35.5 dBHz, the carrier-to-noise ratio is 21.5 dBHz, and the carrier-to-noise ratio difference = 35.5-21.5 = 14 dBHz.
[0109] It can be seen that for the same duty cycle, the difference in the carrier-to-noise ratio tested in different communication scenarios is roughly the same.
[0110] It should be noted that the data in Tables 1 and 2 can be tested under a scenario where the frequency of the enable signal is 16.67 Hz. In other embodiments, testing can also be performed at other frequencies, for example, at any frequency value within the range of 1 Hz-20 Hz, which is not limiting.
[0111] Optionally, Table 1 and Table 2 may be obtained through testing of a test system. For example, FIG4 exemplarily shows a schematic structural diagram of a test system. As shown in FIG4 , the test system 400 may include a signal transmitting device 41, an electronic device 42, and a controller 43. The signal transmitting device 41 is used to transmit a first signal, which is used to simulate a satellite signal. The signal transmitting device 41 may be any device that supports signal transmission, such as a GPS instrument. The electronic device 42 is used to receive the first signal from the signal transmitting device 41, determine a carrier-to-noise ratio based on the first signal, and output the carrier-to-noise ratio. Optionally, the electronic device 42 may include an LNA and a GNSS receiver. The LNA is used to amplify the first signal to obtain a processed first signal, and the GNSS receiver is used to determine the carrier-to-noise ratio based on the processed first signal. The controller 43 is used to output an enable signal with different duty cycles, which is used to control the electronic device 42 (for example, the enable signal may be used to control the LNA in the electronic device 42, or, for another example, the enable signal may be used to control the LNA and GNSS receiver in the electronic device 42). It should be noted that in some implementations, the controller 43 may include a radio frequency switch module and a signal transmitter, the radio frequency switch module is used to turn on or off the enable signal, and the signal transmitter is used to adjust the duty cycle of the enable signal.
[0112] It should be noted that the data in Tables 1 and 2 were obtained using the same test system. Changing the test system may cause changes in the data. For example, when the internal hardware and software structure of a GNSS receiver is modified, the difference in carrier-to-noise ratio measured by different test systems for the same duty cycle may differ.
[0113] Since the C / N ratio differences measured in different scenarios for the same duty cycle are the same, it can be seen that there is a one-to-one correspondence between the enable signal's duty cycle and the C / N ratio difference. Therefore, if the enable signal's duty cycle is known, the corresponding C / N ratio difference can be determined. Similarly, if the C / N ratio difference is known, the corresponding enable signal's duty cycle can also be determined. For example, when an amplifier is controlled by an enable signal with a first duty cycle, the C / N ratio difference of the satellite signal obtained after processing by the amplifier is the first C / N ratio difference corresponding to the first duty cycle. For another example, when an amplifier is controlled by an enable signal with a second duty cycle, the C / N ratio difference of the satellite signal obtained after processing by the amplifier is the second C / N ratio difference corresponding to the second duty cycle.
[0114] The present embodiment provides two methods for establishing a corresponding relationship between the duty cycle of the enable signal and the difference between the carrier-to-noise ratio:
[0115] (1) Polynomial fitting
[0116] Here, polynomial fitting refers to fitting a polynomial curve using the coordinate values of known data points (i.e., the duty cycle of the enable signal and the corresponding carrier-to-noise ratio difference in Table 2) so that the polynomial curve coincides with the given data points as much as possible.
[0117] A. The first polynomial
[0118] The first polynomial is used to describe how the C / N difference changes with the duty cycle of the enable signal. That is, when the duty cycle of the enable signal is known, the C / N difference corresponding to the duty cycle can be determined using the first polynomial.
[0119] For example, the first polynomial may be:
[0120] y=-46.67x 3 +97.85x 2 -72.16x+20.87 (1)
[0121] Here, x represents the duty cycle of the enable signal, and y represents the carrier-to-noise ratio difference.
[0122] Optionally, the first polynomial can be obtained by simulation using MATLAB software.
[0123] Optionally, the code input into MATLAB software may include but is not limited to the following:
[0124] x=[1 0.8 0.6 0.4 0.2 0.1];
[0125] y = [0 1.5 3 4.9 9.4 14.9];
[0126] P = polyfit(x, y, 3);
[0127] xi=0:0.01:1;
[0128] yi=polyval(P,xi);
[0129] For example, to more intuitively demonstrate the coincidence relationship between the simulated first polynomial curve and the given data points, the code plot(xi, yi, x, y, 'b★') can be entered in MATLAB software to display the first polynomial curve and the given data points. See Figure 5, which shows a schematic diagram of the first polynomial curve and the data points. As shown in Figure 5, the solid line represents the first polynomial curve, and the black ★ represents each data point. As can be seen from Figure 5, the first polynomial curve substantially coincides with the given data points.
[0130] B. The second polynomial
[0131] The second polynomial is used to describe how the duty cycle of the enable signal changes with the carrier-to-noise ratio difference. That is, when the carrier-to-noise ratio difference is known, the duty cycle corresponding to the carrier-to-noise ratio difference can be determined by the second polynomial.
[0132] For example, the second polynomial may be:
[0133] y=-0.0003x 3 +0.0115x 2 -0.1706x+1.0113 (2)
[0134] Here, x represents the carrier-to-noise ratio difference, and y represents the duty cycle of the enable signal.
[0135] Optionally, the second polynomial can also be obtained by simulation using MATLAB software.
[0136] Optionally, the code input into MATLAB software may include but is not limited to the following:
[0137] x = [0 1.5 3 4.9 9.4 14.9];
[0138] y=[1 0.8 0.6 0.4 0.2 0.1];
[0139] P = polyfit(x, y, 3);
[0140] xi=0:0.1:15;
[0141] yi=polyval(P,xi);
[0142] For example, to more intuitively demonstrate the coincidence relationship between the simulated second polynomial curve and the given data points, the code plot(xi, yi, x, y, 'b★') can be entered in MATLAB software to display the second polynomial curve and the given data points. See Figure 6, which shows a schematic diagram of the second polynomial curve and the data points. As shown in Figure 6, the second polynomial curve is represented by a solid line, and the data points are represented by black ★. As can be seen from Figure 6, the second polynomial curve substantially coincides with the given data points.
[0143] It should be noted that the first polynomial and the second polynomial obtained by polynomial fitting are merely exemplary. In other implementations, the first polynomial and the second polynomial may also be higher-order polynomials, without limitation.
[0144] (2) Interpolation method
[0145] Interpolation is a method of constructing a straight line between two known points to determine the unknown point.
[0146] For example, if we know two points A and B, the coordinates of A and B are A(x a ,y a )、B(x b ,y b ); When the duty cycle of the enable signal is known to be x0, the corresponding carrier-to-noise ratio difference can be obtained by the following expression:
[0147] Among them, x0, x a 、x b They are used to represent the duty cycle of the enable signal, y0, y a 、y b They are respectively used to represent the corresponding carrier-to-noise ratio differences.
[0148] For example, if we know two points M and N, the coordinates of the two points M and N are M(x m ,y m )、N(x n ,y n ); When the carrier-to-noise ratio difference is known to be y0, the corresponding duty cycle of the enable signal can be obtained by the following expression:
[0149] Among them, y0, y m 、y n They are used to represent the difference in carrier-to-noise ratio; x0, x m 、x n They are respectively used to represent the duty cycle of the corresponding enable signal.
[0150] At present, GNSS positioning performance is related to the carrier-to-noise ratio. For example, Figure 7 is a graph showing how the error caused by GNSS receiver noise varies with the carrier-to-noise ratio, as provided in an embodiment of the present application. As shown in Figure 7, as the carrier-to-noise ratio increases, the positioning error caused by GNSS receiver noise gradually becomes smaller. When the positioning error caused by other error sources such as multipath remains unchanged, the improvement in the carrier-to-noise ratio has a smaller marginal effect on the improvement in GNSS positioning accuracy (or GNSS performance benefit), that is, as the carrier-to-noise ratio increases, the improvement in GNSS positioning accuracy gradually becomes smaller. It should be noted that multipath refers to the propagation phenomenon of satellite signals from satellites through multiple paths to electronic devices.
[0151] At the same time, when the duty cycle of the enable signal is high, the LNA operates for a longer period of time within a duty cycle, resulting in higher power consumption in the electronic device. Therefore, reducing power consumption without compromising GNSS performance is an urgent issue that needs to be addressed.
[0152] Based on this, an embodiment of the present application proposes a method for controlling an enable signal. Upon detecting that the current carrier-to-noise ratio of a satellite signal is outside a preset range, a second duty cycle is determined. When an enable signal with this second duty cycle is used to control an LNA, the carrier-to-noise ratio of the satellite signal is kept within the preset range. Furthermore, when the second duty cycle is lower than the first duty cycle, the duty cycle of the enable signal is adjusted to the second duty cycle, and the LNA is controlled based on the enable signal with the second duty cycle. This method can reduce the operating time of the LNA within a duty cycle without affecting the performance benefits of the GNSS receiver, thereby reducing the power consumption of electronic devices while maintaining the performance benefits of the GNSS receiver.
[0153] The enable signal control method according to the embodiments of the present application can be applied to the circuit system shown in FIG8 . FIG8 shows a schematic structural diagram of a circuit system. As shown in FIG8 , the circuit system may include an antenna 81, an LNA 82, a GNSS receiver 83, and a controller 84. Antenna 81 is connected to LNA 82, LNA 82 is connected to antenna 81, GNSS receiver 83, and controller 84, and GNSS receiver 83 is connected to LNA 82 and controller 84.
[0154] In some optional implementations, the circuit system may be specifically used to implement:
[0155] s11: The antenna 81 receives satellite signals and sends the satellite signals to the LNA 82.
[0156] s12: LNA 82 receives the satellite signal from antenna 81.
[0157] s13 : the controller 84 sends an enable signal with a first duty cycle to the LNA 82 .
[0158] s14: The LNA 82 receives the enable signal of the first duty cycle from the controller 84 , and amplifies the satellite signal under the control of the enable signal of the first duty cycle to obtain a processed satellite signal, and sends the processed satellite signal to the GNSS receiver 83 .
[0159] s15 : The GNSS receiver 83 receives the processed satellite signal from the LNA 82 , detects a current carrier-to-noise ratio of the satellite signal based on the processed satellite signal, and sends the current carrier-to-noise ratio of the satellite signal to the controller 84 .
[0160] s16: The controller 84 receives the current carrier-to-noise ratio of the satellite signal from the GNSS receiver 83, and determines a second duty cycle when detecting that the current carrier-to-noise ratio of the satellite signal is outside a preset range.
[0161] s17: If the second duty cycle is lower than the first duty cycle, the controller 84 sends an enable signal of the second duty cycle to the LNA 82.
[0162] s18: The LNA 82 receives the enable signal of the second duty cycle from the controller 84 , and amplifies the satellite signal under the control of the enable signal of the second duty cycle to obtain a processed satellite signal, and sends the processed satellite signal to the GNSS receiver 83 .
[0163] s19: The GNSS receiver 83 receives the processed satellite signal from the LNA 82 and detects, based on the processed satellite signal, that the carrier-to-noise ratio of the satellite signal is within the preset range, and sends the carrier-to-noise ratio of the satellite signal within the preset range to the controller 84.
[0164] s20: The controller 84 receives the carrier-to-noise ratio of the satellite signal from the GNSS receiver 83 that is within a preset range.
[0165] Optionally, the controller 84 may be a microcontroller unit (MCU). Optionally, the controller 84 may be an independent device or may be integrated into the GNSS receiver 83 or the LNA 82, without limitation.
[0166] Optionally, in other embodiments, the circuit system may further support the controller 84 to send information to the GNSS receiver. For example, the information includes at least one of the following: an update period, a start time, and an end time; wherein the update period is the time interval between two adjacent transmissions of the carrier-to-noise ratio, the start time is the time when the GNSS receiver 83 starts sending the carrier-to-noise ratio to the controller 84; and the end time is the time when the GNSS receiver 83 stops sending the carrier-to-noise ratio to the controller 84.
[0167] It should be noted that the embodiments of the present application do not constitute a specific limitation on the steps implemented by the circuit system. The circuit system can change the order of implementation of the above steps, or be used to implement more or fewer steps than the examples.
[0168] It should be noted that the circuit systems illustrated in the embodiments of this application do not constitute a specific limitation on the circuit systems. In other embodiments, the circuit systems may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the diagrams may be implemented in hardware, software, or a combination of software and hardware.
[0169] In some optional embodiments, the circuit system can be deployed in electronic devices, including but not limited to mobile phones, tablet computers, vehicle-mounted devices, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, wearable devices (such as laptops and smart watches), etc.
[0170] FIG9 is a schematic diagram of the hardware structure of an electronic device. The electronic device may include: a processor, an external memory interface, an internal memory, a Universal Serial Bus (USB) interface, a charging management module, a power management module, a battery, antenna 1, antenna 2, a mobile communication module, a wireless communication module, a sensor module, buttons, a motor, an indicator, a camera, a display, and a SIM card slot. The audio module may include a speaker, a receiver, a microphone, a headphone jack, etc. The sensor module may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0171] It is understood that the structures illustrated in the embodiments of the present application do not constitute specific limitations on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0172] The processor may include one or more processing units, for example, an application processor (AP), a modem processor (Modem), a central processing unit (CPU), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0173] The wireless communication function of the electronic device can be implemented using antenna 1, antenna 2, a mobile communication module, a wireless communication module, and a modem. In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module, and antenna 2 is coupled to the wireless communication module, allowing the electronic device to communicate with network-side devices and other electronic devices using wireless communication technology. In this embodiment of the present application, the electronic device can receive satellite signals via antenna 2.
[0174] Among them, the touch sensor is also called a "touch device". The touch sensor can be set on the display screen, and the touch sensor and the display screen form a touch screen, also called a "touch screen". The touch sensor is used to detect touch operations acting on or near it. The touch sensor can transmit the detected touch operation to the AP to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen. In other embodiments, the touch sensor can also be set on the surface of the electronic device, which is different from the position of the display screen. In an embodiment of the present application, the electronic device can detect whether there is a user operation acting on the display screen of the electronic device through the touch sensor. For example, after the touch sensor detects the touch operation, the electronic device can turn on the positioning function.
[0175] Please refer to Figure 10, which is a flow chart of a method for controlling an enable signal provided by an embodiment of the present application. As shown in Figure 10, the method for controlling an enable signal may include but is not limited to:
[0176] S101: Controlling an LNA based on an enable signal with a first duty cycle.
[0177] The first duty cycle is the current duty cycle of the enable signal. For example, if the duty cycle of the enable signal has not been adjusted, the first duty cycle is the initial value in the first adjustment step; if the duty cycle of the enable signal has been adjusted, the first duty cycle is the duty cycle obtained after the last adjustment.
[0178] In some embodiments, before step S101, the method further includes step S100: receiving satellite signals. Specifically, the electronic device can receive satellite signals via antenna 2. It should be noted that a detailed description of satellite signals can be found in the relevant description of the GNSS system and will not be repeated here.
[0179] Optionally, the electronic device receives a satellite signal when a first trigger condition is satisfied, wherein the first trigger condition may include at least one of the following: the positioning function of the electronic device is turned on, or the electronic device detects a location search operation.
[0180] (1) For the scenario where the first trigger condition is that the positioning function of the electronic device is turned on:
[0181] If a user needs to use the positioning function of an electronic device, the electronic device can detect an activation operation for the positioning function. In response to the activation operation, the electronic device activates the positioning function and the positioning function enters an activated state. In this case, the electronic device can receive satellite signals. The activation operation of the positioning function can include various forms. For example, the status bar of the electronic device may include a control corresponding to the positioning function. In this case, the activation operation of the positioning function is a touch operation on the control. Of course, the activation operation of the positioning function can also include other forms, which are not limited in the embodiments of the present application.
[0182] (2) For the scenario where the first trigger condition is that the electronic device detects a location search operation:
[0183] If the user needs to obtain the current location, the electronic device can detect the location search operation. In response to the location search operation, the electronic device needs to use the positioning function. In this case, the electronic device can receive satellite signals. The location search operation may include various forms. For example, the display interface of the electronic device may include a control corresponding to the location search. In this case, the location search operation may include a touch operation on the control. In addition, if the electronic device supports a voice input function, the location search operation may include outputting a voice to the electronic device for indicating the location search. Of course, the location search operation may also include other forms, which are not limited in the embodiments of the present application.
[0184] Through the above scheme, the embodiment of the present application receives satellite signals to perform the positioning function only when the electronic device meets the first trigger condition, which can effectively reduce the time it takes for the electronic device to perform the positioning function, thereby effectively saving the power consumption of the electronic device.
[0185] S102: When it is detected that the current carrier-to-noise ratio of the satellite signal is outside a preset range, determine a second duty cycle.
[0186] In an optional embodiment, as shown in FIG11 , S102 may include but is not limited to s21 to s23 (including s23a and s23b):
[0187] s21: Get the current carrier-to-noise ratio of the satellite signal.
[0188] Optionally, the current carrier-to-noise ratio may be a currently detected carrier-to-noise ratio. In this embodiment, only one carrier-to-noise ratio is considered, which is simpler and more convenient.
[0189] Optionally, the current carrier-to-noise ratio may be the minimum carrier-to-noise ratio or the average carrier-to-noise ratio among multiple carrier-to-noise ratios. The multiple carrier-to-noise ratios may include some or all of the currently detected carrier-to-noise ratios. For example, if the carrier-to-noise ratios of five satellite signals are currently detected, the carrier-to-noise ratios of these five satellite signals may be directly used as the multiple carrier-to-noise ratios, and the minimum carrier-to-noise ratio or the average carrier-to-noise ratio among these five satellite signals may be selected as the current carrier-to-noise ratio. For another example, if the carrier-to-noise ratios of 12 satellite signals are currently detected, the carrier-to-noise ratios of five of the 12 satellite signals may be used as the multiple carrier-to-noise ratios, and the minimum carrier-to-noise ratio or the average carrier-to-noise ratio among these five satellite signals may be selected as the current carrier-to-noise ratio. The carrier-to-noise ratio of each satellite signal is determined based on the received power of the satellite signal and the corresponding noise power. In this embodiment, multiple carrier-to-noise ratios are comprehensively considered, avoiding the influence of errors from a single data point, and effectively improving the accuracy of the carrier-to-noise ratio.
[0190] s22: Compare the current carrier-to-noise ratio of the satellite signal with the preset range.
[0191] The preset range refers to the carrier-to-noise ratio interval, which can be expressed as [CN0 min , CN0 max ], CN0 max is the maximum value of the preset range, CN0 min The preset range is the minimum value of the preset range. For example, if the preset range is [25dBHz, 35dBHz], 35dBHz is the maximum value of the preset range, and 25dBHz is the minimum value of the preset range. It should be noted that in other implementations, the preset range can also be replaced by a preset carrier-to-noise ratio, which is not described in detail in this application.
[0192] If the current carrier-to-noise ratio is within the preset range, the GNSS receiver's performance benefit is good. If the current carrier-to-noise ratio is greater than the maximum value of the preset range, the marginal improvement in the carrier-to-noise ratio on GNSS positioning accuracy becomes smaller. When the current carrier-to-noise ratio is reduced to within the preset range, the impact on the GNSS receiver's performance benefit is small. When the current carrier-to-noise ratio is less than the minimum value of the preset range, the GNSS receiver's performance benefit can be effectively improved when the current carrier-to-noise ratio is increased to within the preset range.
[0193] Optionally, the preset range can be determined based on a preset carrier-to-noise ratio. For example, the preset range is a carrier-to-noise ratio interval that includes the preset carrier-to-noise ratio. Specifically, when the carrier-to-noise ratio is greater than the preset carrier-to-noise ratio, the marginal improvement in GNSS positioning accuracy due to an increase in the carrier-to-noise ratio becomes smaller. When the current carrier-to-noise ratio is reduced to the preset carrier-to-noise ratio, the performance benefit of the GNSS receiver is less affected. However, when the current carrier-to-noise ratio is increased to the preset carrier-to-noise ratio, the performance benefit of the GNSS receiver can be effectively improved. Therefore, adjusting the current carrier-to-noise ratio to the preset carrier-to-noise ratio can save power while maintaining the performance benefit of the GNSS receiver. Furthermore, in order to avoid frequent adjustment of the carrier-to-noise ratio, a preset range can be set based on the preset carrier-to-noise ratio. When the current carrier-to-noise ratio is within the preset range, the performance benefit of the GNSS receiver can be improved while saving power consumption. When the current carrier-to-noise ratio is greater than the maximum value of the preset range, the improvement in the carrier-to-noise ratio has a smaller marginal effect on the improvement in GNSS positioning accuracy. When the carrier-to-noise ratio is reduced from the current carrier-to-noise ratio to within the preset range, the impact on the performance benefit of the GNSS receiver is relatively small. When the current carrier-to-noise ratio is less than the minimum value of the preset range, when the carrier-to-noise ratio is increased from the current carrier-to-noise ratio to within the preset range, the performance benefit of the GNSS receiver can be effectively improved.
[0194] Optionally, in other embodiments, the preset range may be a default setting, a user setting, or obtained based on an analysis of preset time series data, where the preset time series data includes the carrier-to-noise ratio of the GNSS receiver at each moment in a preset time period and the corresponding positioning accuracy. The preset time period may be any historical time period, for example, the preset time period may be the past hour (for example, taking the current time as 10:00 as an example, the past hour may be 9:00-10:00), or the 30 minutes closest to the current time (for example, taking the current time as 10:00 as an example, the 30 minutes closest to the current time may be 9:30-10:00), and so on.
[0195] s23a: If the current carrier-to-noise ratio of the satellite signal is within the preset range, then (or after waiting for a period of time), repeat steps s21 to s22;
[0196] s23b: If the current carrier-to-noise ratio of the satellite signal is outside the preset range, determine a second duty cycle.
[0197] It should be noted that step s23a and step s23b are two parallel steps. If step s23a is executed, step s23b will not be executed. If step s23b is executed, step s23a will not be executed.
[0198] It should be noted that the current carrier-to-noise ratio of the satellite signal is outside the preset range, including: the current carrier-to-noise ratio of the satellite signal is greater than the maximum value of the preset range, or the current carrier-to-noise ratio of the satellite signal is less than the minimum value of the preset range. The following describes the two situations respectively:
[0199] (1) The current carrier-to-noise ratio of the satellite signal is greater than the maximum value within the preset range
[0200] Determining the second duty cycle includes: based on the current carrier-to-noise ratio (which can be expressed as CN0), the first duty cycle (which can be expressed as x1) and the maximum value of the preset range (which can be expressed as CN0 max ), and obtain the second duty cycle. As shown in FIG12 , the steps may include but are not limited to steps s31 to s33:
[0201] s31: Determine a first carrier-to-noise ratio difference, where the first carrier-to-noise ratio difference is a carrier-to-noise ratio difference corresponding to the first duty cycle.
[0202] In an optional embodiment, a first polynomial can be obtained based on test data fitting, and the first duty cycle (x1) is input into the first polynomial to obtain a first carrier-to-noise ratio difference (y1). For example, the first polynomial can be Formula 1, and the first duty cycle (x1) is input into Formula (1) to obtain the first carrier-to-noise ratio difference (y1). It should be noted that for the relevant explanation of the first polynomial, please refer to the aforementioned embodiment and will not be repeated here. In this embodiment, since the first polynomial is obtained based on polynomial fitting, the law of the carrier-to-noise ratio difference represented by the first polynomial changing with the duty cycle of the enable signal is more accurate, and thus the first carrier-to-noise ratio difference determined based on the first polynomial is also more accurate.
[0203] In another optional implementation, first, 6 data points can be determined based on the test data. For example, it can be seen from the test data that when the duty cycle of the enable signal is 1, the corresponding carrier-to-noise ratio difference is 0, and the point (1, 0) can be determined; when the duty cycle of the enable signal is 0.8, the corresponding carrier-to-noise ratio difference is 1.5, and the point (0.8, 1.5) can be determined; when the duty cycle of the enable signal is 0.6, the corresponding carrier-to-noise ratio difference is 3, and the point (0.6, 3) can be determined; when the duty cycle of the enable signal is 0.8, the corresponding carrier-to-noise ratio difference is 1.5, and the point (0.8, 1.5) can be determined; when the duty cycle of the enable signal is 0.6, the corresponding carrier-to-noise ratio difference is 3, and the point (0.6, 3) can be determined; When the signal's duty cycle is 0.4, the corresponding C / N difference is 4.9, so the point (0.4, 4.9) can be determined. When the enable signal's duty cycle is 0.2, the corresponding C / N difference is 9.4, so the point (0.2, 9.4) can be determined. When the enable signal's duty cycle is 0.1, the corresponding C / N difference is 14.9, so the point (0.1, 14.9) can be determined, as shown in Figure 13. Each data point is represented by a black ★. Figure 13 shows a schematic diagram of each data point. Then, from the six points, select points A and B whose duty cycle has the smallest difference with the first duty cycle. For example, if the first duty cycle is 0.5, the coordinates of the two selected points are A(0.6, 3) and B(0.4, 4.9), respectively. Then, input the first duty cycle (x1), the coordinates of point A, and the coordinates of point B into formula (3) to obtain the first C / N difference (y1). It should be noted that the relevant description of formula (3) can be found in the above embodiment and will not be repeated here. In this embodiment, compared with formula (1), formula (3) has a smaller amount of calculation, which can effectively save computing resources.
[0204] s32: Determine a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and a maximum value in a preset range.
[0205] In one optional embodiment, a carrier-to-noise ratio threshold is first determined based on the current carrier-to-noise ratio and a first carrier-to-noise ratio difference; a first difference is then determined based on a maximum value in a preset range and the current carrier-to-noise ratio; and finally, a second carrier-to-noise ratio difference is determined based on the carrier-to-noise ratio threshold and the first difference. The first difference is the difference between the maximum value in the preset range and the current carrier-to-noise ratio.
[0206] Optionally, the second carrier-to-noise ratio difference may be determined by the following formula:
[0207] y2=CN0+y1-(CN0 max -CN0) (5)
[0208] Among them, y2 is used to represent the second carrier-to-noise ratio difference, CN0 is used to represent the current carrier-to-noise ratio, y1 is used to represent the first carrier-to-noise ratio difference, CN0 max Used to indicate the maximum value of a preset range.
[0209] s33: Determine a second duty cycle, where the second duty cycle is a duty cycle corresponding to the second carrier-to-noise ratio difference.
[0210] In an optional embodiment, a second polynomial can be obtained based on test data fitting, and the second carrier-to-noise ratio difference (y2) is input into the second polynomial to obtain the second duty cycle (x2) of the enable signal. For example, the second polynomial can be Formula 2, and the second carrier-to-noise ratio difference (y2) is input into the second polynomial to obtain the second duty cycle (x2) of the enable signal. It should be noted that for the relevant explanation of the second polynomial, please refer to the aforementioned embodiment and will not be repeated here. In this embodiment, since the second polynomial is obtained based on polynomial fitting, the law of the duty cycle of the enable signal represented by the second polynomial changing with the carrier-to-noise ratio difference is more accurate, and thus the second duty cycle determined based on the second polynomial is also more accurate.
[0211] In another optional embodiment, six points can be determined based on the test data (for example, the coordinates of the six points are (1, 0), (0.8, 1.5), (0.6, 3), (0.4, 4.9), (0.2, 9.4), and (0.1, 14.9), respectively). As shown in FIG14 , each data point is represented by a black ★, and FIG14 shows a schematic diagram of each data point. Then, two points M and N with the smallest difference between the carrier-to-noise ratio difference and the second carrier-to-noise ratio difference are selected from the six points. For example, if the second carrier-to-noise ratio difference is 10, the coordinates of these two points are M(0.2, 9.4) and N(0.1, 14.9), respectively. Then, the second carrier-to-noise ratio difference (y2), the coordinates of point M, and the coordinates of point N are input into formula (4) to obtain the second duty cycle (x2) of the enable signal. It should be noted that the relevant description of formula (4) can be found in the aforementioned embodiment and will not be repeated here. In this embodiment, compared with formula (2), formula (4) has a smaller amount of calculation, which can effectively save computing resources. It should be noted that the explanation of the six points can be found in s31 and will not be repeated here.
[0212] In this embodiment, the correspondence between the duty cycle of the enable signal and the difference between the carrier-to-noise ratio (CNR) is obtained based on historical data analysis, allowing the second duty cycle to be accurately determined based on the historical data. Furthermore, because the maximum value within a preset range is taken into account when determining the second duty cycle, the obtained second duty cycle can be smaller than the first duty cycle. When the enable signal with the second duty cycle is used to control the LNA, the CNR of the satellite signal is kept within the preset range, thereby reducing the power consumption of the electronic device while maintaining the performance benefits of the GNSS receiver.
[0213] (2) The current carrier-to-noise ratio of the satellite signal is less than the minimum value within the preset range
[0214] Determining the second duty cycle includes: based on the current carrier-to-noise ratio (which can be expressed as CN0), the first duty cycle (which can be expressed as x1) and the minimum value of the preset range (which can be expressed as CN0 min ), and obtain the second duty cycle. As shown in FIG15 , the steps may include but are not limited to steps s41 to s43:
[0215] s41: Determine a first carrier-to-noise ratio difference, where the first carrier-to-noise ratio difference is a carrier-to-noise ratio difference corresponding to the first duty cycle.
[0216] It should be noted that for the relevant description, please refer to step s31 and will not be repeated here.
[0217] s42: Determine a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and a minimum value of a preset range.
[0218] In one optional embodiment, a carrier-to-noise ratio threshold is first determined based on the current carrier-to-noise ratio and a first carrier-to-noise ratio difference; a second difference is then determined based on the current carrier-to-noise ratio and a minimum value within a preset range; and finally, a second carrier-to-noise ratio difference is determined based on the carrier-to-noise ratio threshold and the second difference. The second difference is the difference between the current carrier-to-noise ratio and the minimum value within the preset range.
[0219] Optionally, the second carrier-to-noise ratio difference may be determined by the following formula:
[0220] y2=CN0+y1-(CN0-CN0 min ) (6)
[0221] Among them, y2 is used to represent the second carrier-to-noise ratio difference, CN0 is used to represent the current carrier-to-noise ratio, y1 is used to represent the first carrier-to-noise ratio difference, CN0 min Used to indicate the minimum value of a preset range.
[0222] s43: Determine a second duty cycle, where the second duty cycle is a duty cycle corresponding to the second carrier-to-noise ratio difference.
[0223] It should be noted that for the relevant description, please refer to step s33 and will not be repeated here.
[0224] It should be noted that in this case, the obtained second duty cycle is greater than the first duty cycle. If the obtained second duty cycle is less than or equal to 100%, when the LNA is controlled using the enable signal with the second duty cycle, the carrier-to-noise ratio of the satellite signal is kept within a preset range. If the obtained second duty cycle is greater than 100%, the obtained second duty cycle can be discarded and the second duty cycle value can be directly set to 100%. When the LNA is controlled using the enable signal with a 100% duty cycle, the carrier-to-noise ratio of the satellite signal is kept as close to the preset range as possible.
[0225] In this embodiment, the correspondence between the duty cycle of the enable signal and the carrier-to-noise ratio difference is obtained based on historical data analysis, allowing the second duty cycle to be accurately determined based on the historical data. Furthermore, because the minimum value of a preset range is taken into account when determining the second duty cycle, the obtained second duty cycle can be greater than the first duty cycle. When the LNA is controlled using the enable signal with the second duty cycle, the carrier-to-noise ratio of the satellite signal is kept within the preset range or as close to the preset range as possible, thereby maintaining the performance benefits of the GNSS receiver.
[0226] It should be noted that the above embodiment determines the second duty cycle based on the maximum value or minimum value of the preset range. In other implementations, the second duty cycle can also be determined based on the middle value of the preset range. For example, the middle value can be expressed as CN0 mid , CN0 min <CN0 mid <CN0 max , no limitation.
[0227] S103: If the second duty cycle is lower than the first duty cycle, controlling the LNA based on an enable signal of the second duty cycle.
[0228] In an optional implementation, step S103 specifically includes: if the second duty cycle is lower than the first duty cycle, adjusting the duty cycle of the enable signal from the first duty cycle to the second duty cycle, and controlling the LNA based on the enable signal of the second duty cycle.
[0229] It should be noted that, in the case where the second duty cycle is higher than or equal to the first duty cycle, the embodiment of the present application can implement the following two optional methods: (1) The duty cycle of the enable signal is not adjusted, and the LNA is directly controlled based on the enable signal of the first duty cycle. In this embodiment, the LNA can be controlled with an enable signal with a lower duty cycle, which is beneficial to reducing the working time of the LNA, thereby saving power consumption of the electronic device. (2) The duty cycle of the enable signal is adjusted from the first duty cycle to the second duty cycle, and the LNA is controlled based on the enable signal of the second duty cycle. In this embodiment, the LNA can be controlled with the enable signal of the second duty cycle so that the carrier-to-noise ratio of the satellite signal is within a preset range or as close to the preset range as possible, thereby avoiding affecting the performance benefits of the GNSS receiver.
[0230] Optionally, after executing step S103, S102 and S103 may be repeated (after waiting for a period of time). For example, the LNA may be controlled based on the second duty cycle, and a third duty cycle may be determined.
[0231] In some embodiments, after step S103 , the method further includes S104 : stopping receiving satellite signals.
[0232] Optionally, the electronic device stops receiving satellite signals when a second trigger condition is met. The second trigger condition may include at least one of the following: the position of the electronic device remains unchanged or is in a slight motion state for a preset period of time, or the electronic device detects that the positioning function is turned off.
[0233] (1) For the scenario where the second trigger condition is that the position of the electronic device remains unchanged or is in a slightly moving state within a preset time period:
[0234] If the position of the electronic device remains unchanged or is in a state of slight movement within the preset time, it indicates that the position of the electronic device has not changed for a long time and the probability of the electronic device changing its position is low. The position can be directly recorded without continuously receiving satellite signals to determine the position. In this case, satellite signal reception can be stopped. It should be noted that this application does not limit the value of the preset time length. For example, the preset time length can be 5 minutes, 10 minutes, etc.
[0235] (2) For the scenario where the second trigger condition is that the electronic device detects that the positioning function is turned off:
[0236] If the electronic device detects that the positioning function is turned off, it generally indicates that the user does not need to use the electronic device for positioning. In this case, the electronic device can stop receiving satellite signals. The operation of turning off the positioning function is similar to the operation of turning on the positioning function, and will not be repeated here.
[0237] Through the above solution, the embodiment of the present application stops receiving satellite signals in a timely manner when it is determined that the electronic device meets the second trigger condition, which can effectively save the power consumption of the electronic device.
[0238] In an embodiment of the present application, when it is detected that the current carrier-to-noise ratio of a satellite signal is outside a preset range, a second duty cycle is determined. When an enable signal with the second duty cycle is used to control the LNA, the carrier-to-noise ratio of the satellite signal is kept within the preset range, thereby avoiding affecting the performance of the GNSS receiver. Furthermore, because the duty cycle of the enable signal can be adjusted from the higher first duty cycle to the lower second duty cycle when the second duty cycle is lower than the first duty cycle, the power consumption of the electronic device is reduced. Therefore, the present application solution can reduce the operating time of the LNA within a duty cycle without affecting the performance benefits of the GNSS receiver, thereby reducing the power consumption of the electronic device without affecting the performance benefits of the GNSS receiver. Furthermore, compared to a solution that always uses an enable signal with the first duty cycle to control the LNA, the present application solution can adaptively adjust the duty cycle of the enable signal, thereby adaptively adjusting the operating time of the LNA within a duty cycle, making the present application solution more flexible and more compatible.
[0239] In some scenarios, when the satellite ephemeris fails, the electronic device can receive satellite ephemeris from the satellite, and at this time the working time of the LNA within the working cycle can be increased (for example, the working time of the LNA is increased to the entire working cycle, that is, the duty cycle of the enable signal is 100%). Among them, the satellite ephemeris is used to indicate the position of the satellite at each moment recorded by the onboard clock. When the electronic device obtains the position of the satellite, the electronic device can determine the position of the electronic device based on the position of the satellite and the distance between the satellite and the electronic device. Based on this, an embodiment of the present application also provides another method for controlling the enable signal. As shown in Figure 16, the method for controlling the enable signal includes but is not limited to steps S201 to S203:
[0240] S201: Check whether the satellite ephemeris is valid.
[0241] If the satellite ephemeris is valid, there is no need to update it; if it is invalid, it is necessary to update it. In other words, when the satellite ephemeris is valid, the probability of errors in the satellite ephemeris is low, and there is no need to update the satellite ephemeris; when the satellite ephemeris is invalid, the probability of errors in the satellite ephemeris is high, and timely updating of the satellite ephemeris can ensure positioning performance.
[0242] In an optional embodiment, step S201 includes determining whether the current time is within the valid time range of the satellite ephemeris. If the current time is outside the valid time range of the satellite ephemeris, the satellite ephemeris is invalid and needs to be updated, and step S202 is executed. If the current time is within the valid time range of the satellite ephemeris, the satellite ephemeris is valid and does not need to be updated, and step S203 is executed. The valid time range refers to the time period between the time when the satellite ephemeris takes effect and the time when the satellite ephemeris becomes invalid. Taking the expiration time of the satellite ephemeris at 10:00 AM on November 21, 2023 as an example, the time when the satellite ephemeris becomes effective may optionally refer to the time when the electronic device receives the satellite ephemeris. For example, if the electronic device receives the satellite ephemeris at 9:00 AM on November 21, 2023, the effective time range is 9:00 AM on November 21, 2023 - 10:00 AM on November 21, 2023. Alternatively, the effective time of the satellite ephemeris may also refer to a time after the time when the electronic device receives the satellite ephemeris. For example, if the electronic device receives the satellite ephemeris at 9:00 AM on November 21, 2023, and the effective time of the satellite ephemeris is 9:30 AM on November 21, 2023, the effective time range is 9:30 AM on November 21, 2023 - 10:00 AM on November 21, 2023. It should be noted that the effective time range may be configured by a ground control system or indicated by a satellite and sent to the electronic device, without limitation.
[0243] The current moment may include any moment after the electronic device is turned on. For example, the current moment may include the moment when the current carrier-to-noise ratio of the satellite signal is detected to be outside the preset range. In this case, before step S201, the following steps may also be performed: controlling the LNA based on the enable signal of the first duty cycle, and detecting that the current carrier-to-noise ratio of the satellite signal is outside the preset range when controlling the LNA with the enable signal of the first duty cycle; for another example, the current moment may also include the moment when the second duty cycle is determined. In this case, before step S201, the following steps may also be performed: controlling the LNA based on the enable signal of the first duty cycle, and determining the second duty cycle if the current carrier-to-noise ratio of the satellite signal is detected to be outside the preset range. Optionally, the current moment may also include the moment before the LNA is controlled based on the enable signal of the first duty cycle, which is not limited in this application. It should be noted that the subsequent steps are described using the current moment as an example of the moment when the second duty cycle is determined.
[0244] S202: Update satellite ephemeris.
[0245] In an optional embodiment, step S202 may be step S202a, which may include: controlling the LNA based on an enable signal with a 100% duty cycle, receiving satellite ephemeris from a satellite, and updating the satellite ephemeris based on the received satellite ephemeris. That is, when the satellite ephemeris stored in the electronic device fails, the electronic device may receive satellite ephemeris from a satellite and update the stored satellite ephemeris based on the received satellite ephemeris. For example, when the satellite ephemeris stored in the GNSS receiver of the electronic device fails, the GNSS receiver may receive satellite ephemeris from a satellite via antenna 2 and update the stored satellite ephemeris based on the received satellite ephemeris. When the satellite ephemeris update is complete, the satellite ephemeris is valid, and the electronic device may execute step S203. It should be noted that the embodiments of the present application are described using a 100% duty cycle as an example. In other embodiments, the 100% duty cycle may be replaced with other higher duty cycles, such as duty cycles greater than 95% (e.g., 98% duty cycle, 99% duty cycle, etc.), without limitation. In this embodiment, satellite ephemeris can be directly received from the satellite. Furthermore, when receiving satellite ephemeris from the satellite, the duty cycle of the enable signal can be increased to 100%, thereby increasing the LNA operating time to the entire operating cycle, which is beneficial for improving the success rate of the electronic device receiving satellite ephemeris from the satellite.
[0246] In another optional implementation, step S202 may be step S202b, which may include but is not limited to:
[0247] s51: Detect whether the electronic device is within the mobile communication range.
[0248] If the electronic device is within the mobile communication range, it can directly receive satellite ephemeris from the mobile communication network and update the satellite ephemeris based on the received satellite ephemeris, which shortens the time it takes to update the satellite ephemeris. If the electronic device is outside the mobile communication range, it can receive satellite ephemeris from the satellite and update the satellite ephemeris based on the received satellite ephemeris, which helps the electronic device successfully receive satellite ephemeris even when it is outside the mobile communication range.
[0249] s52a: Receive satellite ephemeris from the mobile communication network, and update the satellite ephemeris based on the received satellite ephemeris.
[0250] It should be noted that when the satellite ephemeris stored in the electronic device is invalid, the electronic device can receive satellite ephemeris from the mobile communication network and update the stored satellite ephemeris based on the received satellite ephemeris. For example, when the satellite ephemeris stored in the GNSS receiver of the electronic device is invalid, the GNSS receiver can receive satellite ephemeris from the mobile communication network via antenna 1 and update the stored satellite ephemeris based on the received satellite ephemeris. When the satellite ephemeris update is complete, the satellite ephemeris is valid, and step S203 can be executed.
[0251] Optionally, the mobile communication network can be a Global System of Mobile communication (GSM) system, a Code Division Multiple Access (CDMA) system, a Wideband Code Division Multiple Access (WCDMA) system, a General Packet Radio Service (GPRS), a Long Term Evolution (LTE) system, an Advanced Long Term Evolution (LTE-A) system, a New Radio (NR) system, an evolution system of the NR system, an LTE-based Access to Unlicensed Spectrum (LTE-U) system on an unlicensed spectrum, an NR-based Access to Unlicensed Spectrum (NR-U) system on an unlicensed spectrum, a Non-Terrestrial Networks (NTN) system, a Universal Mobile Telecommunication System (UMTS), a Wireless Local Area Networks (WLAN), a Wireless Fidelity (Wireless Fidelity) system. Fidelity, WiFi), 6th-Generation (6G) systems, or mobile communication networks provided by subsequently evolved communication systems.
[0252] s52b: Control the LNA based on the enable signal with a 100% duty cycle, receive satellite ephemeris from the satellite, and update the satellite ephemeris based on the received satellite ephemeris.
[0253] It should be noted that when the satellite ephemeris is updated, the satellite ephemeris is valid and step S203 can be executed. For a detailed description of step s52b, please refer to step S202a and will not be repeated here.
[0254] It should be noted that step s52a and step s52b are two parallel steps. If step s52a is executed, step s52b will not be executed. If step s52b is executed, step s52a will not be executed.
[0255] It should be noted that step S202a and step S202b are two parallel steps. If step S202a is executed, step S202b will not be executed. If step S202b is executed, step S202a will not be executed.
[0256] S203: If the second duty cycle is lower than the first duty cycle, controlling the LNA based on an enable signal of the second duty cycle.
[0257] It should be noted that for related explanations, please refer to the relevant embodiment of Figure 10 and no further details will be given.
[0258] Optionally, after executing step S203, S201 to S203 may be repeated (or after waiting for a period of time), without limitation.
[0259] In an embodiment of the present application, the validity of satellite ephemeris can be detected. If the satellite ephemeris is invalid and it is necessary to receive satellite ephemeris from the satellite, the duty cycle of the enable signal can be increased to 100%, thereby increasing the operating time of the LNA to the entire operating cycle, thereby improving the success rate of the electronic device in receiving satellite ephemeris from the satellite.
[0260] It should be noted that the steps described in Figures 10 to 16 of the embodiments of the present application can be performed by an electronic device or by a device within the electronic device, for example, by at least one of the controller, antenna, amplifier, and GNSS receiver within the electronic device. This application does not limit this.
[0261] It should be noted that the embodiment of the present application is described using an enable signal for controlling the LNA as an example. In other implementations, the enable signal may also be replaced by an enable signal for simultaneously controlling the LNA and the GNSS receiver, which will not be described in detail.
[0262] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).
[0263] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A method for controlling an enable signal, characterized in that: The method comprises: controlling the amplifier based on an enable signal of a first duty cycle; When it is detected that the current carrier-to-noise ratio of the satellite signal is outside the preset range, a second duty cycle is determined, and when an enable signal of the second duty cycle is used to control the amplifier, the carrier-to-noise ratio of the satellite signal is within the preset range; If the second duty cycle is lower than the first duty cycle, the amplifier is controlled based on an enable signal of the second duty cycle.
2. The method according to claim 1, characterized in that The determining of the second duty cycle comprises: If the current carrier-to-noise ratio is greater than the maximum value of the preset range, the second duty cycle is obtained based on the current carrier-to-noise ratio, the first duty cycle, and the maximum value of the preset range.
3. The method according to claim 2, characterized in that The obtaining the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and the maximum value of the preset range includes: Determine a first carrier-to-noise ratio difference, where the first carrier-to-noise ratio difference is a carrier-to-noise ratio difference corresponding to the first duty cycle; Determine a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and a maximum value of the preset range; Determine a second duty cycle, where the second duty cycle is a duty cycle corresponding to the second carrier-to-noise ratio difference; The carrier-to-noise ratio difference refers to the difference between the carrier-to-noise ratio threshold and the carrier-to-noise ratio in the same scenario, and the carrier-to-noise ratio threshold refers to the carrier-to-noise ratio corresponding to a 100% duty cycle; the carrier-to-noise ratio difference includes the first carrier-to-noise ratio difference and the second carrier-to-noise ratio difference.
4. The method according to claim 3, characterized in that The determining a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and the maximum value of the preset range includes: Determining a carrier-to-noise ratio threshold based on the current carrier-to-noise ratio and the first carrier-to-noise ratio difference; Based on the maximum value of the preset range and the current carrier-to-noise ratio, a first difference is determined; the first difference is the difference between the maximum value of the preset range and the current carrier-to-noise ratio; The second carrier-to-noise ratio difference is determined based on the carrier-to-noise ratio threshold and the first difference.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Check whether the satellite ephemeris is valid; If the satellite ephemeris is invalid, updating the satellite ephemeris; If the satellite ephemeris is valid, when the second duty cycle is lower than the first duty cycle, the amplifier is controlled based on an enable signal of the second duty cycle.
6. The method according to claim 5, characterized in that The updating of the satellite ephemeris comprises: controlling the amplifier based on an enable signal having a 100% duty cycle; Satellite ephemeris is received from a satellite, and the satellite ephemeris is updated based on the received satellite ephemeris.
7. The method according to claim 5, characterized in that The updating of the satellite ephemeris comprises: Detect whether the electronic device is within the mobile communication range; If it is outside the mobile communication range, controlling the amplifier based on an enable signal with a 100% duty cycle; Satellite ephemeris is received from a satellite, and the satellite ephemeris is updated based on the received satellite ephemeris.
8. The method according to claim 7, characterized in that After detecting whether the electronic device is within the mobile communication range, the method further includes: If it is within the mobile communication range, satellite ephemeris is received from the mobile communication network, and the satellite ephemeris is updated based on the received satellite ephemeris.
9. The method according to claim 1, characterized in that After determining the second duty cycle, the method further includes: If the second duty cycle is higher than or equal to the first duty cycle, the amplifier is controlled based on an enable signal of the first duty cycle.
10. The method according to claim 1, characterized in that After determining the second duty cycle, the method further includes: If the second duty cycle is higher than or equal to the first duty cycle, the amplifier is controlled based on an enable signal of the second duty cycle.
11. The method according to claim 9 or 10, characterized in that The determining of the second duty cycle comprises: If the current carrier-to-noise ratio is less than a minimum value in a preset range, the second duty cycle is obtained based on the current carrier-to-noise ratio, the first duty cycle, and the minimum value in the preset range.
12. An electronic device, characterized in that: include: Controller, The controller is used to control the amplifier based on an enable signal of a first duty cycle; The controller is used to determine a second duty cycle when it is detected that the current carrier-to-noise ratio of the satellite signal is outside a preset range, and an enable signal of the second duty cycle is used to control the amplifier so that the carrier-to-noise ratio of the satellite signal is within the preset range; If the second duty cycle is lower than the first duty cycle, the controller is configured to control the amplifier based on an enable signal of the second duty cycle.
13. The electronic device according to claim 12, characterized in that: The controller is used to determine a second duty cycle, including: If the current carrier-to-noise ratio is greater than the maximum value of the preset range, the controller is configured to obtain the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and the maximum value of the preset range.
14. The electronic device according to claim 13, characterized in that: The controller is used to obtain the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and the maximum value of the preset range, including: The controller is used to determine a first carrier-to-noise ratio difference, where the first carrier-to-noise ratio difference is a carrier-to-noise ratio difference corresponding to the first duty cycle; The controller is used to determine a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and the maximum value of the preset range; The controller is used to determine a second duty cycle, where the second duty cycle is a duty cycle corresponding to the second carrier-to-noise ratio difference; The carrier-to-noise ratio difference refers to the difference between the carrier-to-noise ratio threshold and the carrier-to-noise ratio in the same scenario, and the carrier-to-noise ratio threshold refers to the carrier-to-noise ratio corresponding to a 100% duty cycle; the carrier-to-noise ratio difference includes the first carrier-to-noise ratio difference and the second carrier-to-noise ratio difference.
15. The electronic device according to claim 14, characterized in that: The controller is used to determine a second carrier-to-noise ratio difference based on the current carrier-to-noise ratio, the first carrier-to-noise ratio difference, and the maximum value of the preset range, including: The controller is used to determine a carrier-to-noise ratio threshold based on the current carrier-to-noise ratio and the first carrier-to-noise ratio difference; The controller is used to determine a first difference based on the maximum value of the preset range and the current carrier-to-noise ratio; the first difference is the difference between the maximum value of the preset range and the current carrier-to-noise ratio; The controller is configured to determine the second carrier-to-noise ratio difference based on the carrier-to-noise ratio threshold and the first difference.
16. The electronic device according to claim 12, characterized in that: After the controller is used to determine the second duty cycle, If the second duty cycle is higher than or equal to the first duty cycle, the controller is configured to control the amplifier based on an enable signal of the first duty cycle.
17. The electronic device according to claim 12, characterized in that: After the controller is used to determine the second duty cycle, If the second duty cycle is higher than or equal to the first duty cycle, the controller is configured to control the amplifier based on an enable signal of the second duty cycle.
18. The electronic device according to claim 16 or 17, characterized in that: The controller is used to determine a second duty cycle, including: If the current carrier-to-noise ratio is less than a minimum value in a preset range, the controller is configured to obtain the second duty cycle based on the current carrier-to-noise ratio, the first duty cycle, and the minimum value in the preset range.
19. The electronic device according to any one of claims 12 to 18, characterized in that: The electronic device further comprises an antenna; the antenna is used for receiving the satellite signal.
20. The electronic device according to any one of claims 12 to 18, characterized in that: The electronic device further comprises an amplifier, and the amplifier is used for amplifying the satellite signal.
21. The electronic device according to any one of claims 12 to 18, characterized in that: The electronic device further comprises a global navigation satellite system receiver; the global navigation satellite system receiver is used to detect the carrier-to-noise ratio of the satellite signal.
22. The electronic device according to claim 21, characterized in that The global navigation satellite system receiver is used to detect whether the satellite ephemeris is valid; If the satellite ephemeris is invalid, the global navigation satellite system receiver is used to update the satellite ephemeris; If the satellite ephemeris is valid, then when the second duty cycle is lower than the first duty cycle, the controller is configured to control the amplifier based on an enable signal of the second duty cycle.
23. The electronic device according to claim 22, characterized in that: The global navigation satellite system receiver is used to update satellite ephemeris, including: After the controller is used to control the amplifier based on the enable signal of 100% duty cycle, the global navigation satellite system receiver is used to receive satellite ephemeris from a satellite through an antenna and update the satellite ephemeris based on the received satellite ephemeris.
24. The electronic device according to claim 22, characterized in that: The global navigation satellite system receiver is used to update satellite ephemeris, including: The GNSS receiver is used to detect whether the electronic device is within the mobile communication range; If it is outside the mobile communication range, after the controller is used to control the amplifier based on the enable signal of 100% duty cycle, the global navigation satellite system receiver is used to receive satellite ephemeris from the satellite through the antenna and update the satellite ephemeris based on the received satellite ephemeris.
25. The electronic device according to claim 24, characterized in that After the GNSS receiver is used to detect whether the electronic device is within the mobile communication range, the GNSS receiver is further used to: If it is within the mobile communication range, satellite ephemeris is received from the mobile communication network through an antenna, and the satellite ephemeris is updated based on the received satellite ephemeris.
26. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 11.
27. A chip or a chip system, characterized in that: The method comprises a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit the code instructions to the processing circuit, and the processing circuit is used to run the code instructions to execute the method according to any one of claims 1 to 11.