CN112817424A - Method, device, storage medium and electronic equipment for realizing compass application - Google Patents

Method, device, storage medium and electronic equipment for realizing compass application Download PDF

Info

Publication number
CN112817424A
CN112817424A CN201911128623.6A CN201911128623A CN112817424A CN 112817424 A CN112817424 A CN 112817424A CN 201911128623 A CN201911128623 A CN 201911128623A CN 112817424 A CN112817424 A CN 112817424A
Authority
CN
China
Prior art keywords
control chip
display screen
display
screen
compass application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201911128623.6A
Other languages
Chinese (zh)
Inventor
王涛
方攀
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911128623.6A priority Critical patent/CN112817424A/en
Publication of CN112817424A publication Critical patent/CN112817424A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method, a device, a storage medium and electronic equipment for realizing compass application, wherein the electronic equipment comprises a first control chip, a second control chip, a direction sensor and a display screen, the power consumption of the second control chip during operation is lower than that of the first control chip during operation, the first control chip wakes up the second control chip when detecting that the display screen enters a screen-off display mode, and enters a dormant state after waking up the second control chip; when the second control chip detects that the compass application is started, sensor data collected by the direction sensor is obtained; the second control chip calculates the azimuth information of the electronic equipment according to the sensor data; the second control chip displays the azimuth information on the display screen, and on the basis, the display of the compass is controlled through the second control chip with low power consumption in the screen-off display mode, so that the power consumption of the electronic equipment is reduced.

Description

