Positioning method and apparatus, electronic device, and readable storage medium
Patent Information
- Application Number
- CN202311185238.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-13
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-09-13
AI Technical Summary
[0004]本申请实施例的目的是提供一种定位方法、装置、电子设备及可读存储介质,能够解决电子设备定位的功耗较大的问题
[0010]第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
Smart Images

Figure CN117111123B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of communication technology, and specifically relates to a positioning method, device, electronic device, and readable storage medium. Background Technology
[0002] Currently, during the positioning process of electronic devices, the digital signal processing (DSP) processor in the electronic device collects satellite data in real time and calculates the positioning information based on the collected satellite data. Then, the advanced reduced instruction set computer (ARM) processor in the electronic device outputs the positioning result data based on the calculated position information.
[0003] However, following the above method, the DSP processor and ARM processor need to be constantly working during the positioning process, resulting in high power consumption for electronic device positioning. Summary of the Invention
[0004] The purpose of this application is to provide a positioning method, apparatus, electronic device, and readable storage medium that can solve the problem of high power consumption in positioning of electronic devices.
[0005] In a first aspect, embodiments of this application provide a positioning method, which includes: acquiring first information related to positioning in real time during the positioning process; and performing positioning using a first positioning mode when the first information meets a first condition; wherein, in the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in working state, and in each working cycle of the first positioning mode, the working time of the location information calculation module is less than or equal to a first proportion, which is determined based on the signal quality of the satellite signals received during the positioning process.
[0006] Secondly, embodiments of this application provide a positioning device, which includes an acquisition module and a positioning module. The acquisition module is used to acquire first information related to positioning in real time during the positioning process. The positioning module is used to perform positioning using a first positioning mode when the first information meets a first condition. In the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in working state. In each working cycle of the first positioning mode, the working time of the location information calculation module is less than or equal to a first proportion, which is determined based on the signal quality of the satellite signals received during the positioning process.
[0007] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0008] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0009] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0010] In a sixth aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0011] In this embodiment, during the positioning process, first information related to positioning can be acquired in real time; and if the first information meets a first condition, a first positioning mode can be used for positioning. In the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in working state. Within each working cycle of the first positioning mode, the percentage of time the location information calculation module spends is less than or equal to a first percentage, which is determined based on the signal quality of the satellite signals received during the positioning process. Through this scheme, since the electronic device can use the first positioning mode for positioning when the first information related to positioning acquired in real time meets the first condition, and in this first positioning mode, the location information calculation module and the positioning result output module in the electronic device do not need to be constantly in working state, the power consumption of the electronic device during positioning can be reduced. Attached Figure Description
[0012] Figure 1 This is a diagram illustrating the power consumption percentage of a positioning system within one second in related technologies;
[0013] Figure 2 This is a power consumption diagram in the conventional positioning mode of related technologies;
[0014] Figure 3 This is one of the flowcharts of the positioning method provided in the embodiments of this application;
[0015] Figure 4 This is a schematic diagram of the first positioning mode in the positioning method provided in the embodiments of this application;
[0016] Figure 5 This is a power consumption diagram in the first positioning mode of the positioning method provided in the embodiments of this application;
[0017] Figure 6 This is a hardware schematic diagram of the low noise amplifier (LNA) in the positioning method provided in the embodiments of this application;
[0018] Figure 7 This is a schematic diagram of the behavior pattern of the LNA in the positioning method provided in the embodiments of this application;
[0019] Figure 8 This is the second flowchart of the positioning method provided in the embodiments of this application;
[0020] Figure 9 This is a power consumption diagram corresponding to different working cycles of the first processor in the positioning method provided in the embodiments of this application;
[0021] Figure 10 This is the third flowchart of the positioning method provided in the embodiments of this application;
[0022] Figure 11 This is the fourth flowchart of the positioning method provided in the embodiments of this application;
[0023] Figure 12 This is the fifth flowchart of the positioning method provided in the embodiments of this application;
[0024] Figure 13 This is a schematic diagram of the positioning device provided in the embodiments of this application;
[0025] Figure 14 This is a schematic diagram of the electronic device provided in the embodiments of this application;
[0026] Figure 15 This is a hardware schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0029] The term "instruction" in this application can be either a direct instruction (or explicit instruction) or an indirect instruction (or implicit instruction). A direct instruction can be understood as one in which the sender explicitly informs the receiver of specific information, the operation to be performed, or the requested result, etc., in the instruction sent. An indirect instruction can be understood as one in which the receiver determines the corresponding information based on the instruction sent by the sender, or makes a judgment and determines the operation to be performed or the requested result, etc., based on the judgment result.
[0030] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."
[0031] The positioning method, apparatus, electronic device, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.
[0032] Currently, location services are a standard feature on electronic devices and are widely used. Since most applications on electronic devices require access to location services, these services (such as GPS) must remain running in the background for extended periods.
[0033] In normal positioning mode, the positioning system outputs a location information every 1 second. Figure 1 This diagram illustrates the power consumption percentage of the positioning system within one second. Figure 1As shown, within 1 second, the DSP processor will be in a continuous working state, constantly collecting satellite ephemeris data and calculating positioning information, which results in the highest power consumption of the DSP processor. The ARM processor will process the calculated positioning information, which will also consume some power. Figure 2 A power consumption diagram in normal positioning mode is shown, such as... Figure 2 As shown, the power consumption is significantly higher during the acquisition phase of the positioning process, and the subsequent tracking phase also maintains a considerable power consumption.
[0034] Current electronic devices tend to use multi-mode, multi-frequency positioning. Multi-mode positioning includes GPS, BeiDou Navigation Satellite System, Galileo Navigation Satellite System, and GLONASS; multi-frequency positioning includes L1 and L5. When an electronic device activates its positioning function, L1 and L5 operate simultaneously, using more than 50 satellites. However, according to navigation theory, typically only 4 satellites are needed to output positioning information, and using more than 8 satellites has little impact on the convergence result.
[0035] It should be noted that GPS is a high-precision radio navigation and positioning system based on artificial Earth satellites. It can provide accurate geographical location, vehicle speed, and precise time information anywhere in the world and in near-Earth space. GPS is characterized by high precision, all-weather operation, global coverage, and convenience. The BeiDou Navigation Satellite System is a global satellite navigation system independently developed by my country. It is the third mature satellite navigation system after GPS and GLONASS. The BeiDou Navigation Satellite System consists of three parts: space segment, ground segment, and user segment. It can provide high-precision, high-reliability positioning, navigation, and timing services to various users worldwide, 24 / 7, and has short message communication capabilities. It has already initially achieved regional navigation and positioning capabilities. With its positioning accuracy at the decimeter and centimeter level, velocity measurement accuracy of 0.2 m / s, and timing accuracy of 10 nanoseconds, the Galileo satellite navigation system consists of 30 satellites at an orbital altitude of 23,616 km, including 27 operational satellites and 3 backup satellites. The satellites orbit at an altitude of approximately 24,000 km in three orbital planes with an inclination of 56 degrees. GLONASS provides two types of navigation signals: standard precision navigation signals and high precision navigation signals. GLONASS has a horizontal positioning accuracy of 57-70 meters (99.7% confidence), a vertical positioning accuracy of 70 meters (99.7% confidence), a velocity vector measurement accuracy of 15 cm / s (99.7% confidence), and a time measurement accuracy of 1 mks (99.7% confidence).
[0036] Current electronic navigation system receivers, regardless of the scenario, will perform a full-bandwidth, all-star search and tracking of satellites as long as the electronic device's positioning function is enabled. However, in pursuit of positioning speed and accuracy, the power consumption of the positioning system is maximized. But in most scenarios, so many satellites are not needed to converge positioning results, leading to a significant waste of power even with the navigation system's computing power at full capacity, ultimately affecting battery life. Specific drawbacks are as follows:
[0037] (1) Turning on the positioning function indoors will also keep the electronic device in the satellite search state for a long time, resulting in the system wasting power.
[0038] (2) In open scenarios, the positioning system searches for the number of satellites without limit until it reaches the maximum computing power and bandwidth limit of the navigation system.
[0039] (3) When the satellite signal is good, the chip algorithm continuously calculates the position, which increases the power consumption.
[0040] In related technologies, to ensure the normal operation of electronic devices under high power consumption, battery capacity is typically increased to extend battery life. However, increasing battery capacity leads to a larger battery size, which not only increases the manufacturing difficulty of the electronic device's motherboard but also reduces the user experience. Therefore, given the limited battery capacity of current electronic devices, reducing the power consumption of positioning systems becomes particularly important.
[0041] To address the aforementioned issues, embodiments of this application provide a positioning method, apparatus, electronic device, and readable storage medium. The positioning method provided in these embodiments can be applied to scenarios involving the positioning of electronic devices.
[0042] In the positioning method provided in this application embodiment, first information related to positioning can be acquired in real time during the positioning process; and when the first information meets a first condition, a first positioning mode is used for positioning. In the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in working state. Within each working cycle of the first positioning mode, the percentage of time the location information calculation module spends is less than or equal to a first percentage, which is determined based on the signal quality of the satellite signals received during the positioning process. Through this scheme, since the electronic device can use the first positioning mode for positioning when the first information related to positioning acquired in real time meets the first condition, and in this first positioning mode, the location information calculation module and the positioning result output module in the electronic device do not need to be in working state all the time, the power consumption of the electronic device during positioning can be reduced.
[0043] It should be noted that the positioning method provided in this application can be executed by a positioning device, an electronic device, or a functional module within an electronic device. Some embodiments of this application use an electronic device executing the positioning method as an example to illustrate the positioning method provided in this application.
[0044] Figure 3 A flowchart of the positioning method provided in an embodiment of this application is shown. Figure 3 As shown, the positioning method provided in this application embodiment may include the following steps 301 and 302.
[0045] Step 301: During the positioning process, the electronic device acquires the first information related to positioning in real time.
[0046] Optionally, in the embodiments of this application, the above-mentioned positioning process is the process of the positioning system in the electronic device working.
[0047] Optionally, in this embodiment of the application, the electronic device can trigger the above-mentioned positioning system to start working by enabling the positioning service function.
[0048] Optionally, in the embodiments of this application, the positioning system may include at least one of the following: GPS, BeiDou Navigation Satellite System, Galileo Satellite Navigation System, and GLONASS, etc.
[0049] Optionally, in the embodiments of this application, the first information mentioned above may include the output positioning result data, the quality of the satellite signal used for positioning, the number of satellites used for positioning, and the satellite ephemeris used for positioning, etc.
[0050] Optionally, in this embodiment of the application, the above-mentioned positioning result data may include: latitude and longitude information of the located geographical location, basic positioning information, relative movement direction and relative movement speed of the electronic device, etc.
[0051] Optionally, in the embodiments of this application, the satellite signal quality can be indicated by any of the following parameters: satellite signal-to-noise ratio, satellite signal strength, satellite signal receiving power, satellite signal receiving quality, etc.
[0052] It should be noted that the aforementioned satellite ephemeris, also known as two-line orbital data, is an expression used to describe the position and velocity of a spacecraft—a two-line orbital data system. Once a satellite, spacecraft, or spacecraft enters space, it is listed in the satellite ephemeris catalog, and spacecraft listed in the catalog will be tracked for their entire lifespan. The satellite ephemeris uses the mathematical relationships between the six orbital parameters of Kepler's laws to determine the time, coordinates, azimuth, velocity, and other parameters of the spacecraft, with extremely high precision. The satellite ephemeris can be used to accurately calculate, predict, depict, and track the time, position, velocity, and other operational status of satellites and spacecraft. It can express the precise parameters of celestial bodies, satellites, spacecraft, missiles, space debris, and other spacecraft. It can also place the spacecraft in three-dimensional space, depicting the past, present, and future of celestial bodies in a three-dimensional time frame. The time in the satellite ephemeris is calculated according to Coordinated Universal Time and is updated regularly.
[0053] Step 302: If the first information meets the first condition, the electronic device uses the first positioning mode to perform positioning.
[0054] In the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in operation. In each working cycle of the first positioning mode, the working time of the location information calculation module is less than or equal to a first proportion, which is determined based on the signal quality of the satellite signals received during the positioning process.
[0055] Optionally, in this embodiment of the application, the location information calculation module can be used to collect satellite data in real time and calculate the positioning location information based on the collected satellite data.
[0056] Optionally, in this embodiment of the application, the above-mentioned positioning result output module can be used to process the positioning information calculated by the above-mentioned positioning information calculation module to output positioning result data.
[0057] Optionally, in this embodiment of the application, the location information calculation module can be a DSP processor in an electronic device.
[0058] Optionally, in this embodiment of the application, the above-mentioned positioning result output module can be an ARM processor in an electronic device.
[0059] Optionally, in this embodiment of the application, both the location information calculation module and the positioning result output module are in a periodic working state, that is, both the location information calculation module and the positioning result output module will work and sleep at a fixed cycle.
[0060] Optionally, in this embodiment, each working cycle can be any working cycle such as 1s, 1.5s, or 2s, and can be set according to actual usage requirements. This embodiment does not limit the specific working cycle.
[0061] It should be noted that when the satellite signal received during the above positioning process is in good and stable condition, it is not necessary to keep the position information calculation module in a working state at all times. The next state of the satellite can be known based on the ephemeris data. Then, it can be compared with the key information of the satellite actually received (such as orbital position, velocity, and Doppler information). When the error is less than 10%, the position information can be directly calculated. This can save the processing time of the position information calculation module.
[0062] Optionally, in this embodiment, the better the signal quality of the satellite signal received during the positioning process, the more accurate the acquired data. In this case, repeated decoding is unnecessary, allowing the first proportion to be set smaller, thus shortening the working time of the location information calculation module. Optionally, in this embodiment, under the first positioning mode, when calculating positioning information, it is only necessary to keep the location information calculation module and the radio frequency module in the electronic device in working state, while keeping the positioning result output module in sleep state; when outputting positioning result data, it is only necessary to keep the positioning result output module in working state, while keeping the location information calculation module and the radio frequency module in sleep state.
[0063] Optionally, in this embodiment of the application, if the positioning system of the electronic device is in a sleep state, the electronic device can directly turn off the above-mentioned radio frequency module and put the above-mentioned location information calculation module and the above-mentioned positioning result output module into a sleep state to reduce the power consumption of the electronic device.
[0064] For example, taking the location information calculation module as a DSP processor and the positioning result output module as an ARM processor, as follows: Figure 4 As shown, in the conventional positioning mode of related technologies, the DSP processor is always in working state. However, in the first positioning mode mentioned above, both the DSP processor and the ARM processor are in working state periodically. Moreover, in each working cycle of the first positioning mode, the working time of the DSP processor accounts for only 50%. It can be seen that by adjusting the working time of the DSP processor and the ARM processor, it is not necessary for the DSP processor to be in working state all the time, thereby reducing the power consumption of positioning. Figure 5 A power consumption diagram for this first positioning mode is shown, such as... Figure 5 As shown, after the acquisition phase in the positioning process, the power consumption of the electronic device is significantly reduced and remains at a low power consumption level thereafter.
[0065] It should be noted that the aforementioned location information calculation module requires the relevant hardware circuitry of the low noise amplifier (LNA) in the electronic device to be turned on when it is working.
[0066] Optionally, in this embodiment of the application, in the first positioning mode, the relevant hardware circuit of the LNA can be turned on when the location information calculation module is working, and the relevant hardware circuit of the LNA can be turned off when the positioning result output module is working.
[0067] Optionally, in this embodiment of the application, the electronic device can control the opening or closing of the relevant hardware circuit of the LNA by inputting a switch signal to the logic control pin of the LNA.
[0068] For example, such as Figure 6 As shown, pin 61 is the logic control pin of LNA60. In the first positioning mode, the electronic device can input a high-level signal to pin 61 to turn on the relevant hardware circuit of LNA60 when the position information calculation module is working; and input a low-level signal to pin 61 to turn off the relevant hardware circuit of LNA60 when the positioning result output module is working. Figure 7 The diagram illustrates the behavior pattern of the LNA60 in this first positioning mode, as shown below. Figure 7 As shown, when LNA60 is in the off state, its power consumption is 0. It can be seen that by periodically turning LNA60 on and off, it is not necessary to keep LNA60 in a working state all the time, thereby reducing the power consumption of LNA60.
[0069] Optionally, in this embodiment of the application, the first information satisfying the first condition may include:
[0070] The aforementioned first information indicates that the positioning result data has been output;
[0071] The number of the first satellite is greater than or equal to the target number;
[0072] The signal-to-noise ratio of the first satellite's signal is greater than or equal to the target signal-to-noise ratio.
[0073] The first satellite mentioned above is the satellite corresponding to the satellite signal used in the aforementioned positioning process.
[0074] Optionally, in the embodiments of this application, the above-mentioned output positioning result data has completed the satellite navigation information decoding and three-dimensional positioning.
[0075] Optionally, in the embodiments of this application, the first satellite mentioned above is the satellite that sends satellite signals to the electronic device to assist in positioning during the positioning process of the electronic device.
[0076] Optionally, in the embodiments of this application, the satellite signals used above refer to the satellite signals used when calculating the positioning information.
[0077] Optionally, in this embodiment, the target quantity can be any number such as 6 or 7, which can be determined according to actual usage requirements. This embodiment does not limit the quantity.
[0078] Optionally, in the embodiments of this application, the target signal-to-noise ratio can be any signal-to-noise ratio such as 29 or 30, which can be determined according to actual usage requirements. This embodiment of the application does not limit it.
[0079] Optionally, in the embodiments of this application, the signal-to-noise ratio of the satellite signal of the first satellite is greater than or equal to the target signal-to-noise ratio, which can be understood as: the signal-to-noise ratio of each satellite used by the electronic device in the positioning process is greater than or equal to the target signal-to-noise ratio.
[0080] Optionally, in this embodiment of the application, the electronic device can determine in real time whether the first information obtained each time meets the first condition, and if the first condition is met, use the first positioning mode to perform positioning.
[0081] In this embodiment of the application, since the first information satisfies the first condition, it may include: the first information indicates that positioning result data has been output, the number of the first satellites is greater than or equal to the target number, and the signal-to-noise ratio of the satellite signals of the first satellites is greater than or equal to the target signal-to-noise ratio. Therefore, it can be ensured that the first positioning mode is used for positioning when the signal quality of the currently received satellite signal is good, thereby ensuring positioning accuracy while reducing the positioning power consumption of the electronic device.
[0082] Optionally, in the embodiments of this application, combined with Figure 3 ,like Figure 8 As shown, step 302 can be implemented through steps 302a to 302c as described below.
[0083] Step 302a: When the first information meets the first condition, the electronic device determines the working time period of the location information calculation module in each working cycle based on the number of first satellites and the signal-to-noise ratio of the first satellite signal.
[0084] Optionally, in this embodiment of the application, the electronic device can determine the signal quality of the currently received satellite signal based on the number of the first satellites and the signal-to-noise ratio of the satellite signal of the first satellite, and determine the working time period of the location information calculation module in each real-time working cycle based on the signal quality.
[0085] Optionally, in this embodiment of the application, the more first satellites there are and the higher the signal-to-noise ratio of the first satellite's signal, the better the signal quality of the currently received satellite signal, and the shorter the working time period can be determined. Conversely, the more first satellites there are and the lower the signal-to-noise ratio of the first satellite's signal, the worse the signal quality of the currently received satellite signal, and the longer the working time period can be determined.
[0086] Optionally, in this embodiment of the application, shortening the above-mentioned working time period can reduce the power consumption of the above-mentioned location information calculation module in indoor scenes; the reason is that only some simple signal recognition functions are retained, and satellite positioning is only performed when approaching outdoor scenes; therefore, the power saving ratio is proportional to the time spent in indoor scenes.
[0087] Optionally, in this embodiment of the application, the electronic device can determine the above-mentioned working time period based on the number of the first satellites, the signal-to-noise ratio of the first satellite signal, and the processing speed of the electronic device.
[0088] Optionally, in this embodiment of the application, the electronic device may preset different correspondences between the number of the first satellites, the signal-to-noise ratio of the first satellites, and the processing speed of the electronic device, and the working duration of the working time period. Then, based on the real-time acquired number of the first satellites, the signal-to-noise ratio of the first satellites, and the processing speed of the electronic device, the corresponding working duration is determined from the correspondence, thereby determining the working time period.
[0089] For example, the above correspondence can be shown in Table 1 below, where CN0 is the signal-to-noise ratio of the first satellite, and N is the number of the first satellite:
[0090] Table 1
[0091]
[0092]
[0093] It should be noted that in actual implementation, the values in Table 1 above can be adjusted according to the user's needs, and this application embodiment does not limit them.
[0094] Step 302b: The electronic device calculates the location information through the location information calculation module during each working time period of the location information calculation module.
[0095] Optionally, in this embodiment of the application, the location information calculation module can calculate a location information in each working time period.
[0096] Step 302c: For each calculated location information, the electronic device outputs location result data based on the location information through the location result output module.
[0097] Optionally, in this embodiment of the application, the positioning result data output by the above positioning result output module may differ for different positioning systems.
[0098] For example, in GPS, the above positioning results data may include statements from the National Marine Electronics Association (NMEA).
[0099] Optionally, in this embodiment, the different working cycles of the location information calculation module will result in different power consumption when using the first positioning mode for positioning.
[0100] For example, such as Figure 9 As shown, the power consumption of the first positioning mode corresponding to the first working cycle is different from that of the first positioning mode corresponding to the second working cycle, but both are less than the power consumption of the conventional positioning mode.
[0101] In this embodiment of the application, since the electronic device can first determine the working time period of the location information calculation module in each working cycle when the first information meets the first condition, and then use the first positioning mode to perform positioning, the location information calculation module can work in different scenarios with different working time periods, thereby improving the flexibility of the electronic device to perform low-power positioning.
[0102] Optionally, in the embodiments of this application, combined with Figure 8 ,like Figure 10 As shown, step 302c can be implemented through steps 302c1 and 302c2 as described below.
[0103] Step 302c1: For each calculated location information, the electronic device determines the original location result data based on the location information through the location result output module.
[0104] Optionally, in this embodiment of the application, the above-mentioned positioning result output module is responsible for system control and result output, and the above-mentioned original positioning result data is the positioning result data output in the normal positioning mode.
[0105] Optionally, in this embodiment of the application, for each calculated location information, the electronic device determines an original location result data based on the location information through the real-time location result output module.
[0106] Step 302c2: The electronic device performs data simplification processing on the original positioning result data to obtain positioning result data, and outputs the positioning result data.
[0107] Optionally, in this embodiment of the application, for a raw positioning result data, the electronic device can delete redundant data (i.e. useless data) in the raw positioning result data to obtain a simplified positioning result data.
[0108] For example, taking the above-mentioned original location result data including NMEA statements as an example, assuming that the original location result data includes the following NMEA statements:
[0109] $GPGGA satellite positioning information
[0110] $GPGLL Basic Geographic Location - Longitude and Latitude
[0111] $GPGSA GNSSDOP (Error Information)
[0112] $GPGSV visible satellite status
[0113] $GPRMC basic positioning information, GPS recommended minimum data transfer amount
[0114] $GPVTG relative displacement direction and relative displacement velocity;
[0115] Regarding the positioning results, VTG, GSV, and GLL statements can be redundant. Electronic devices can delete these statements to simplify the original positioning result data, thereby reducing the output time and power consumption of the positioning result output module. For example, if outputting 10 statements takes 100ms, outputting the simplified 8 statements only takes 80ms, thus reducing the power consumption of the positioning result output module by 20%.
[0116] In this embodiment of the application, since the positioning result data output by the above-mentioned positioning result output module can be the data obtained after simplifying the original positioning result data, the time for the positioning result output module to output the positioning result data can be shortened and the power consumption can be reduced.
[0117] In the positioning method provided in the embodiments of this application, since the electronic device can use the first positioning mode to perform positioning when the first information related to positioning obtained in real time meets the first condition, and in the first positioning mode, the location information calculation module and the positioning result output module in the electronic device do not need to be in working state at all times, thus reducing the power consumption of positioning of the electronic device.
[0118] Optionally, in the embodiments of this application, combined with Figure 3 ,like Figure 11 As shown, after step 302 above, the positioning method provided in this application embodiment may further include step 303 below.
[0119] Step 303: If the second condition is met, the electronic device cancels the use of the first positioning mode for positioning.
[0120] The second condition mentioned above may include any one of the following:
[0121] The output location data has been lost;
[0122] The number of the first satellites is less than the number of the targets, and the signal-to-noise ratio of the first satellites is greater than or equal to the signal-to-noise ratio of the targets.
[0123] The ephemeris information of available satellites needs to be re-analyzed;
[0124] The ephemeris information for the available satellites used has expired;
[0125] The available satellites mentioned above are those corresponding to satellites whose satellite signals can be received.
[0126] Optionally, in this embodiment of the application, the above-mentioned output positioning result data is lost, that is, the positioning result data output by the above-mentioned positioning result output module is lost, and new positioning result data cannot be obtained (i.e., positioning fails).
[0127] Optionally, in the embodiments of this application, the aforementioned available satellites are satellites that electronic devices can use during the positioning process.
[0128] It should be noted that satellite ephemeris information is usually valid for 2-4 hours. That is, within 2 hours, you only need to completely parse the ephemeris information of available satellites to use the first positioning mode mentioned above for positioning; however, when more than 4 hours have passed, the ephemeris information will become invalid, and at this time, it is necessary to re-parse the ephemeris information of available satellites.
[0129] Optionally, in this embodiment of the application, if it is necessary to re-parse the ephemeris information of available satellites, the electronic device can use a cellular network to connect to the Assisted Global Positioning System (AGPS) to assist in providing the ephemeris information of the satellites, so that the electronic device can use the first positioning mode described above for positioning as soon as possible.
[0130] Optionally, in this embodiment of the application, the electronic device can use the conventional positioning mode for positioning while canceling the use of the first positioning mode for positioning.
[0131] In this embodiment of the application, since the electronic device can cancel the use of the first positioning mode for positioning when the second condition is met, the accuracy of the positioning result can be ensured first during the positioning process.
[0132] Optionally, in the embodiments of this application, combined with Figure 3 ,like Figure 12 As shown, before step 301 above, the positioning method provided in this application embodiment may further include steps 304 and 305 as described below.
[0133] Step 304: The electronic device determines the target positioning system within the electronic device based on its geographical location.
[0134] The aforementioned target positioning system is a positioning system that is not supported by the aforementioned geographical location.
[0135] Alternatively, in the embodiments of this application, the positioning system described above may also be referred to as a navigation system.
[0136] Optionally, in the embodiments of this application, the aforementioned geographical location can be a country, a region, or a location indicated by a certain latitude and longitude.
[0137] For example, if the geographical location is China, the electronic device can identify the Galileo satellite navigation system, GLONASS, Quasi-Zenith Satellite System (QZSS), and Indian Regional Navigation Satellite System (IRNSS) as the target positioning system; if the geographical location is India or Europe, the electronic device can identify QZSS as the target positioning system.
[0138] Step 305: The electronic device shuts down the target positioning system.
[0139] Optionally, in this embodiment of the application, the electronic device can turn off the positioning system of the determined target in order to minimize power consumption and extend battery life without significantly affecting the positioning speed and accuracy.
[0140] In this embodiment, since the electronic device can turn off the navigation system that is not supported by the geographical location, the power consumption of the electronic device can be reduced without affecting the positioning.
[0141] Optionally, in this embodiment of the application, the electronic device can also identify the current scene and determine the positioning mode used for positioning based on the identified scene, so as to flexibly adjust the positioning mode under different scenes; the above-mentioned multi-mode multi-frequency positioning system can adjust the working time of the hardware circuit through software algorithm to achieve the purpose of reducing power consumption.
[0142] Optionally, in this embodiment, if the current scenario is an open environment (e.g., an outdoor unobstructed scenario such as walking, running, driving, or cycling), and the received satellite signal quality is good, the first positioning mode described above can be used. The operating duration of the location information calculation module and the positioning result output module can be adjusted via a switch signal to reduce power consumption when outputting a 1Hz location. If the operating frequency of the location information calculation module is low in this first positioning mode, the location information calculation module, the positioning result output module, and the peripheral LNA hardware can be intermittently put into sleep or shutdown states when not outputting positioning result data, thereby maximizing power saving.
[0143] Optionally, in this embodiment of the application, the electronic device can determine whether it is currently in an indoor scene (i.e., a scene where satellite signals cannot be found for a long time, such as inside an airplane or a building) by the return value of the map application; if it is in an indoor scene, the positioning system hardware circuit can be put into a sleep state and only use cellular or WiFi fusion positioning functions, thereby saving the positioning system power by nearly 100%.
[0144] Optionally, in this embodiment of the application, if the current scene is a multipath environment such as an urban canyon, mountainous area, or forest area, the above-mentioned conventional positioning mode can be used for positioning.
[0145] In this embodiment of the application, since the electronic device can determine the positioning mode to be used for positioning based on the current scene, the positioning flexibility of the electronic device can be improved.
[0146] The above-described method embodiments, or various possible implementations of the method embodiments, can be executed individually, or, provided there are no contradictions, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.
[0147] The positioning method provided in this application can be executed by a positioning device. This application uses the example of a positioning device executing the positioning method to illustrate the positioning device provided in this application.
[0148] like Figure 13 As shown, this application embodiment provides a positioning device 130, which may include an acquisition module 131 and a positioning module 132.
[0149] The acquisition module 131 can be used to acquire first information related to positioning in real time during the positioning process. The positioning module 132 can be used to perform positioning using a first positioning mode when the first information meets a first condition. In the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in working state. In each working cycle of the first positioning mode, the working time of the location information calculation module is less than or equal to a first proportion, which is determined based on the signal quality of the satellite signals received during the positioning process.
[0150] In one possible implementation, the first information satisfying the first condition may include: the first information indicating that positioning result data has been output; the number of first satellites being greater than or equal to the target number; and the signal-to-noise ratio of the satellite signals of the first satellites being greater than or equal to the target signal-to-noise ratio. Wherein, the first satellite is the satellite corresponding to the satellite signal used in the aforementioned positioning process.
[0151] In one possible implementation, the positioning module 132 can be specifically used to determine the working time period of the location information calculation module in each working cycle based on the number of the first satellites and the signal-to-noise ratio of the first satellites; and to calculate the positioning location information in each working time period of the location information calculation module; and to output the positioning result data based on the calculated positioning location information through the positioning result output module.
[0152] In one possible implementation, the positioning module 132 can be used to determine the original positioning result data based on the positioning location information through the positioning result output module; and to perform data simplification processing on the original positioning result data to obtain the positioning result data, and output the positioning result data.
[0153] In one possible implementation, the positioning module 132 can also be used to cancel the use of the first positioning mode for positioning after positioning using the first positioning mode, provided that a second condition is met. The second condition may include any of the following: the output positioning result data is lost; the number of the first satellites is less than the target number, and the signal-to-noise ratio of the first satellites is greater than or equal to the target signal-to-noise ratio; the ephemeris information of available satellites needs to be re-parsed; the ephemeris information of the available satellites used has expired; wherein the available satellites are those corresponding to the satellites whose satellite signals can be received.
[0154] In the positioning device provided in the embodiments of this application, when positioning, the positioning device can use a first positioning mode to perform positioning if the first information related to positioning obtained in real time meets the first condition. In the first positioning mode, the location information calculation module and the positioning result output module in the electronic device do not need to be in working state at all times, so the power consumption of positioning of the electronic device can be reduced.
[0155] The positioning device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0156] The positioning device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system used.
[0157] The positioning device provided in this application embodiment can implement all the processes implemented in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0158] like Figure 14 As shown, this application embodiment also provides an electronic device 1400, including a processor 1401 and a memory 1402. The memory 1402 stores a program or instructions that can run on the processor 1401. When the program or instructions are executed by the processor 1401, they implement the various steps of the above-described positioning method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0159] It should be noted that the electronic devices in the embodiments of this application include mobile electronic devices and non-mobile electronic devices.
[0160] Figure 15 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0161] like Figure 15 As shown, the electronic device 1000 includes, but is not limited to, components such as: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
[0162] Those skilled in the art will understand that the electronic device 1000 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1010 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 15 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0163] The processor 1010 can be used to acquire first information related to positioning in real time during the positioning process; and to perform positioning using a first positioning mode when the first information meets a first condition; wherein, in the first positioning mode, the location information calculation module and the positioning result output module in the electronic device are both periodically in working state, and in each working cycle of the first positioning mode, the working time of the location information calculation module is less than or equal to a first proportion, which is determined based on the signal quality of the satellite signals received during the positioning process.
[0164] In one possible implementation, the first information satisfying the first condition may include: the first information indicating that positioning result data has been output; the number of first satellites being greater than or equal to the target number; and the signal-to-noise ratio of the satellite signals of the first satellites being greater than or equal to the target signal-to-noise ratio. Wherein, the first satellite is the satellite corresponding to the satellite signal used in the aforementioned positioning process.
[0165] In one possible implementation, the processor 1010 can be specifically used to determine the working time period of the location information calculation module in each working cycle based on the number of the first satellites and the signal-to-noise ratio of the satellite signals of the first satellites; and to calculate the location information in each working time period of the location information calculation module; and to output the location result data based on the location information for each calculated location information through the location result output module.
[0166] In one possible implementation, the processor 1010 can be used to determine the original positioning result data based on the positioning location information through the positioning result output module; and to perform data simplification processing on the original positioning result data to obtain the positioning result data, and output the positioning result data.
[0167] In one possible implementation, the processor 1010 can also be used to cancel the use of the first positioning mode for positioning after positioning using the first positioning mode, provided that a second condition is met. The second condition may include any of the following: the output positioning result data is lost; the number of the first satellites is less than the target number, and the signal-to-noise ratio of the first satellites is greater than or equal to the target signal-to-noise ratio; the ephemeris information of available satellites needs to be re-parsed; the ephemeris information of the available satellites used has expired; wherein the available satellites are those corresponding to the satellites whose satellite signals can be received.
[0168] In the electronic device provided in this application embodiment, when the electronic device is positioned, it can use a first positioning mode to perform positioning if the first information related to positioning obtained in real time meets the first condition. In this first positioning mode, the location information calculation module and the positioning result output module in the electronic device do not need to be in working state at all times, so the power consumption of positioning of the electronic device can be reduced.
[0169] It should be understood that, in this embodiment, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The GPU 10041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0170] The memory 1009 can be used to store software programs and various data. The memory 1009 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1009 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1009 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0171] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into the processor 1010.
[0172] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described positioning method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0173] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0174] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described positioning method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0175] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0176] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the positioning method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0177] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0178] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0179] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A positioning method, characterized in that, The method includes: During the positioning process, first-hand information related to positioning is acquired in real time; If the first information satisfies the first condition, the first positioning mode is used for positioning; In the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in working state. In each working cycle of the first positioning mode, the working time of the location information calculation module is less than or equal to a first proportion, which is determined based on the signal quality of the satellite signals received during the positioning process. The first information satisfies the first condition, including: The first information indicates that the positioning result data has been output; The number of the first satellite is greater than or equal to the target number; The signal-to-noise ratio of the first satellite's satellite signal is greater than or equal to the target signal-to-noise ratio; The first satellite is the satellite corresponding to the satellite signal used in the positioning process.
2. The method according to claim 1, characterized in that, The positioning using the first positioning mode includes: Based on the number of the first satellites and the signal-to-noise ratio of the first satellite signals, the working time period of the location information calculation module in each working cycle is determined; The location information calculation module calculates the positioning information in each working time period of the location information calculation module. For each calculated location information, the location result output module outputs location result data based on the location information.
3. The method according to claim 2, characterized in that, The step of outputting positioning result data through the positioning result output module based on the positioning location information includes: The positioning result output module determines the original positioning result data based on the positioning location information. The original positioning result data is simplified to obtain the positioning result data, and the positioning result data is output.
4. The method according to any one of claims 1 to 3, characterized in that, After positioning using the first positioning mode, the method further includes: If the second condition is met, the use of the first positioning mode for positioning is cancelled; The second condition includes any one of the following: The output location data has been lost; The number of the first satellites is less than the target number, and the signal-to-noise ratio of the first satellites is greater than or equal to the target signal-to-noise ratio; The ephemeris information of available satellites needs to be re-analyzed; The ephemeris information for the available satellites used has expired; The available satellites are those corresponding to satellites whose satellite signals can be received.
5. A positioning device, characterized in that, The device includes an acquisition module and a positioning module; The acquisition module is used to acquire first information related to positioning in real time during the positioning process; The positioning module is used to perform positioning using a first positioning mode when the first information meets the first condition. In the first positioning mode, both the location information calculation module and the positioning result output module in the electronic device are periodically in working state. In each working cycle of the first positioning mode, the working time of the location information calculation module is less than or equal to a first proportion, which is determined based on the signal quality of the satellite signals received during the positioning process. The first information satisfies the first condition, including: The first information indicates that the positioning result data has been output; The number of the first satellite is greater than or equal to the target number; The signal-to-noise ratio of the first satellite's satellite signal is greater than or equal to the target signal-to-noise ratio; The first satellite is the satellite corresponding to the satellite signal used in the positioning process.
6. The apparatus according to claim 5, characterized in that, The positioning module is specifically used to determine the working time period of the location information calculation module within each working cycle based on the number of the first satellites and the signal-to-noise ratio of the first satellite signals; and to calculate the positioning location information in each working time period of the location information calculation module through the location information calculation module. For each calculated location information, the positioning result output module outputs positioning result data based on the location information.
7. The apparatus according to claim 6, characterized in that, The positioning module is specifically used to determine the original positioning result data based on the positioning location information through the positioning result output module; and to perform data simplification processing on the original positioning result data to obtain the positioning result data, and output the positioning result data.
8. The apparatus according to any one of claims 5 to 7, characterized in that, The positioning module is further configured to, after positioning using the first positioning mode, cancel positioning using the first positioning mode if a second condition is met. The second condition includes any one of the following: The output location data has been lost; The number of the first satellites is less than the target number, and the signal-to-noise ratio of the first satellites is greater than or equal to the target signal-to-noise ratio; The ephemeris information of available satellites needs to be re-analyzed; The ephemeris information for the available satellites used has expired; The available satellites are those corresponding to satellites whose satellite signals can be received.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the positioning method as described in any one of claims 1-4.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the positioning method as described in any one of claims 1-4.
Citation Information
Patent Citations
Control method and device of positioning module, storage medium and terminal
CN108156650A