Search

CN-122015897-A - Map display method and related device

CN122015897ACN 122015897 ACN122015897 ACN 122015897ACN-122015897-A

Abstract

The application discloses a map display method and a related device, which are applied to electronic equipment, wherein the electronic equipment comprises a main processor, a co-processor and a display screen, and the power consumption of the co-processor is lower than that of the main processor; the electronic equipment is in a normal mode, the main processor is in an awakening state, the electronic equipment enters a first mode, the main processor enters a dormant state, the co-processor reads the first map resource from a first memory space and acquires positioning information of the electronic equipment, the positioning information indicates the position of the electronic equipment, the co-processor acquires a navigation map based on the positioning information and the first map resource, and the display screen displays a first interface, wherein the first interface comprises the navigation map. Therefore, the navigation map can be displayed, and meanwhile, the cruising time of the electronic equipment can be effectively prolonged.

Inventors

  • ZHANG MING
  • ZHOU BEN
  • WANG WEI
  • LI XUE
  • WANG YANGJIAN
  • ZHOU DONGDONG

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20250911

Claims (20)

  1. 1. A map display method applied to an electronic device, wherein the electronic device comprises a main processor, a co-processor and a display screen, and the power consumption of the co-processor is lower than that of the main processor, the method comprising: When the electronic equipment is in a normal mode, the main processor writes the resource information of the navigation map into a first memory space, wherein the resource information comprises first map resources; the electronic equipment enters a first mode, and the main processor enters a dormant state; The co-processor reads the first map resource from the first memory space and acquires positioning information of the electronic equipment, wherein the positioning information indicates the position of the electronic equipment; The co-processor obtains a navigation map based on the positioning information and the first map resource; The display screen displays a first interface, the first interface including the navigation map.
  2. 2. The method of claim 1, wherein the co-processor comprises a map engine, the method further comprising: the map engine acquires the first map resource and the positioning information; the co-processor obtaining a navigation map based on the positioning information and the first map resource, comprising: The map engine generating the navigation map based on the positioning information and the first map resource; The display screen displays a first interface comprising: The map engine instructs the display screen to display the first interface.
  3. 3. The method according to claim 1 or 2, characterized in that the method further comprises: And the co-processor carries out yaw reminding through voice and/or vibration when detecting that the electronic equipment is yawed based on the positioning information and the first map resource.
  4. 4. A method according to any one of claims 1 to 3, further comprising: The co-processor adjusts a scale of a navigation map in the first interface based on the positioning information and/or when the speed sensor detects that the speed of the electronic device changes from a first speed to a second speed.
  5. 5. The method of any one of claims 1 to 4, wherein the first interface comprises an altitude of the electronic device, the method further comprising the co-processor detecting the altitude of the electronic device based on the positioning information and/or an altitude sensor.
  6. 6. The method of any one of claims 1 to 5, wherein the resource information comprises a first word stock file and the navigation map comprises text information, the method further comprising: the co-processor reads the first word stock file from the first memory space; the co-processor obtaining a navigation map based on the positioning information and the first map resource, comprising: Based on the first word stock file, the positioning information and the first map resource, the co-processor obtains a navigation map.
  7. 7. The method of any of claims 1 to 6, wherein the navigation map further comprises a navigation route, the method further comprising: the co-processor obtains the navigation route from the main processor; the co-processor obtaining a navigation map based on the positioning information and the first map resource, comprising: Based on the navigation route, the positioning information, and the first map resource, the co-processor obtains a navigation map.
  8. 8. The method of any of claims 1 to 7, wherein prior to the display screen displaying the first interface, the method further comprises: And the main processor sends a screen-off instruction to the co-processor.
  9. 9. The method of claim 7, wherein the main processor sending a screen off instruction to the co-processor comprises: When the electronic equipment runs a navigation task of a map APP, the electronic equipment receives an operation for indicating the electronic equipment to turn off a screen; in response to the operation, the main processor sends the screen off instruction to the co-processor.
  10. 10. The method of any one of claims 1 to 9, wherein the first memory space is a CMA memory or an ION memory.
  11. 11. The method according to any one of claims 1 to 10, further comprising: the main processor acquires map sub-resources corresponding to the position of the electronic equipment from the first map resources based on the indication information of the position of the electronic equipment, wherein the indication information is acquired by the main processor through a positioning module or acquired by the co-processor; The main processor writes the resource information of the navigation map into a first memory space, and the method comprises the following steps: and the main processor writes map sub-resources corresponding to the position of the electronic equipment into the first memory space.
  12. 12. The method of any one of claims 1 to 11, wherein the first memory space includes a second memory space and a third memory space, the main processor has authority to read and write the second memory space, the co-processor has authority to read and write the third memory space, and the main processor writes resource information of the navigation map to the first memory space, comprising: And the main processor writes map sub-resources corresponding to the position of the electronic equipment into the second memory space in the first memory space.
  13. 13. The method of claim 12, wherein the main processor writing the resource information of the navigation map to the first memory space comprises: The co-processor instructs the main processor to write the map sub-resource into the second one of the first memory spaces.
  14. 14. The method of any of claims 11 to 13, wherein prior to the co-processor reading the first map resource from the first memory space, the method further comprises: The co-processor carries the map sub-resource from the second memory space to the third memory space; the co-processor reading the first map resource from the first memory space, comprising: The co-processor reads the map sub-resource from the third memory space of the first memory space.
  15. 15. The method of claim 14, wherein the method further comprises: The co-processor obtains updated positioning information of the electronic device, wherein the updated positioning information indicates an updated position of the electronic device; the main processor writes the map sub-resource corresponding to the updated position into the second memory space; The co-processor conveys the map sub-resource corresponding to the updated position from the second memory space to the third memory space; and the co-processor reads the map sub-resource corresponding to the updated position from the third memory space.
  16. 16. The method according to any one of claims 1 to 15, further comprising: The main processor writes the resource information of the navigation map into a first memory of the electronic equipment; The main processor writes the resource information of the navigation map into a first memory space, and the method comprises the following steps: and the main processor writes the resource information of the navigation map in the first memory into the first memory space.
  17. 17. The method according to any one of claims 11 to 15, wherein the co-processor comprises a first interface for instructing the main processor to migrate map resources and/or for waking up the main processor.
  18. 18. The method of any of claims 1 to 17, wherein the co-processor includes a first driver module for the co-processor to access a second memory, the method further comprising: The main processor stores resource information of a navigation map in the second memory, wherein the resource information comprises second map resources; the electronic equipment enters a first mode, and the main processor enters a dormant state; the co-processor reads the second map resource from the second memory by using the first driving module, and acquires positioning information of the electronic device, wherein the positioning information indicates the position of the electronic device; the co-processor obtains a navigation map based on the positioning information and the second map resource; The display screen displays a first interface, the first interface including the navigation map.
  19. 19. The method according to any one of claims 1 to 18, further comprising: when the electronic equipment is in a first mode, the co-processor records a driving route and/or a marking position of the electronic equipment in the first mode; After waking up the main processor, the main processor obtains the travel route and/or the marker position from the co-processor.
  20. 20. An electronic device comprising a processor and a memory coupled to the processor, the memory for storing computer program code, the computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to perform the map display method of any one of claims 1 to 19.