Method, device, storage medium and electronic equipment for realizing compass application
Technical Field
The application relates to the technical field of terminals, in particular to a method, a device, a storage medium and electronic equipment for realizing compass application.
Background
With the development of electronic device technology, various electronic devices have become indispensable tools in people's life and work, and more functions can be supported by electronic devices.
For example, a compass application is installed in the electronic device, and the compass application in the mobile phone generally obtains the azimuth of the mobile phone through a direction sensor, but when the compass application is turned on, the chip of the mobile phone is required to be in an operating state all the time, which results in high power consumption of the mobile phone.
Disclosure of Invention
The embodiment of the application provides a method, a device, a storage medium and electronic equipment for realizing compass application, and power consumption of the electronic equipment can be reduced.
In a first aspect, an embodiment of the present application provides a method for implementing compass application, where the method is applied to an electronic device, where the electronic device includes a first control chip, a second control chip, a direction sensor, and a display screen, where power consumption of the second control chip during operation is lower than power consumption of the first control chip during operation, and the method includes:
when the first control chip detects that the display screen enters a screen-off display mode, awakening the second control chip, and entering a dormant state after awakening the second control chip;
when the second control chip detects that the compass application is started, acquiring sensor data acquired by the direction sensor;
the second control chip calculates the azimuth information of the electronic equipment according to the sensor data;
and the second control chip displays the azimuth information on the display screen.
In a second aspect, an embodiment of the present application further provides an apparatus for implementing compass application, where the apparatus is applied to an electronic device, the electronic device includes a first control chip, a second control chip, a direction sensor and a display screen, power consumption when the second control chip operates is lower than power consumption when the first control chip operates, where:
the first control chip is used for: when the display screen is detected to enter a screen-off display mode, awakening the second control chip, and controlling the first control chip to enter a dormant state after awakening the second control chip;
the second control chip comprises a data acquisition module, an azimuth calculation module and a display control module;
the data acquisition module is used for: when detecting that the compass application is started, acquiring sensor data acquired by the direction sensor;
the orientation calculation module is to: calculating orientation information of the electronic device according to the sensor data;
the display control module is used for: displaying the orientation information on the display screen.
In a third aspect, embodiments of the present application further provide a storage medium having a computer program stored thereon, where the computer program is enabled to execute, when running on a computer, a method for implementing a compass application as provided in any of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a first control chip, a second control chip, a direction sensor, and a display screen, and power consumption of the second control chip during operation is lower than power consumption of the first control chip during operation;
the first control chip comprises a first processor and a first memory, wherein a first computer program is stored on the first memory, and the first processor is used for executing:
when the display screen is detected to enter a screen-off display mode, awakening the second control chip, and controlling the first control chip to enter a dormant state after awakening the second control chip;
the second control chip comprises a second processor and a second memory, wherein a second computer program is stored in the second memory, and the second processor is used for executing the following steps by calling the second computer program:
when detecting that the compass application is started, acquiring sensor data acquired by the direction sensor;
calculating orientation information of the electronic device according to the sensor data;
displaying the orientation information on the display screen.
According to the scheme for realizing compass application, when the electronic equipment is in the screen-off display mode, if a user wants to use compass application at the moment, the first control chip does not need to be awakened, the second control chip with low power consumption controls the application in the screen-off display mode, namely, once the first control chip enters the screen-off display mode, the first control chip can keep a dormant state, the compass application does not need to be awakened, and therefore power consumption caused by frequent awakening of the first control chip can be saved. In addition, in the screen-off display mode, the first control chip with relatively high power consumption enters a dormant state, and the implementation of compass application is controlled by the second control chip with low power consumption, so that the power consumption required by the implementation of compass application can be reduced. Through the two aspects, the overall power consumption of the electronic equipment is finally reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a third schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 4 is a first flowchart illustrating a method for implementing a compass application according to an embodiment of the present disclosure.
Fig. 5 is a schematic view of a display interface of a compass application in the method for implementing a compass application according to the embodiment of the present application.
Fig. 6 is a second flowchart of a method for implementing compass application according to an embodiment of the present invention
Fig. 7 is a schematic structural diagram of an apparatus for implementing compass application according to an embodiment of the present disclosure.
Fig. 8 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application provides a method for realizing compass application, and an execution main body of the method for realizing compass application can be a device for realizing compass application provided by the embodiment of the application, or an electronic device integrated with the device for realizing compass application, wherein the device for realizing compass application can be realized in a hardware or software mode. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
An electronic device is further provided in an embodiment of the present application, please refer to fig. 1, where fig. 1 is a first structural schematic diagram of the electronic device provided in the embodiment of the present application. The electronic equipment provided by the embodiment of the application comprises a first control chip, a second control chip, a direction sensor and a display screen, wherein the power consumption of the second control chip is lower than that of the first control chip. The first control chip and the second control chip are connected with the direction sensor through a communication bus. And the first control chip and the second control chip are electrically connected with the display screen. The communication bus may be an I2C (Inter-Integrated Circuit) bus or an SPI (Serial Peripheral Interface) bus. In other embodiments, other formats of communication buses may be used, and are not specifically limited herein.
The first control Chip may be used as a main control SOC (System on Chip) of the electronic device. In some embodiments, the first control chip has a first processor integrated thereon. In some embodiments, the first control chip further has a first memory integrated thereon. The first control chip can be used for controlling various functions when the electronic equipment is in a bright screen mode.
The second control chip is a low power consumption SOC, the power consumption of the second control chip in a working state is far smaller than that of the first control chip in the working state, a second processor and a second memory are integrated on the second control chip, the frequency of the second processor is far smaller than that of the first processor, and the capacity of the memory of the second control chip is also smaller than that of the memory of the first control chip.
The second control chip can be used for controlling some functions with relatively small operation when the electronic equipment is in the screen-off display mode. An off-screen Display (AOD) mode refers to a Display mode in which the electronic device displays information On a Display screen in the off-screen mode. In the application, after the electronic device enters the screen-off display mode, the first control chip can enter the dormant state, the second control chip enters the working state, and dynamic display, refreshing and touch screen processing of a screen and running of some application programs are realized under extremely low power consumption. For example, when the electronic device is in the off-screen display mode, the second control chip may control updating and displaying of information such as time, date, weather, calendar and the like, may also control displaying of an icon of the shortcut tool on the off-screen display interface, and may also support running of some lightweight applications such as an electronic book, a compass, a calculator and the like.
Referring to fig. 2, fig. 2 is a second structural schematic diagram of an electronic device according to an embodiment of the present disclosure. In some embodiments, the orientation sensor includes an acceleration sensor and a magnetic field sensor, and in other embodiments, the orientation sensor may include other sensors capable of determining the orientation of the electronic device.
Referring to fig. 3, fig. 3 is a third structural schematic diagram of an electronic device according to an embodiment of the present disclosure. In some embodiments, the electronic device further includes a switching module, two data input ends of the switching module are respectively connected to the display data output ends of the first control chip and the second control chip, a switching control end of the switching module is connected to the switching control signal output end of the second control chip, and a data output end of the switching module is connected to the display screen. The switching module is used for switching a display data conduction path of the display screen between the first control chip and the second control chip. For example, case A: when the first control chip is in a working state and the second control chip is in a dormant state, the display data of the first control chip is input to the display screen through the switching module to be displayed and controlled. Case B: when the first control chip detects that the display screen enters the screen-off display mode, the second control chip is awakened, and the first control chip enters the dormant state. After the second control chip is awakened, the switching module is controlled to execute switching operation, the switching module switches the input source of the display data of the display screen from the first control chip to the second control chip, namely, the display data of the second control chip is input to the display screen through the switching module to be displayed and controlled. Case C: when the first control chip is awakened to enter a working state, if the first control chip needs to display information on the display screen, the second control chip controls the switching module to execute switching operation, and switching is conducted to conduct display data output by the first control chip to the display screen for display control. After switching, the second control chip can be in a dormant state, namely, the second control chip returns to the situation A, and thus the switching control of the display screen is circularly realized.
In the above manner, the second control chip controls the switching of the switching module all the time, so that the interface occupation of the first control chip can be saved on the hardware design level. The first control chip is a main control SOC chip in the electronic device, such as an Application Processor (AP), and the main control SOC generally has more functional control and its interface resources are more tense. The second control chip outputs the switching control signal to control the switching of the switching module, so that an interface (such as a bus interface) of the main control SOC is not occupied, and the complexity of circuit design is reduced conveniently.
In some embodiments, the electronic device further includes a touch circuit electrically connected to the first control chip and the second control chip. The first control chip can receive a screen-off instruction of a user based on the touch control circuit, and the second control chip can receive an application starting instruction of the user based on the touch control circuit.
The touch control circuit can be arranged at any position on the surface of the electronic equipment according to the requirement. For example, the touch circuit may be disposed on a surface of a back panel of the electronic device, or the touch circuit may be in the form of a touch screen overlying a display screen. The second control chip can communicate with the touch screen through I2C, and communicate with the display screen through MIPI (Mobile Industry Processor Interface). The touch circuit can be used for receiving a touch instruction of a user. For example, the second control chip detects a start instruction triggered based on the compass application through the touch circuit, and starts the compass application according to the start instruction.
Based on the structure of the electronic device, the method for implementing compass application provided by the embodiment of the present application is described. Referring to fig. 4, fig. 4 is a first flowchart illustrating a method for implementing a compass application according to an embodiment of the present disclosure. The specific process of the method for realizing compass application provided by the embodiment of the application can be as follows:
in 101, when the first control chip detects that the display screen enters the screen-off display mode, the second control chip is awakened, and the first control chip enters a sleep state after awakening the second control chip.
When the electronic equipment receives a screen locking instruction or a screen extinguishing instruction in a screen lighting mode, triggering a screen extinguishing event, for example, triggering a screen locking instruction by a user through a screen locking key or a screen locking control; or when the electronic equipment is in the screen-on mode, the user does not operate the electronic equipment within a certain time length to trigger a screen-off event.
When the first control chip detects a screen-off event, the display screen is controlled to enter a screen-off display mode. Meanwhile, the first control chip sends a wake-up instruction to the second control chip to wake up the second control chip, and the first control chip enters a dormant state after waking up the second control chip.
In 102, when the second control chip detects that the compass application is turned on, sensor data collected by the direction sensor is acquired.
After the electronic equipment enters the screen-off display mode, the first control chip enters the dormant state, and therefore the user operation is not responded any more. At this time, if the user operates the application program installed on the operating system of the second control chip, the second control chip directly responds and executes the corresponding control operation.
The compass application in the embodiment of the present application may be installed on the memory of the second control chip, and run based on an operating system on the memory, which is a lightweight operating system relative to the operating system on the first control chip. When the electronic equipment enters the screen-off display mode, icons of the application programs installed on the operating system of the second control chip can be displayed on the display screen in a screen-off display mode. The user can trigger an open instruction of the application based on the icons. For example, a user may launch a compass application based on an icon of the compass application displayed on the screen-out interface.
When the second control chip detects that the compass application is opened, the sensor data collected by the acceleration sensor and the magnetic field sensor is read in real time through the communication bus.
In 103, the second control chip calculates orientation information of the electronic device from the sensor data.
After the compass application is turned on, the user rotates or moves the electronic device, which causes the orientation information of the electronic device to change. Thus, the second control chip may acquire sensor data in real time or at intervals, for example, 10 sensor data per second. And the second control chip can calculate the current azimuth information of the electronic equipment according to the sensor data every time the second control chip acquires the sensor data.
At 104, the second control chip displays the orientation information on the display screen.
After the current orientation information of the electronic equipment is determined, the second control chip displays the orientation information on the display screen in a mode of turning off the display screen.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
Therefore, according to the method for implementing compass application provided by the embodiment of the application, when the electronic device is in the screen-off display mode, if a user wants to use the compass application at this time, the first control chip does not need to be awakened, and the second control chip with low power consumption controls the electronic device to implement the application in the screen-off display mode, that is, once the first control chip enters the screen-off display mode, the first control chip can keep the dormant state, and the compass application does not need to be awakened, so that the power consumption caused by frequent awakening of the first control chip can be saved. In addition, in the screen-off display mode, the first control chip with relatively high power consumption enters a dormant state, and the implementation of compass application is controlled by the second control chip with low power consumption, so that the power consumption required by the implementation of compass application can be reduced. Through the two aspects, the overall power consumption of the electronic equipment is finally reduced.
In some embodiments, the second control chip calculates orientation information of the electronic device from the sensor data, including: the second control chip calculates first azimuth information of the electronic equipment at the last moment and second azimuth information of the electronic equipment at the current moment according to the sensor data; calculating the rotation angle of the electronic equipment from the previous moment to the current moment according to the first azimuth information and the second azimuth information; the second control chip displays the azimuth information on the display screen, and the method comprises the following steps: and the second control chip controls the position indication mark on the display screen to be adjusted according to the rotation angle so as to indicate second position information.
Referring to fig. 5, fig. 5 is a schematic view of a display interface of a compass application in a method for implementing a compass application according to an embodiment of the present disclosure. The thick white lines in the illustration are pointers. In some embodiments, the principle that a compass applies to displaying bearing information is: the position of the pointer on the display screen is unchanged, the azimuth indicating mark is correspondingly adjusted according to the rotating angle of the electronic equipment so as to indicate the change of the azimuth of the electronic equipment, and the mark corresponding to the 'north 0 degree' on the dial always points to the right north. In some embodiments, the orientation indicator may be a dial.
After the electronic equipment is started, sensors such as an acceleration sensor and a magnetic field sensor can acquire data according to corresponding acquisition frequencies. The second control chip can read the data of the acceleration sensor and the magnetic field sensor at regular time and calculate to obtain the direction of the electronic equipment. The user may adjust the attitude of the electronic device, e.g., rotate the electronic device along a horizontal plane, while using a compass application for azimuth indication. The calculated orientation information is also changed in real time.
When the electronic equipment rotates, the sensor data acquired by the sensor also changes, the second control chip calculates the orientation information of the electronic equipment in real time according to the sensor data, and calculates the rotation angle of the electronic equipment according to the first orientation information acquired by the electronic equipment at the last moment (the time point of last acquisition of the sensor data) and the second orientation information acquired at the current moment. When the second control chip determines the rotation angle, the orientation indication mark on the display screen is controlled to be adjusted according to the rotation angle so as to indicate the orientation change of the electronic equipment.
In some embodiments, after the second control chip calculates the electronic device orientation information from the sensor data, the second control chip may also display specific data of the current orientation information on the display screen, e.g., "285 ° west".
The method according to the preceding embodiment is illustrated in further detail below by way of example.
Referring to fig. 6, fig. 6 is a second flowchart of a method for implementing a compass application according to an embodiment of the present invention. The method comprises the following steps:
201. when the electronic equipment is in the screen lightening mode, if the first control chip detects that the display screen enters the screen extinguishing display mode, the second control chip is awakened.
202. The first control chip enters a dormant state after awakening the second control chip.
When the electronic equipment is in the bright screen mode, the first control chip is in a working state, the second control chip is in a dormant state, and the first control chip is used for controlling various functions of the electronic equipment.
The first control chip of the electronic equipment is connected with the second control chip, and when the electronic equipment is turned off, the first control chip is used as a main control chip to wake up the second control chip in a dormant state, and meanwhile, the first control chip enters the dormant state. For example, when the first control chip detects that the display screen enters a screen-off display mode, the first control chip sends a wake-up instruction to the second control chip; and the second control chip is switched from the dormant state to the working state according to the awakening instruction.
In addition, after the first control chip wakes up the second control chip, the second control chip outputs a switching control signal to the switching module through the switching control signal output end so as to control the switching module to execute switching operation, so that the signal source of the switching module is switched from the first control chip to the second control chip, and the second control chip outputs display data to the display screen, thereby realizing the display control of the second control chip on the display screen.
203. And if the second control chip detects that the compass application is started, acquiring sensor data acquired by the direction sensor.
And under the screen-off display mode, if the compass application is detected to be started, acquiring sensor data acquired by the acceleration sensor and the magnetic field sensor through the communication bus.
204. The second control chip calculates first azimuth information of the electronic equipment at the previous moment and second azimuth information of the electronic equipment at the current moment according to the sensor data.
205. And calculating the rotation angle of the electronic equipment according to the first orientation information and the second orientation information.
The user may adjust the attitude of the electronic device, e.g., rotate the electronic device along a horizontal plane, while using a compass application for azimuth indication. Therefore, the orientation information calculated by the second control chip also changes in real time, so that the second control chip calculates first orientation information of the electronic device at the previous moment and second orientation information of the electronic device at the current moment respectively, and then calculates the rotation angle of the electronic device according to the first orientation information and the second orientation information.
206. And the second control chip controls the position indication mark on the display screen to be adjusted according to the rotation angle so as to indicate second position information.
The compass displays azimuth information according to the principle that: the position of the pointer on the display screen is unchanged, and the azimuth indication mark is adjusted according to the rotating angle of the electronic equipment so as to indicate the change of the azimuth of the electronic equipment, so that the pointer of the compass points to the azimuth corresponding to the second azimuth information. The label corresponding to "north 0 °" on the dial always points to the right north. And after the second control chip determines the rotation angle, the second control chip controls the azimuth indicating mark on the display screen to be adjusted according to the rotation angle so as to indicate second azimuth information.
207. And when the second control chip detects a preset touch event, the second control chip controls to quit the compass application and switches the display interface to the off-screen display main interface.
During the running process of the compass application, when the second control chip detects a preset touch event, the compass application may be exited, for example, the preset touch event may be triggered by a user exiting a control based on an application on the off-screen display interface, or by returning to the off-screen display main interface. And after exiting the compass application, the first control chip switches the display interface to the screen-off display main interface.
208. And when the second control chip detects a preset event or the time for displaying the screen off reaches a preset duration, sending a wake-up signal to the first control chip.
209. When the first control chip receives the wake-up signal sent by the second control chip, the first control chip is switched to a working state from a dormant state, and sends a dormant instruction to the second control chip, wherein the dormant instruction is used for indicating the second control chip to be switched to the dormant state.
In this embodiment, the second control chip may send a wake-up signal to the first control chip when some specific events are detected or the time for displaying the off screen reaches a certain time, so that the first control chip enters a working state; after the first control chip enters the working state, a sleep instruction is sent to the second control chip, so that the second control chip enters the sleep state.
For example, when the electronic device is in the screen-off display mode, if the second control chip detects an event that the first control chip needs to be awakened, such as a screen-on instruction or a preset instruction, an awakening signal is sent to the first control chip. Meanwhile, in order to reduce power consumption, the second control chip enters a sleep state.
In addition, after the first control chip enters the working state, the second control chip controls the switching module to execute the switching operation, so that when the second control chip subsequently enters the dormant state and the first control chip is in the working state, the display data of the first control chip is input to the display screen for control.
As can be seen from the above, in the method for implementing compass application provided in the embodiment of the present invention, when the electronic device enters the screen-off display mode, the first control chip enters the sleep state, and the second control chip is awakened from the sleep state and enters the working state. When the compass application is detected to be started, the second control chip acquires sensor data acquired by the direction sensor, calculates azimuth information of the electronic equipment, controls the azimuth information to be displayed on the display screen, and controls the first control chip with relatively high power consumption to enter a dormant state in a screen-off display mode, and controls the compass to be displayed through the second control chip with low power consumption, so that the overall power consumption of the electronic equipment is reduced.
In one embodiment, an apparatus for implementing compass application is also provided. Based on the structure of the electronic device, the device for implementing compass application provided by the embodiment of the present application is described. Referring to fig. 7, fig. 7 is a schematic structural diagram of a device for implementing compass application according to an embodiment of the present disclosure. The apparatus 300 for implementing compass application is applied to an electronic device, and the apparatus 300 for implementing compass application includes a first control chip, as follows:
the first control chip is used for: when the display screen is detected to enter a screen-off display mode, awakening the second control chip, and controlling the first control chip to enter a dormant state after awakening the second control chip;
the second control chip comprises a data acquisition module 301, an orientation calculation module 302 and a display control module 303, wherein:
the data acquisition module 301 is configured to: when detecting that the compass application is started, acquiring sensor data acquired by the direction sensor;
the orientation calculation module 302 is configured to: calculating orientation information of the electronic device according to the sensor data;
the display control module 303 is configured to: displaying the orientation information on the display screen.
In some embodiments, the position calculation module 302 is further configured to:
calculating first azimuth information of the electronic equipment at the previous moment and second azimuth information of the electronic equipment at the current moment according to the sensor data;
calculating a rotation angle of the electronic equipment from the previous moment to the current moment according to the first azimuth information and the second azimuth information;
the display control module 303 is further configured to: and controlling the position indication mark on the display screen to be adjusted according to the rotation angle so as to indicate the second position information.
In some embodiments, the display control module 303 is further configured to: when a preset touch event is detected, the compass application is controlled to exit, and the display interface is switched to the off-screen display main display interface
In some embodiments, the electronic device further includes a switching module, two data input ends of the switching module are respectively connected to the display data output ends of the first control chip and the second control chip, a switching control end of the switching module is connected to the switching control signal output end of the second control chip, and a data output end of the switching module is connected to the display screen;
the display control module 303 is further configured to:
after the first control chip wakes up the second control chip, a switching control signal is output to control the switching module to execute switching operation, so that the switching module switches from the display data output by the first control chip to the display screen to switch from the display data output by the second control chip to the display screen, and the display control of the display screen by the second control chip is realized.
In some embodiments, the first control chip is further configured to: sending a wake-up instruction to the second control chip; and switching from the dormant state to the working state according to the awakening instruction.
In some embodiments, the electronic device further includes a touch circuit electrically connected to the first control chip and the second control chip.
In some embodiments, the display control module 303 is further configured to: and detecting a starting instruction triggered based on the compass application through the touch circuit, and starting the compass application according to the starting instruction.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It should be noted that the apparatus for implementing compass application provided in the embodiment of the present application and the method for implementing compass application in the above embodiments belong to the same concept, and any method provided in the method for implementing compass application may be run on the apparatus for implementing compass application, and the specific implementation process thereof is described in the method embodiment for implementing compass application, and is not described herein again.
Therefore, when the electronic device is in the screen-off display mode, if a user wants to use the compass application at this time, the first control chip does not need to be awakened, and the second control chip with low power consumption controls the electronic device to implement the application in the screen-off display mode, that is, once the first control chip enters the screen-off display mode, the first control chip can keep the dormant state, and the compass application does not need to be awakened, so that the power consumption caused by frequent awakening of the first control chip can be saved. In addition, in the screen-off display mode, the first control chip with relatively high power consumption enters a dormant state, and the implementation of compass application is controlled by the second control chip with low power consumption, so that the power consumption required by the implementation of compass application can be reduced. Through the two aspects, the overall power consumption of the electronic equipment is finally reduced.
The embodiment of the application also provides the electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Based on the structure of the electronic device, the first control chip 401 includes a first processor 4011 and a first memory 4012. The second control chip 402 includes a second processor 4021 and a second memory 4022. The second processor 4021 is electrically connected to the second memory 4022. The first processor 4011 is electrically connected to the first memory 4012. In other embodiments, the first memory 4012 may be separately provided and not integrated in the first control chip 401.
In some embodiments, the first control chip 401 may serve as a master SOC of the electronic device; the second control chip 402 is a low power SOC that consumes less power than the first control chip 401.
The first processor 4011 is a control center of the electronic equipment, connects various parts of the whole electronic equipment by using various interfaces and lines, and executes various functions of the electronic equipment and processes data by running or calling a first computer program stored in the first memory 4012 and calling data stored in the first memory 4012, thereby integrally monitoring the electronic equipment.
The first memory 4012 can be used to store first computer programs and data. The first memory 4012 stores therein a first computer program containing instructions executable in the first processor. The first computer program may constitute various functional modules. The first processor 4011 executes various functional applications and data processing by calling a first computer program stored in the first memory 4012.
The second processor 4021 may also be used as a control center of the electronic device, connect various parts of the whole electronic device by using various interfaces and lines, and perform various functions of the electronic device and process data by running or calling the first computer program stored in the second memory 4022 and calling the data stored in the second memory 4022, thereby performing overall monitoring of the electronic device.
The second memory 4022 may be used to store first computer programs and data. The second memory 4022 stores a first computer program having instructions executable in the first processor. The first computer program may constitute various functional modules. The second processor 4021 executes various functional applications and data processing by calling the first computer program stored in the second memory 4022.
In this embodiment, the first processor 4011 in the electronic device loads instructions corresponding to processes of one or more first computer programs into the first memory 4012 according to the following steps, and the first processor 4011 runs the first computer program stored in the first memory 4012, so as to implement various functions:
and when the display screen is detected to enter a screen-off display mode, awakening the second control chip, and controlling the first control chip to enter a dormant state after awakening the second control chip.
The second processor 4021 in the electronic device loads instructions corresponding to one or more processes of the first computer program into the second memory 4022, and the second processor 4021 runs the first computer program stored in the second memory 4022, thereby implementing various functions, as follows:
when detecting that the compass application is started, acquiring sensor data acquired by the direction sensor;
calculating orientation information of the electronic device according to the sensor data;
displaying the orientation information on the display screen.
In some embodiments, in displaying the orientation information on the display screen, the second processor 4021 performs:
calculating first azimuth information of the electronic equipment at the previous moment and second azimuth information of the electronic equipment at the current moment according to the sensor data;
calculating a rotation angle of the electronic equipment from the previous moment to the current moment according to the first azimuth information and the second azimuth information;
and controlling the position indication mark on the display screen to be adjusted according to the rotation angle so as to indicate the second position information.
In some embodiments, when controlling the display screen to enter the off-screen display mode upon detecting the off-screen event, the second processor 4021 further performs: and when a preset touch event is detected, controlling to exit the compass application and switching the display interface to a screen-off display main interface.
In some embodiments, the electronic device further includes a switching module, two data input ends of the switching module are respectively connected to the display data output ends of the first control chip and the second control chip, a switching control end of the switching module is connected to the switching control signal output end of the second control chip, and a data output end of the switching module is connected to the display screen; the first processor 4011 further performs:
the second control chip outputs a switching control signal to control the switching module to execute switching operation, so that the switching module switches from conducting display data output by the first control chip to the display screen to conducting display data output by the second control chip to the display screen, and display control of the second control chip on the display screen is realized.
In some embodiments, the first processor 4011 further performs: sending a wake-up instruction to the second control chip; the second processor 4021 further performs: and switching from the dormant state to the working state according to the awakening instruction.
In some embodiments, the electronic device further includes a touch circuit electrically connected to the first control chip and the second control chip.
In some embodiments, the second processor 4021 further performs: and detecting a starting instruction triggered based on the compass application through the touch circuit, and starting the compass application according to the starting instruction.
In some embodiments, please refer to fig. 9, and fig. 9 is a second structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device further includes: radio frequency circuit 403, display screen 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, touch control circuit 410, and power supply 409. The first control chip 401 and the second control chip 402 are electrically connected to the radio frequency circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, the touch circuit 410, and the power source 409, respectively.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is configured to control the display screen 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone. Wherein the audio circuit 407 comprises a microphone. The microphone is electrically connected to the processor 401. The microphone is used for receiving voice information input by a user.
The sensor 408 is used to collect external environmental information. The sensors 408 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, etc.
The power supply 409 is used to power the various components of the electronic device. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in fig. 9, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the first processor 4011 in the electronic device loads instructions corresponding to processes of one or more first computer programs into the first memory 4012 according to the following steps, and the first processor 4011 runs the first computer program stored in the first memory 4012, so as to implement various functions:
and when the display screen is detected to enter a screen-off display mode, awakening the second control chip, and controlling the first control chip to enter a dormant state after awakening the second control chip.
In this embodiment, the second processor 4021 in the electronic device loads instructions corresponding to one or more computer program processes into the second memory 4022 according to the following steps, and the second processor 4021 runs the first computer program stored in the second memory 4022, thereby implementing various functions:
when detecting that the compass application is started, acquiring sensor data acquired by the direction sensor;
calculating orientation information of the electronic device according to the sensor data;
displaying the orientation information on the display screen.
Therefore, the electronic device comprises the first control chip, the second control chip, the direction sensor and the display screen, and the power consumption of the second control chip during operation is lower than that of the first control chip during operation. In the operation process of the electronic equipment, when the first control chip detects a screen-off event, the display screen is controlled to enter a screen-off display mode, the second control chip is awakened, and the first chip is controlled to enter a sleep state; when the second control chip detects that the compass application is started, the sensor data acquired by the direction sensor is acquired, the azimuth information of the electronic equipment is calculated according to the sensor data, and the azimuth information is displayed on the display screen. Therefore, in the screen-off display mode, the display of the compass is controlled through the second control chip with low power consumption, and the power consumption of the electronic equipment is reduced.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the method for implementing a compass application according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Furthermore, the terms "first", "second", and "third", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The method, the apparatus, the storage medium, and the electronic device for implementing compass application provided by the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for realizing compass application is applied to an electronic device, the electronic device comprises a first control chip, a second control chip, a direction sensor and a display screen, the power consumption of the second control chip during operation is lower than that of the first control chip during operation, and the method comprises the following steps:
when the first control chip detects that the display screen enters a screen-off display mode, awakening the second control chip, and entering a dormant state after awakening the second control chip;
when the second control chip detects that the compass application is started, acquiring sensor data acquired by the direction sensor;
the second control chip calculates the azimuth information of the electronic equipment according to the sensor data;
and the second control chip displays the azimuth information on the display screen.
2. The method for implementing a compass application as claimed in claim 1, wherein said second control chip calculates bearing information of said electronic device from said sensor data, comprising:
the second control chip calculates first azimuth information of the electronic equipment at the previous moment and second azimuth information of the electronic equipment at the current moment according to the sensor data;
calculating a rotation angle of the electronic equipment from the previous moment to the current moment according to the first azimuth information and the second azimuth information;
the second control chip displays the orientation information on the display screen, including:
and the second control chip controls the position indication mark on the display screen to be adjusted according to the rotation angle so as to indicate the second position information.
3. The method for implementing a compass application as claimed in claim 1, wherein said second control chip, after displaying said bearing information on said display screen, further comprises:
and when the second control chip detects a preset touch event, the second control chip controls to exit the compass application and switches the display interface to a screen-off display main interface.
4. The method for implementing a compass application as claimed in claim 1, wherein said electronic device further comprises a switch module, two data input terminals of said switch module are respectively connected to the display data output terminals of said first control chip and said second control chip, a switch control terminal of said switch module is connected to the switch control signal output terminal of said second control chip, and a data output terminal of said switch module is connected to said display screen;
after the first control chip wakes up the second control chip, the method further comprises:
the second control chip outputs a switching control signal to control the switching module to execute switching operation, so that the switching module switches from conducting display data output by the first control chip to the display screen to conducting display data output by the second control chip to the display screen, and display control of the second control chip on the display screen is realized.
5. The method of implementing a compass application as set forth in claim 1, wherein said waking said second control chip comprises:
the first control chip sends a wake-up instruction to the second control chip;
and the second control chip is switched from a dormant state to a working state according to the awakening instruction.
6. The method for implementing a compass application as claimed in any one of claims 1 to 5, wherein said electronic device further comprises a touch circuit, said touch circuit being electrically connected to said first control chip and said second control chip.
7. The method of implementing a compass application as set forth in claim 6, wherein said method further comprises:
the second control chip detects a starting instruction triggered based on the compass application through the touch circuit, and starts the compass application according to the starting instruction.
8. The device for realizing compass application is applied to electronic equipment, the electronic equipment comprises a first control chip, a second control chip, a direction sensor and a display screen, the power consumption of the second control chip during operation is lower than that of the first control chip during operation, wherein:
the first control chip is used for: when the display screen is detected to enter a screen-off display mode, awakening the second control chip, and entering a dormant state after awakening the second control chip;
the second control chip comprises a data acquisition module, an azimuth calculation module and a display control module;
the data acquisition module is used for: when detecting that the compass application is started, acquiring sensor data acquired by the direction sensor;
the orientation calculation module is to: calculating orientation information of the electronic device according to the sensor data;
the display control module is used for: displaying the orientation information on the display screen.
9. A storage medium having stored thereon a computer program for causing a computer to perform the method of implementing a compass application as claimed in any one of claims 1 to 7, when the computer program runs on the computer.
10. An electronic device is characterized by comprising a first control chip, a second control chip, a direction sensor and a display screen, wherein the power consumption of the second control chip during operation is lower than that of the first control chip during operation;
the first control chip comprises a first processor and a first memory, wherein a first computer program is stored on the first memory, and the first processor is used for executing:
when the display screen is detected to enter a screen-off display mode, awakening the second control chip, and controlling the first control chip to enter a dormant state after awakening the second control chip;
the second control chip comprises a second processor and a second memory, wherein a second computer program is stored in the second memory, and the second processor is used for executing the following steps by calling the second computer program:
when detecting that the compass application is started, acquiring sensor data acquired by the direction sensor;
calculating orientation information of the electronic device according to the sensor data;
displaying the orientation information on the display screen.
CN201911128623.6A 2019-11-18 2019-11-18 Method, device, storage medium and electronic equipment for realizing compass application Withdrawn CN112817424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911128623.6A CN112817424A (en) 2019-11-18 2019-11-18 Method, device, storage medium and electronic equipment for realizing compass application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911128623.6A CN112817424A (en) 2019-11-18 2019-11-18 Method, device, storage medium and electronic equipment for realizing compass application

