Search

CN-122017900-A - Positioning method, electronic device, and computer-readable storage medium

CN122017900ACN 122017900 ACN122017900 ACN 122017900ACN-122017900-A

Abstract

A positioning method, electronic equipment and a computer readable storage medium are applied to the electronic equipment, wherein the electronic equipment comprises a GNSS module and an auxiliary positioning module, when the electronic equipment is detected to be in a positioning mode, the GNSS module is started in a first period of a preset positioning period, positioning results corresponding to the first period are output, the positioning results corresponding to the first period are generated based on information output by the GNSS module, the GNSS module is closed in a second period, the auxiliary positioning module is started in the second period, the auxiliary positioning module comprises an inertial navigation positioning module, the second period is a period except the first period in the preset positioning period, the positioning results corresponding to the second period are output, and the positioning results corresponding to the second period are generated based on information output by the auxiliary positioning module. The method can reduce the power consumption of the equipment and improve the user experience.

Inventors

  • WU MOUYAN
  • LI WENYI
  • YANG SHENG
  • ZHU YUHONG
  • CAO XIYA
  • ZHENG YI

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20250928

Claims (19)

  1. 1. A positioning method, applied to an electronic device, the electronic device including a GNSS module and an assisted positioning module, the method comprising: when the electronic equipment is detected to be in a positioning mode, starting a GNSS module in a first period of a preset positioning period; outputting a positioning result corresponding to the first time period, wherein the positioning result corresponding to the first time period is generated based on the information output by the GNSS module; Closing the GNSS module in a second period, and opening an auxiliary positioning module in the second period, wherein the auxiliary positioning module comprises an inertial navigation positioning module, and the second period is a period of the preset positioning period except the first period; and outputting a positioning result corresponding to the second time period, wherein the positioning result corresponding to the second time period is generated based on the information output by the auxiliary positioning module.
  2. 2. The method of claim 1, wherein the assisted positioning module further comprises at least one of a cellular positioning module, a WiFi positioning module, or a bluetooth positioning module.
  3. 3. The method of claim 1 or 2, wherein the electronic device further comprises an external radio frequency module, an external clock module, and a GNSS baseband module, the method further comprising: and in the first period, performing power-down operation on at least one module selected from an external radio frequency module, an external clock module or a GNSS baseband module.
  4. 4. A method according to any one of claims 1 to 3, wherein the GNSS module further comprises an internal clock module and an ephemeris buffer module, the method further comprising: And in the whole preset positioning period, keeping the internal clock module and the ephemeris buffer module in an on state, wherein the internal clock module is used for maintaining the count in the preset positioning period, and the ephemeris buffer module is used for buffering the latest ephemeris information and the auxiliary position information output by the auxiliary positioning module.
  5. 5. The method according to claim 4, wherein the method further comprises: When the next period arrives, the GNSS module is brought from on to a positioning state based on the latest ephemeris information and the assistance position information.
  6. 6. The method of claim 5, wherein after the GNSS module is repositioned, the method further comprises: and carrying out frequency offset verification on a real-time clock RTC of the internal clock module according to the time service information obtained by repositioning the GNSS module, and/or updating the auxiliary position information according to the new position information obtained by repositioning the GNSS module.
  7. 7. The method according to any of claims 4 to 6, wherein the electronic device further comprises a GNSS baseband module, the method further comprising updating at least one of the following ephemeris information: updating the ephemeris information cached in the ephemeris caching module according to the latest ephemeris information demodulated by the GNSS baseband module; And receiving the latest ephemeris information issued by the server, and updating the ephemeris information stored in the ephemeris buffer module based on the latest ephemeris information.
  8. 8. The method according to any one of claims 1 to 7, wherein during the second period, the method further comprises: and determining the positioning result through inertial navigation positioning information.
  9. 9. The method of claim 8, wherein the electronic device further comprises a sensor module, the method further comprising, prior to the determining the positioning result by inertial navigation positioning information: acquiring at least one of gyroscope data, accelerometer data, magnetometer data or barometer data by the sensor module; and generating the inertial navigation positioning information according to the sensing data.
  10. 10. The method according to any one of claims 1 to 9, wherein during the second period, the method further comprises: the positioning result is determined by at least one of WiFi positioning information, cellular positioning information, or bluetooth positioning information.
  11. 11. The method of claim 10, wherein the electronic device further comprises a WiFi positioning module, the method further comprising, prior to determining the positioning result from the WiFi positioning information: Periodically scanning WiFi signals of the electronic equipment through the WiFi positioning module; and based on the WiFi signals, combining a local database or a cloud database to perform positioning calculation, and generating WiFi positioning information.
  12. 12. The method of claim 10, wherein the electronic device further comprises a cellular positioning module, the method further comprising, prior to determining the positioning result from the cellular positioning information: Obtaining a cellular measurement signal of the electronic equipment through the cellular positioning module; and based on the cellular measurement signals, combining a local database or a cloud database to perform positioning calculation, and generating the cellular positioning information.
  13. 13. The method of claim 10, wherein the electronic device further comprises a bluetooth positioning module, the method further comprising, prior to determining the positioning result from the bluetooth positioning information: periodically scanning Bluetooth signals around the electronic equipment through the Bluetooth positioning module; And based on the Bluetooth signals, combining a local database or a cloud database to perform positioning calculation, and generating the Bluetooth positioning information.
  14. 14. The method according to any one of claims 1 to 13, further comprising: Acquiring motion state information of the electronic equipment, wherein the motion state information comprises a linear motion state or a non-linear motion state; and adjusting the preset positioning period based on the motion state information.
  15. 15. The method according to any one of claims 1 to 14, further comprising: acquiring satellite information, wherein the satellite information comprises at least one of satellite quantity, signal intensity, satellite distribution or observed quantity errors; Evaluating satellite signal quality based on the satellite information; And adjusting at least one of the preset positioning period, satellite constellation and/or working frequency point based on the evaluation result of the satellite signal quality.
  16. 16. An electronic device comprising a processor and a memory, the memory for storing a computer program, the processor for calling and running the computer program from the memory, causing the electronic device to perform the method of any one of claims 1 to 15.
  17. 17. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, causes the processor to perform the method of any of claims 1 to 15.
  18. 18. A computer program product, characterized in that it comprises computer program code which, when executed by a processor, causes the processor to perform the method of any of claims 1 to 15.
  19. 19. A chip system comprising a memory and a processor configured to execute a computer program stored in the memory to implement the method of any one of claims 1 to 15.