Description

Map display method and related device Technical Field The present application relates to the field of electronic technologies, and in particular, to a map display method and a related device. Background In a specific scenario, especially in a scenario where the charging condition is limited (e.g., natural disasters, outdoor adventure, etc.), the user equipment (e.g., a mobile phone) needs to support both an ultra-long standby of the mobile phone and a long-time use of the navigation map. However, the existing navigation map needs an application processor and a map Application (APP) to keep running so as to process and display relevant data of the navigation map, and the application processor has high power consumption and is not beneficial to equipment cruising. Therefore, the current navigation map and standby cruising have great power consumption conflict. How to realize the display of the navigation map and simultaneously ensure the long-time endurance requirement of the electronic equipment is still to be studied. Disclosure of Invention The embodiment of the application provides a map display method and a related device, which can effectively prolong the endurance of electronic equipment while displaying a navigation map. The application provides a map display method which is applied to electronic equipment and is characterized in that the electronic equipment comprises a main processor, a co-processor and a display screen, wherein the power consumption of the co-processor is lower than that of the main processor; the electronic equipment is in a normal mode, the main processor is in an awakening state, the electronic equipment enters a first mode, the main processor enters a dormant state, the co-processor reads first map resources from a first memory space and acquires positioning information of the electronic equipment, the positioning information indicates the position of the electronic equipment, the co-processor acquires a navigation map based on the positioning information and the first map resources, and the display screen displays a first interface, wherein the first interface comprises the navigation map. According to the embodiment of the application, in the first mode, the low-power consumption co-processor can read the map resources written by the main processor from the specific memory space, can acquire the positioning information of the electronic equipment, can generate the navigation map according to the positioning information and the map resources, and can instruct the display screen to display the navigation map. Compared with a main processor, the average current for displaying the navigation map is greatly reduced by the low-power-consumption co-processor in the first mode, so that the power consumption required by displaying the navigation map can be greatly reduced, the cruising of the electronic equipment for displaying the navigation map in the first mode is effectively prolonged, and the user experience is improved. In one implementation, the co-processor comprises a map engine, the method further comprises the step that the map engine obtains first map resources and positioning information, the step that the co-processor obtains a navigation map based on the positioning information and the first map resources comprises the step that the map engine generates the navigation map based on the positioning information and the first map resources, and the step that the display screen displays the first interface comprises the step that the map engine indicates the display screen to display the first interface. By implementing the embodiment of the application, the co-processor is additionally provided with the map engine, and the map engine can acquire the positioning information and map resources of the electronic equipment, so that the display content of the navigation map is determined by utilizing a navigation algorithm based on the positioning information and the map resources. In this way, in the first mode, the low-power-consumption co-processor has the capability of generating the navigation map based on the positioning information and the map resource, and the cruising time of the electronic equipment for displaying the navigation map in the first mode is effectively prolonged. In one implementation, the method further includes providing a yaw reminder by voice and/or vibration when the co-processor detects that the electronic device is yawing based on the positioning information and the first map resource. By implementing the embodiment of the application, in the first mode, the low-power consumption co-processor can detect yaw and carry out yaw reminding through voice and/or vibration, so that the endurance of the electronic equipment in the first mode is effectively prolonged and the user experience is improved. In one implementation, the method further includes adjusting a scale of the navigation map in the first interface based on the positioning information and/or w