Publications (1)

Publication Number Publication Date
CN112817424A true CN112817424A (en) 2021-05-18

Family

ID=75852705

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911128623.6A Withdrawn CN112817424A (en) 2019-11-18 2019-11-18 Method, device, storage medium and electronic equipment for realizing compass application

Country Status (1)

Country Link
CN (1) CN112817424A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113942401A (en) * 2021-10-29 2022-01-18 文远苏行(江苏)科技有限公司 Charging station determination method, charging station determination apparatus, removable carrier, and storage medium
CN115312012A (en) * 2022-09-14 2022-11-08 杭州万高科技股份有限公司 LCD electric meter display method, device and system for reducing chip power consumption
WO2023018116A1 (en) * 2021-08-10 2023-02-16 삼성전자주식회사 Electronic device and operating method therefor
WO2024032140A1 (en) * 2022-08-10 2024-02-15 Oppo广东移动通信有限公司 Always-on display method and apparatus, and device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103210277A (en) * 2010-11-18 2013-07-17 Nec卡西欧移动通信株式会社 Electronic device
CN103246559A (en) * 2012-02-10 2013-08-14 联想(北京)有限公司 Application processing method and electronic equipment
CN105388748A (en) * 2015-10-28 2016-03-09 广东欧珀移动通信有限公司 Method for displaying time by smart watch and smart watch
CN106775521A (en) * 2016-11-29 2017-05-31 珠海市魅族科技有限公司 Put out screen display method and apparatus
CN108319360A (en) * 2018-01-26 2018-07-24 出门问问信息科技有限公司 A kind of display device, electronic equipment and control method for screen display
CN108334296A (en) * 2018-01-26 2018-07-27 出门问问信息科技有限公司 A kind of display device, electronic equipment and control method for screen display
CN207780759U (en) * 2018-01-26 2018-08-28 出门问问信息科技有限公司 A kind of display device and electronic equipment
CN109523774A (en) * 2018-11-30 2019-03-26 Oppo广东移动通信有限公司 Apparatus control method and electronic equipment
CN110377141A (en) * 2019-07-19 2019-10-25 Oppo广东移动通信有限公司 Application processing method, device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103210277A (en) * 2010-11-18 2013-07-17 Nec卡西欧移动通信株式会社 Electronic device
CN103246559A (en) * 2012-02-10 2013-08-14 联想(北京)有限公司 Application processing method and electronic equipment
CN105388748A (en) * 2015-10-28 2016-03-09 广东欧珀移动通信有限公司 Method for displaying time by smart watch and smart watch
CN106775521A (en) * 2016-11-29 2017-05-31 珠海市魅族科技有限公司 Put out screen display method and apparatus
CN108319360A (en) * 2018-01-26 2018-07-24 出门问问信息科技有限公司 A kind of display device, electronic equipment and control method for screen display
CN108334296A (en) * 2018-01-26 2018-07-27 出门问问信息科技有限公司 A kind of display device, electronic equipment and control method for screen display
CN207780759U (en) * 2018-01-26 2018-08-28 出门问问信息科技有限公司 A kind of display device and electronic equipment
WO2019144489A1 (en) * 2018-01-26 2019-08-01 出门问问信息科技有限公司 Display device, electronic apparatus and screen display control method
CN109523774A (en) * 2018-11-30 2019-03-26 Oppo广东移动通信有限公司 Apparatus control method and electronic equipment
CN110377141A (en) * 2019-07-19 2019-10-25 Oppo广东移动通信有限公司 Application processing method, device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023018116A1 (en) * 2021-08-10 2023-02-16 삼성전자주식회사 Electronic device and operating method therefor
CN113942401A (en) * 2021-10-29 2022-01-18 文远苏行(江苏)科技有限公司 Charging station determination method, charging station determination apparatus, removable carrier, and storage medium
CN113942401B (en) * 2021-10-29 2023-11-24 文远苏行(江苏)科技有限公司 Charging station determining method, charging station determining device, movable carrier and storage medium
WO2024032140A1 (en) * 2022-08-10 2024-02-15 Oppo广东移动通信有限公司 Always-on display method and apparatus, and device and storage medium
CN115312012A (en) * 2022-09-14 2022-11-08 杭州万高科技股份有限公司 LCD electric meter display method, device and system for reducing chip power consumption