Description

Positioning method, electronic device, and computer-readable storage medium Technical Field The present application relates to the field of terminal technologies, and in particular, to a positioning method, an electronic device, and a computer readable storage medium. Background With the rapid development of technology, positioning technology plays an indispensable role in various fields, and higher requirements are put on the aspects of positioning precision, stability, power consumption and the like, whether the positioning technology is applied to navigation of smart phones, an automatic driving system of a vehicle, positioning of goods in logistics transportation and the like. Currently, in the field of positioning technology, a global navigation satellite system (globalnavigation SATELLITE SYSTEM, GNSS) combines with an inertial navigation fusion positioning scheme, and is a common scheme for improving positioning accuracy and reliability due to the advantages of the two systems. In the existing scheme, when the electronic equipment is positioned, the GNSS module is required to be continuously communicated with a satellite, the matched Radio Frequency (RF) module and the clock module are also synchronously operated to support the electronic equipment to be positioned uninterruptedly, and the inertial navigation module is used for providing data for subsequent fusion processing through the cooperation of the calculation result of the acceleration data, the angular velocity data and other data acquired by the inertial measurement unit (inertial measurement unit, the IMU) and the GNSS positioning result, so that the high-precision positioning is finally realized. However, in the above working mode, in order to realize continuous positioning, the GNSS module needs to continuously receive satellite signals, which leads to significant increase of overall power consumption of the device, especially for mobile positioning devices that rely on battery power, the excessive power consumption can directly shorten the endurance time of the device, and affect the use experience of the user. Disclosure of Invention Therefore, the application provides a positioning method, electronic equipment and a computer readable storage medium, wherein the method not only can ensure the sustainability of positioning, but also can reduce the power consumption of the equipment and improve the user experience. In order to achieve the above purpose, the application adopts the following technical scheme: In a first aspect, a positioning method is provided, applied to an electronic device, where the electronic device includes a GNSS module and an assisted positioning module, and the method includes: When the electronic equipment is detected to be in a positioning mode, a GNSS module is started in a first period of a preset positioning period, a positioning result corresponding to the first period is output, the positioning result corresponding to the first period is generated based on information output by the GNSS module, the GNSS module is closed in a second period, an auxiliary positioning module is started in the second period, the auxiliary positioning module comprises an inertial navigation positioning module, the second period is a period except the first period in the preset positioning period, the positioning result corresponding to the second period is output, and the positioning result corresponding to the second period is generated based on the information output by the auxiliary positioning module. The above-described method may be performed by an electronic device, for example, by a module (e.g., a processor, a chip, or a chip system, etc.) applied in the electronic device, and may also be implemented by a logic module or software that can implement all or part of the functions of the electronic device. In the method, the power consumption of the traditional GNSS module is higher when the traditional GNSS module continuously works, and the power consumption is optimized through the periodic time-sharing control, wherein the GNSS module is started only in a first period and is closed in a second period in a preset positioning period. The method effectively reduces the working time of the GNSS module, reduces the power consumption of the electronic equipment caused by continuous operation of the GNSS module, and particularly for mobile equipment (namely one example of the electronic equipment) which is powered by a battery, can effectively prolong the battery endurance time. In addition, in order to avoid the positioning interruption caused by the closing of the GNSS module in the second period, the electronic device starts an auxiliary positioning module (such as an inertial navigation positioning module) with lower power consumption in the second period. The auxiliary positioning module can acquire the motion information (such as acceleration, angular velocity and the like) of the electronic equipment through the inertial