Similar Documents

Publication Publication Date Title
CN112988256B (en) Application starting method and device, storage medium and electronic equipment
CN112817424A (en) Method, device, storage medium and electronic equipment for realizing compass application
CN113993190B (en) Method and device for reducing power consumption of electronic equipment
CN112987986B (en) Method, device, storage medium and electronic equipment for realizing game application
CN110243386B (en) Navigation information display method, device, terminal and storage medium
EP3627730B1 (en) Radio frequency interference processing method and electronic device
CN111831099B (en) Electronic device
CN112996089B (en) Data transmission method, device, storage medium and electronic equipment
CN113031742B (en) Electronic equipment
CN110134744B (en) Method, device and system for updating geomagnetic information
CN111405110B (en) Screen control method and device, storage medium and mobile terminal
CN113031751A (en) Electronic device
CN110989882A (en) Control method, electronic device and computer readable storage medium
CN111427629B (en) Application starting method and device, vehicle equipment and storage medium
CN107918517B (en) Screen rotation response method and device, mobile terminal and storage medium
CN106886351B (en) Display method and device of terminal time information and computer equipment
CN111797017B (en) Method, device, test equipment and storage medium for storing log
CN116700826A (en) Widget starting method, device, equipment and computer readable storage medium
TWI597659B (en) Electronics and module for updating content to be shown before turning up display and method thereof
CN112882561B (en) Display control method, storage medium, and electronic device
CN108983950B (en) Display screen control method, storage medium and electronic device
CN113031748A (en) Display method and device based on dynamic word stock, storage medium and electronic equipment
CN114296626A (en) Input interface display method and terminal
CN110389879B (en) Method and device for acquiring performance data
CN109005287B (en) Terminal control method, device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210518