CN110830653A - Sensor control method, sensor control device, mobile terminal and storage medium - Google Patents

Sensor control method, sensor control device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110830653A
CN110830653A CN201911070138.8A CN201911070138A CN110830653A CN 110830653 A CN110830653 A CN 110830653A CN 201911070138 A CN201911070138 A CN 201911070138A CN 110830653 A CN110830653 A CN 110830653A
Authority
CN
China
Prior art keywords
sensor
sampling frequency
application program
current sampling
frequency
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.)
Granted
Application number
CN201911070138.8A
Other languages
Chinese (zh)
Other versions
CN110830653B (en
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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications Co 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201911070138.8A priority Critical patent/CN110830653B/en
Publication of CN110830653A publication Critical patent/CN110830653A/en
Application granted granted Critical
Publication of CN110830653B publication Critical patent/CN110830653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a sensor control method, a sensor control device, a mobile terminal and a storage medium, and relates to the technical field of mobile terminals. The method is applied to a mobile terminal, the mobile terminal comprises a display screen and a sensor, and the method comprises the following steps: when the display screen is switched from the bright screen state to the dark screen state, the current sampling frequency of the sensor is obtained, when the current sampling frequency of the sensor is larger than or equal to the specified frequency, an application program for obtaining sampling data from the sensor at present is determined, and a control mode of the current sampling frequency of the sensor is determined based on the application program. According to the sensor control method, the sensor control device, the mobile terminal and the storage medium, when the display screen is switched from the bright screen state to the breath screen state and the current sampling frequency of the sensor is greater than or equal to the specified frequency, the control mode of the current sampling frequency of the sensor is determined based on the application program for acquiring the sampling data of the sensor, so that the purpose of flexibly controlling the power consumption of movement is achieved, and the user experience is improved.

Description

Sensor control method, sensor control device, mobile terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a sensor control method and apparatus, a mobile terminal, and a storage medium.
Background
With the development of science and technology, mobile terminals are widely used and have more functions, and the mobile terminals become one of the necessary things in daily life of people. At present, a sensor is generally loaded on a mobile terminal, but under the condition that the sensor is turned on, the power consumption of the mobile terminal is increased, the service life of the mobile terminal is influenced, and the user experience is reduced.
Disclosure of Invention
In view of the above problems, the present application provides a sensor control method, apparatus, mobile terminal and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a sensor control method, which is applied to a mobile terminal, where the mobile terminal includes a display screen and a sensor, and the method includes: when the display screen is switched from a bright screen state to a dark screen state, acquiring the current sampling frequency of the sensor; when the current sampling frequency of the sensor is greater than or equal to a specified frequency, determining an application program which currently acquires sampling data from the sensor; determining a manner of control over a current sampling frequency of the sensor based on the application.
In a second aspect, an embodiment of the present application provides a sensor control apparatus, which is applied to a mobile terminal, where the mobile terminal includes a display screen and a sensor, and the apparatus includes: the current sampling frequency acquisition module is used for acquiring the current sampling frequency of the sensor when the display screen is switched from a bright screen state to a dark screen state; the application program determining module is used for determining the application program for acquiring sampling data from the sensor when the current sampling frequency of the sensor is greater than or equal to a specified frequency; and the control mode determining module is used for determining a control mode of the current sampling frequency of the sensor based on the application program.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a display screen, a sensor, a memory, and a processor, where the display screen, the sensor, and the memory are coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor performs the above method.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
According to the sensor control method, the sensor control device, the mobile terminal and the storage medium, when the display screen is switched from the bright screen state to the dark screen state, the current sampling frequency of the sensor is obtained, when the current sampling frequency of the sensor is larger than or equal to the specified frequency, the application program for obtaining sampling data from the sensor at present is determined, and the control mode of the current sampling frequency of the sensor is determined based on the application program.
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 schematic flow chart diagram illustrating a sensor control method provided by an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating a sensor control method according to another embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a sensor control method according to yet another embodiment of the present application;
FIG. 4 shows a flow chart of step S360 of the sensor control method shown in FIG. 3 of the present application;
FIG. 5 is a schematic flow chart diagram illustrating a sensor control method provided by another embodiment of the present application;
FIG. 6 is a flow chart illustrating a sensor control method provided by yet another embodiment of the present application;
FIG. 7 illustrates a block diagram of a sensor control device provided by an embodiment of the present application;
fig. 8 is a block diagram of a mobile terminal for performing a sensor control method according to an embodiment of the present application;
fig. 9 illustrates a storage unit for storing or carrying program codes for implementing a sensor control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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.
With the development of sensor technology, more and more mobile terminals are being equipped with more and more sensors, for example, more and more mobile terminals are being equipped with infrared sensors, ultrasonic sensors, gravity sensors, acceleration sensors, gyroscopes, distance sensors, position detection sensors, and the like. In addition, the application program loaded on the mobile terminal can also acquire data acquired by the sensor loaded on the mobile terminal, and provide personalized services, advertisement push, navigation and the like according to the acquired data. However, if the sensor mounted on the mobile terminal is in the high-frequency mode, the mobile terminal cannot go to sleep quickly after the mobile terminal touches the screen, so that the central processing unit cannot go to sleep quickly, and power consumption of the mobile terminal is increased.
In view of the above problems, the inventors have found and proposed a sensor control method, an apparatus, a mobile terminal, and a storage medium provided in the embodiments of the present application through long-term research, and determine a control method for a current sampling frequency of a sensor based on an application program that acquires sampling data of the sensor when a display screen is switched from a bright screen state to a dark screen state and the current sampling frequency of the sensor is greater than or equal to a specified frequency, so as to achieve the purpose of flexibly controlling power consumption of movement and improve user experience. The specific sensor control method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a sensor control method according to an embodiment of the present application. The sensor control method is used for determining a control mode of the current sampling frequency of the sensor based on an application program for acquiring sampling data of the sensor when the display screen is switched from a bright screen state to a dark screen state and the current sampling frequency of the sensor is greater than or equal to a specified frequency, so that the purpose of flexibly controlling the power consumption of movement is achieved, and the user experience is improved. In a specific embodiment, the sensor control method is applied to the sensor control device 200 shown in fig. 7 and the mobile terminal 100 (fig. 8) equipped with the sensor control device 200. The following will describe a specific process of this embodiment by taking a mobile terminal as an example, and it is understood that the mobile terminal applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 1, in this embodiment, the mobile terminal includes a display screen and a sensor, and the sensor control method may specifically include the following steps: non-viable cells
Step S110: and when the display screen is switched from the bright screen state to the screen-off state, acquiring the current sampling frequency of the sensor.
In some embodiments, the state information of the display screen may be detected, where the state information of the display screen may include a bright screen state and a dark screen state, that is, in this embodiment, it may be detected whether the display screen is currently in the bright screen state or the dark screen state. As one mode, the screen BRIGHTNESS of the mobile terminal (settings. system. screen _ BRIGHTNESS) may be detected and obtained, and the obtained screen BRIGHTNESS may be compared with the preset BRIGHTNESS to determine whether the screen BRIGHTNESS is greater than the preset BRIGHTNESS, when the screen BRIGHTNESS is greater than the preset BRIGHTNESS, the state information of the display screen may be considered as a bright screen state, and when the screen BRIGHTNESS is not greater than the preset BRIGHTNESS, the state information of the display screen may be considered as a dark screen state. Specifically, the mobile terminal may pre-store a preset brightness as a brightness value to be compared, where the preset brightness may be configured when the mobile terminal leaves a factory, and may be set according to a preference and a requirement of a user when the mobile terminal is used, or may be adjusted and set according to an attribute or an environment of the mobile terminal, for example, the preset brightness may be set according to a current environment brightness of an environment where the mobile terminal is located, and the larger the current environment brightness is, the larger the preset brightness value may be set, and the smaller the current environment brightness is, the smaller the preset brightness value may be set, and the like. Optionally, in this embodiment, the preset brightness value is 0, when the screen brightness is greater than 0, the state information of the display screen may be considered as a bright screen state, and when the screen state is not greater than 0, the state information of the display screen may be considered as a dark screen state. Of course, in this embodiment, other methods for detecting the state information of the display screen may also be included, and details are not described herein.
When the state information of the display screen is determined to be switched from the bright screen state to the dark screen state, the current sampling frequency of a sensor assembled on the electronic equipment can be acquired. For example, when it is detected that the screen brightness of the display screen is switched from greater than 0 to equal to 0, it may be determined that the state information of the display screen is switched from the bright screen state to the dark screen state, and then the current sampling frequency of the sensor mounted on the electronic device may be acquired.
In some embodiments, the current sampling frequency of each sensor of all sensors of the electronic device assembly may be obtained separately, or the current sampling frequencies of some sensors of all sensors of the electronic device assembly may be obtained, which is not limited herein. When the current sampling frequency of a part of sensors in all sensors of the electronic equipment assembly is obtained, selecting a sensor with power consumption larger than the specified power consumption from all sensors as a part of sensors, and obtaining the current sampling frequency of the sensor with the power consumption larger than the specified power consumption; the method comprises the steps that sensors with the importance degrees higher than a specified importance degree can be selected from all sensors to serve as partial sensors, and the current sampling frequency of the sensors with the importance degrees higher than the specified importance degree is obtained; a sensor having a frequency higher than a predetermined frequency may be selected from all sensors as a partial sensor, and a current sampling frequency of the sensor having the frequency higher than the predetermined frequency may be obtained, which is not limited herein.
In some embodiments, when the mobile terminal registers the sensor in the android, there is a delay time, and the time is the sampling frequency of the sensor. Therefore, in the present embodiment, the delay parameter of the sensor may be acquired, and the current sampling frequency of the sensor may be acquired based on the delay parameter of the sensor.
Step S120: when the current sampling frequency of the sensor is greater than or equal to a specified frequency, an application program which is currently acquiring sampling data from the sensor is determined.
In some embodiments, the electronic device may preset and store a designated frequency, which is used as a judgment basis for the current sampling frequency of the sensor. Therefore, in this embodiment, when the current sampling frequency of the sensor is obtained, the current sampling frequency of the sensor may be compared with a specified frequency to determine whether the current sampling frequency is greater than or equal to the specified frequency, where when the current sampling frequency of the sensor is greater than or equal to the specified frequency, it may be considered that the sensor is using the high-frequency mode, and the sensor cannot quickly go to sleep, and when the current sampling frequency of the sensor is not greater than the specified frequency, it may be considered that the sensor is using the low-frequency mode, and the sensor may quickly go to sleep. For example, if the current sampling frequency of the sensor is A and the specified frequency is B, then when A ≧ B, the sensor can be considered as using the high-frequency mode, and when A < B, the sensor can be considered as using the low-frequency mode.
The mobile terminal can be provided with a plurality of application programs, and the mobile terminal can automatically configure the sensor using authority of the application programs and can also be configured with the sensor using authority of the application programs by a user. In this embodiment, when the sensor using function of the mobile terminal is turned on, the application configured with the authority may acquire the sampling data from the corresponding sensor, so that the application acquiring the sampling data performs feedback based on the sampling data. The application configured with the sensor use permission may run in the foreground of the mobile terminal, may run in the background of the mobile terminal, and may also run in a switching manner between the foreground and the background of the mobile terminal, which is not limited herein.
In some implementations, when it is determined that the current sampling frequency of the sensor is greater than or equal to the specified frequency, the application that is currently acquiring sampled data from the sensor can be determined. For example, when the sensor is a GPS sensor, an application program that is currently acquiring positioning data from the GPS sensor may be determined; when the sensor is an acceleration sensor, an application program for acquiring acceleration data from the acceleration sensor at present can be determined; when the sensor is a gyroscope, the application that is currently acquiring pose data from the gyroscope may be determined. In this embodiment, the application may save information of the application when registering the sensor, and thus, the application currently acquiring the sample data from the sensor may be identified based on the information.
Step S130: determining a manner of control over a current sampling frequency of the sensor based on the application.
In this embodiment, after determining the application program that is currently acquiring the sampling data from the sensor, the processing manner of the current sampling rate of the sensor may be determined based on the application program. In some embodiments, the mobile terminal may obtain and record a plurality of application programs and a plurality of control modes for the current sampling frequency of the sensor in advance, and establish a mapping relationship between the plurality of application programs and the plurality of control modes, where the mapping relationship may be one-to-one correspondence between the plurality of application programs and the plurality of control modes, and may be one-to-one correspondence between the plurality of application programs and one control mode, as shown in table 1. When the mobile terminal acquires the application program which acquires the sampling data from the sensor currently, the mobile terminal may compare the application program which acquires the sampling data from the sensor currently with a plurality of application programs in a mapping relation which is established in advance to acquire the application program which is matched with the application program which acquires the sampling data from the sensor currently, and then acquire a control mode corresponding to the application program which is matched with the application program which acquires the sampling data from the sensor currently based on the mapping relation.
TABLE 1
Application program Control mode
Application program 1 Control mode 1
Application 2 Control mode 2
Application 3 Control mode 3
In this embodiment, the control manner of the current sampling frequency of the sensor may include, but is not limited to: and controlling the current sampling frequency of the sensor to be kept unchanged and reducing the current sampling frequency of the sensor.
According to the sensor control method provided by one embodiment of the application, when the display screen is switched from the bright screen state to the dark screen state, the current sampling frequency of the sensor is obtained, when the current sampling frequency of the sensor is greater than or equal to the specified frequency, the application program for obtaining the sampling data from the sensor at present is determined, and the control mode of the current sampling frequency of the sensor is determined based on the application program.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a sensor control method according to another embodiment of the present application. The method is applied to the mobile terminal, which includes a display screen and a sensor, and as will be described in detail with respect to the flow shown in fig. 2, the sensor control method may specifically include the following steps:
step S210: and when the display screen is switched from a bright screen state to a dark screen state, acquiring the delay parameter of the sensor.
Step S220: obtaining a current sampling frequency of the sensor based on the delay parameter of the sensor.
Step S230: when the current sampling frequency of the sensor is greater than or equal to a specified frequency, an application program which is currently acquiring sampling data from the sensor is determined.
For the detailed description of steps S210 to S230, refer to steps S110 to S120, which are not described herein again.
Step S240: and judging whether the application program is in a preset white list or not.
In some embodiments, the mobile terminal may pre-configure a white list as a preset white list, where the preset white list includes a plurality of applications. Specifically, as a manner, the mobile terminal may automatically create a white list, selectively add the plurality of applications to the white list to generate the white list, and use the generated white list as a preset white list. As another mode, the mobile terminal may automatically create a white list, the user may selectively add the plurality of application programs to the white list to generate the white list, and the mobile terminal uses the generated white list as the preset white list. As another way, the user may manually create a white list in the mobile terminal, and then selectively add the plurality of applications to the white list to generate the white list, where the mobile terminal uses the generated white list as a preset white list.
In some embodiments, the applications in the preset white list satisfy at least one of the following conditions: the total user amount is greater than the designated user amount; obtaining first sampling data from the sensor at a frequency greater than a specified frequency, wherein the first sampling data is collected by the sensor based on the current sampling frequency; a difference between a service capability based on the first sampled data and a service capability based on second sampled data is greater than a specified difference, wherein the second sampled data is collected by the sensor based on the target sampling frequency.
Therefore, in the present embodiment, after determining the application program currently acquiring the sampling data from the sensor, it may be determined whether the application program is in the preset white list. As a mode, the application program currently acquiring the sampling data from the sensor may be compared with the application programs in the preset white list to determine whether the application program currently acquiring the sampling data from the sensor is in the preset white list, where if the application program currently acquiring the sampling data from the sensor is consistent with any application program in the preset white list, it may be determined that the application program currently acquiring the sampling data from the sensor is in the preset white list, and if the application program currently acquiring the sampling data from the sensor is inconsistent with all application programs in the preset white list, it may be determined that the application program currently acquiring the sampling data from the sensor is not in the preset white list.
Step S250: and when the application program is in the preset white list, controlling the current sampling frequency of the sensor to be kept unchanged.
When the judgment result represents that the application program is in the preset white list, the user group representing the application program is very large, the frequency of the high-frequency mode using the sensor is high, or the sensor exits the high-frequency mode, so that the user can have obvious perception, therefore, the current sampling frequency of the sensor can be controlled to be kept unchanged, and the user experience is improved.
Step S260: when the application program is not in the preset white list, reducing the current sampling frequency of the sensor to a target sampling frequency, wherein the target sampling frequency is less than the specified frequency.
When the judgment result indicates that the application program is not in the preset white list, the user group indicating the application program is small, the frequency of the high-frequency mode using the sensor is low, and the sensor does not enable the user to obviously sense when exiting the high-frequency mode, so that the current sampling frequency of the sensor can be reduced to a target sampling frequency which is less than the specified frequency, and the power consumption of the mobile terminal is reduced.
In some embodiments, when the application program is not in the preset white list, the sensor is controlled to switch from a first sampling mode to a second sampling mode, wherein the sampling frequency of the sensor in the first sampling mode is the current sampling frequency, and the sampling frequency in the second sampling mode is the target sampling frequency. That is, in this embodiment, the sensor operates in a first sampling mode or in a second sampling mode, wherein the sampling frequency of the first sampling mode is higher than the sampling frequency of the second sampling mode, for example, the first sampling mode corresponds to a high frequency sampling mode, and the second sampling mode corresponds to a low frequency sampling mode. In this embodiment, when the sensor operates in the first sampling mode and the application program is not in the preset white list, the sensor may be controlled to switch from operating in the first sampling mode to operating in the second sampling mode, so that the sensor can quickly go to sleep, and the purpose of reducing power consumption of the mobile terminal is achieved.
In another embodiment of the application, a sensor control method is provided, where a delay parameter of a sensor is obtained when a display screen is switched from a bright screen state to a dark screen state, a current sampling frequency of the sensor is obtained based on the delay parameter of the sensor, and an application program that is currently obtaining sampling data from the sensor is determined when the current sampling frequency of the sensor is greater than or equal to a specified frequency. And judging whether the application program is in a preset white list, controlling the current sampling frequency of the sensor to be kept unchanged when the application program is in the preset white list, and reducing the current sampling frequency of the sensor to a target sampling frequency which is less than the specified frequency when the application program is not in the preset white list. Compared with the sensor control method shown in fig. 1, the present embodiment also obtains the current sampling frequency of the sensor through the delay parameter of the sensor. In addition, the embodiment also judges the application program through a preset white list, and keeps or reduces the current sampling frequency so as to flexibly control the power consumption of the mobile terminal.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a sensor control method according to still another embodiment of the present application. The method is applied to the mobile terminal, which includes a display screen and a sensor, and as will be described in detail with respect to the flow shown in fig. 3, the sensor control method may specifically include the following steps:
step S310: and when the display screen is switched from a bright screen state to a dark screen state, acquiring the delay parameter of the sensor.
Step S320: obtaining a current sampling frequency of the sensor based on the delay parameter of the sensor.
Step S330: when the current sampling frequency of the sensor is greater than or equal to a specified frequency, an application program which is currently acquiring sampling data from the sensor is determined.
For the detailed description of steps S310 to S330, refer to steps S110 to S120, which are not described herein again.
Step S340: and acquiring the total user quantity of the application program.
In this embodiment, after determining the application that acquired the sample data from the sensor, the total user amount of the application may be acquired. As one way, the total download amount of the application program may be obtained and determined as the total user amount of the application program. As still another way, the total registration amount of the application program may be acquired and determined as the total user amount of the application program. As still another way, the total click volume of the application program may be obtained and determined as the total user volume of the application program. Of course, in this embodiment, other more ways of obtaining the total user amount of the application program may also be included, and are not described herein again.
Step S350: and when the total user amount of the application program is larger than the designated user amount, controlling the current sampling frequency of the sensor to be kept unchanged.
In some embodiments, the electronic device may preset and store a designated user amount, which is used as a judgment basis for the total user amount of the application program. Therefore, in this embodiment, after the total user amount of the application program is obtained, the total user amount of the application program may be compared with the designated user amount to determine whether the total user amount of the application program is greater than the designated user amount.
When the total user quantity of the application program represented by the judgment result is larger than the designated user quantity, the user group of the application program can be considered to be very large, and therefore the current sampling frequency of the sensor can be controlled to be kept unchanged, and the user experience is improved.
Step S360: when the total user amount of the application program is not more than the designated user amount, the current sampling frequency of the sensor is reduced to a target sampling frequency.
When the total user quantity of the application program represented by the judgment result is not greater than the designated user quantity, the user group of the application program can be considered to be small, and therefore the current sampling frequency of the sensor can be reduced to the target sampling frequency, and the power consumption of the mobile terminal can be reduced.
Referring to fig. 4, fig. 4 is a flowchart illustrating a step S360 of the sensor control method illustrated in fig. 3 according to the present application. As will be explained in detail with respect to the flow shown in fig. 4, the method may specifically include the following steps:
step S361: and when the total user quantity of the application program is not more than the specified user quantity, acquiring the newly added user quantity of the application program in the specified time.
In some embodiments, when the determination result indicates that the total user amount of the application program is not greater than the specified user amount, the new user amount of the application program in the specified time may be obtained, so as to estimate the future total user amount of the application program through the new user amount of the application program in the specified time. The designated time may be set automatically by the electronic device or manually by the user, and the designated time may be, for example, one week, one month, and the like, which is not limited herein.
As one way, the new download amount of the application program in the preset time may be obtained, and the new download amount of the application program in the preset time may be determined as the new user amount of the application program. As still another way, the new registration amount of the application program in the preset time may be obtained, and the new registration amount of the application program in the preset time may be determined as the new user amount of the application program. As another way, the new click volume of the application program in the preset time may be obtained, and the new click volume of the application program in the preset time may be determined as the new user volume of the application program. Of course, in this embodiment, other more ways of obtaining the new user amount of the application program may also be included, and details are not described herein.
Step S362: and when the newly added user amount of the application program in the specified time is not greater than the specified increment, reducing the current sampling frequency of the sensor to the target sampling frequency.
In some embodiments, the electronic device may preset and store a specified increment, where the specified increment is used as a judgment basis for the amount of the newly added user of the application program within a preset time. Therefore, in this embodiment, after the new user amount of the application program in the preset time is obtained, the new user amount of the application program in the preset time may be compared with the specified increment to determine whether the new user amount of the application program in the specified time is not greater than the specified increment.
When the judgment result represents that the number of the newly added users of the application program in the preset time is not more than the specified increment, the user group of the application program in the future can be considered to be small, so that the current sampling frequency of the sensor can be reduced to the target sampling frequency, and the power consumption of the mobile terminal can be reduced.
Step S363: and when the newly increased user amount of the application program in a specified time is larger than a specified increased amount, controlling the current sampling frequency of the sensor to be kept unchanged.
When the judgment result represents that the number of newly added users of the application program in the preset time is larger than the specified increment, the user group of the application program in the future can be considered to be very large, and therefore the current sampling frequency of the sensor can be controlled to be kept unchanged, and the user experience is improved.
In another embodiment of the sensor control method provided by the present application, when the display screen is switched from the bright screen state to the dark screen state, a delay parameter of the sensor is obtained, the current sampling frequency of the sensor is obtained based on the delay parameter of the sensor, and when the current sampling frequency of the sensor is greater than or equal to a specified frequency, an application program for currently obtaining sampling data from the sensor is determined. And acquiring the total user quantity of the application program, controlling the current sampling frequency of the sensor to be kept unchanged when the total user quantity of the application program is larger than the designated user quantity, and reducing the current sampling frequency of the sensor to the target sampling frequency when the total user quantity of the application program is not larger than the designated user quantity. Compared with the sensor control method shown in fig. 1, the present embodiment also obtains the current sampling frequency of the sensor through the delay parameter of the sensor. In addition, the present embodiment also maintains or reduces the current sampling frequency through the total user amount of the application program, so as to flexibly control the power consumption of the mobile terminal.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating a sensor control method according to another embodiment of the present application. The method is applied to the mobile terminal, which includes a display screen and a sensor, and as will be described in detail with respect to the flow shown in fig. 5, the sensor control method may specifically include the following steps:
step S410: and when the display screen is switched from a bright screen state to a dark screen state, acquiring the delay parameter of the sensor.
Step S420: obtaining a current sampling frequency of the sensor based on the delay parameter of the sensor.
Step S430: when the current sampling frequency of the sensor is greater than or equal to a specified frequency, an application program which is currently acquiring sampling data from the sensor is determined.
For detailed description of steps S410 to S430, please refer to steps S110 to S120, which are not described herein again.
Step S440: obtaining a frequency at which the application obtains first sampled data from the sensor, wherein the first sampled data is collected by the sensor based on the current sampling frequency.
In some embodiments, the sampling data acquired by the application from the sensor may include first sampling data acquired by the sensor based on the current sampling frequency and second sampling data acquired by the sensor based on the target sampling frequency. Therefore, when the application program acquires the sampling data from the sensor, the times of acquiring the first sampling data from the sensor and the times of acquiring the second sampling data from the sensor by the application program can be counted, and the frequency of acquiring the first sampling data from the sensor by the application program is determined based on the times of acquiring the first sampling data from the sensor and the times of acquiring the second sampling data from the sensor by the application program.
Step S450: and when the frequency is greater than the specified frequency, controlling the current sampling frequency of the sensor to be kept unchanged.
In some embodiments, the electronic device may preset and store a specific frequency, which is used as a judgment basis for the frequency of the application program acquiring the first sampling data from the sensor. Therefore, in this embodiment, after acquiring the frequency at which the application program acquires the first sampling data from the sensor, the frequency at which the application program acquires the first sampling data from the sensor may be compared with the specified frequency to determine whether the frequency at which the application program acquires the first sampling data from the sensor is greater than the specified frequency.
When the frequency of the first sampling data acquired by the application program from the sensor is greater than the designated frequency, the frequency of the high-frequency mode of the application program using the sensor can be considered to be higher, so that the current sampling frequency of the sensor can be controlled to be kept unchanged, and the user experience is improved.
Step S460: when the frequency is not greater than a specified frequency, the current sampling frequency of the sensor is reduced to a target sampling frequency.
When the judgment result indicates that the frequency of the application program for acquiring the first sampling data from the sensor is not more than the specified frequency, the frequency of the application program for using the high-frequency mode of the sensor can be considered to be lower, so that the current sampling frequency of the sensor can be reduced to the target sampling frequency, and the power consumption of the mobile terminal can be reduced.
In another embodiment of the application, a sensor control method is provided, where a delay parameter of a sensor is obtained when a display screen is switched from a bright screen state to a dark screen state, a current sampling frequency of the sensor is obtained based on the delay parameter of the sensor, and an application program that is currently obtaining sampling data from the sensor is determined when the current sampling frequency of the sensor is greater than or equal to a specified frequency. The method comprises the steps that the acquisition application program acquires the frequency of first sampling data from a sensor, wherein the first sampling data are acquired by the sensor based on the current sampling frequency, when the frequency is greater than a specified frequency, the current sampling frequency of the sensor is controlled to be kept unchanged, and when the frequency is not greater than the specified frequency, the current sampling frequency of the sensor is reduced to a target sampling frequency. Compared with the sensor control method shown in fig. 1, the present embodiment also obtains the current sampling frequency of the sensor through the delay parameter of the sensor. In addition, in this embodiment, the frequency of the sampling data acquired by the sensor based on the current sampling frequency is acquired through the application program, and the current sampling frequency is maintained or reduced, so as to flexibly control the power consumption of the mobile terminal.
Referring to fig. 6, fig. 6 is a schematic flow chart illustrating a sensor control method according to still another embodiment of the present application. The method is applied to the mobile terminal, which includes a display screen and a sensor, and as will be described in detail with respect to the flow shown in fig. 6, the sensor control method may specifically include the following steps:
step S510: and when the display screen is switched from a bright screen state to a dark screen state, acquiring the delay parameter of the sensor.
Step S520: obtaining a current sampling frequency of the sensor based on the delay parameter of the sensor.
Step S530: when the current sampling frequency of the sensor is greater than or equal to a specified frequency, an application program which is currently acquiring sampling data from the sensor is determined.
For the detailed description of steps S510 to S530, please refer to steps S110 to S120, which are not described herein again.
Step S540: obtaining, as a first service capability, a service capability of the application based on first sampled data, wherein the first sampled data is collected by the sensor based on the current sampling frequency.
In some embodiments, the sampling data acquired by the application from the sensor may include first sampling data acquired by the sensor based on the current sampling frequency and second sampling data acquired by the sensor based on the target sampling frequency. Therefore, when the application program acquires the sample data from the sensor, the service capability of the application program based on the acquired first sample data and the service capability based on the acquired first sample data can be recorded as the first service capability, and the service capability of the application program based on the acquired second sample data and the service capability based on the acquired second sample data can be recorded as the second service capability.
The service capability of the application may include a response speed of the application to the user request, a page loading speed of the application, an evaluation of the application by the user, and the like, which are not limited herein. The faster the response speed of the application program to the user request is, the stronger the service capability of the application program can be represented, and the slower the response speed of the application program to the user request is, the worse the service capability of the application program can be represented. The faster the page loading speed of the application program is, the stronger the service capability of the application program can be represented, and the slower the page loading speed of the application program is, the worse the service capability of the application program can be represented. The higher the user's evaluation on the application program, the stronger the service capability that can characterize the application program, and the lower the user's evaluation on the application program, the worse the service capability that can characterize the application program.
Step S550: and acquiring the service capability of the application program based on second sampling data as a second service capability, wherein the second sampling data is acquired by the sensor based on the target sampling frequency.
Step S560: and when the difference value of the first service capacity and the second service capacity is larger than a specified difference value, controlling the current sampling frequency of the sensor to be kept unchanged.
In some embodiments, the electronic device may preset and store a specified difference value, which is used as a judgment basis for the difference value between the first service capability and the second service capability of the application program. Therefore, in this embodiment, after the first service capability and the second service capability of the application program are obtained, the difference between the first service capability and the second service capability may be calculated, and the difference between the first service capability and the second service capability may be compared with the specified difference to determine whether the difference between the first service capability and the second service capability is greater than the specified difference.
When the difference between the first service capability and the second service capability is greater than the specified difference, the application program can be considered to have obvious perception for the user when the sensor is in the high-frequency mode and the low-frequency mode, and therefore the current sampling frequency of the sensor can be controlled to be kept unchanged, and user experience is improved.
Step S570: when the difference between the first service capacity and the second service capacity is not larger than a specified difference, reducing the current sampling frequency of the sensor to a target sampling frequency.
When the difference between the first service capability and the second service capability is not greater than the specified difference, the application program can be considered as not giving obvious perception to the user when the sensor is in the high-frequency mode and the low-frequency mode, so that the current sampling frequency of the sensor can be reduced to a target sampling frequency which is less than the specified frequency, and the power consumption of the mobile terminal can be reduced.
In another embodiment of the sensor control method provided by the present application, when the display screen is switched from the bright screen state to the dark screen state, a delay parameter of the sensor is obtained, the current sampling frequency of the sensor is obtained based on the delay parameter of the sensor, and when the current sampling frequency of the sensor is greater than or equal to a specified frequency, an application program for currently obtaining sampling data from the sensor is determined. The method comprises the steps of obtaining the service capacity of an application program based on first sampling data as a first service capacity, wherein the first sampling data are collected by a sensor based on a current sampling frequency, obtaining the service capacity of the application program based on second sampling data as a second service capacity, wherein the second sampling data are collected by the sensor based on a target sampling frequency, controlling the current sampling frequency of the sensor to be kept unchanged when the difference value between the first service capacity and the second service capacity is larger than a specified difference value, and reducing the current sampling frequency of the sensor to the target sampling frequency when the difference value between the first service capacity and the second service capacity is not larger than the specified difference value. Compared with the sensor control method shown in fig. 1, the present embodiment also obtains the current sampling frequency of the sensor through the delay parameter of the sensor. In addition, in this embodiment, the current sampling frequency is maintained or reduced by the application program based on the difference between the service capability of the sensor at the current sampling frequency and the service capability of the sensor at the target sampling frequency, so as to flexibly control the power consumption of the mobile terminal.
Referring to fig. 7, fig. 7 is a block diagram illustrating a sensor control apparatus 200 according to an embodiment of the present disclosure. The sensor control device 200 is applied to the mobile terminal, which includes a display screen and a sensor, and will be explained with reference to the block diagram shown in fig. 7, the sensor control device 200 includes: a current sampling frequency obtaining module 210, an application program determining module 220, and a control manner determining module 230, wherein:
and a current sampling frequency obtaining module 210, configured to obtain a current sampling frequency of the sensor when the display screen is switched from a bright screen state to a dark screen state.
Further, the current sampling frequency obtaining module 210 includes: a parameter acquisition submodule and a current sampling frequency acquisition submodule, wherein:
and the parameter acquisition submodule is used for acquiring the delay parameters of the sensor.
And the current sampling frequency acquisition sub-module is used for acquiring the current sampling frequency of the sensor based on the delay parameter of the sensor.
An application determination module 220, configured to determine an application currently acquiring sampling data from the sensor when the current sampling frequency of the sensor is greater than or equal to a specified frequency.
A control mode determination module 230, configured to determine a control mode for the current sampling frequency of the sensor based on the application program.
Further, the control manner determining module 230 includes: an application program judgment submodule, a first retention control submodule and a first reduction control submodule, wherein:
and the application program judging submodule is used for judging whether the application program is in a preset white list or not.
And the first holding control sub-module is used for controlling the current sampling frequency of the sensor to be kept unchanged when the application program is in the preset white list.
A first reduction control sub-module, configured to reduce a current sampling frequency of the sensor to a target sampling frequency when the application is not on the preset white list, where the target sampling frequency is less than the specified frequency.
Further, the first lowering control sub-module includes: a mode switching unit, wherein:
and a mode switching unit, configured to control the sensor to switch from a first sampling mode to a second sampling mode when the application program is not in the preset white list, where a sampling frequency of the sensor in the first sampling mode is the current sampling frequency, and a sampling frequency in the second sampling mode is the target sampling frequency.
Further, the control manner determining module 230 includes: a total user amount obtaining submodule, a second keeping control submodule and a second reducing control submodule, wherein:
and the total user quantity obtaining submodule is used for obtaining the total user quantity of the application program.
And the second holding control submodule is used for controlling the current sampling frequency of the sensor to be kept unchanged when the total user amount of the application program is larger than the specified user amount.
A second reduction control sub-module for reducing the current sampling frequency of the sensor to a target sampling frequency when the total user amount of the application program is not greater than a specified user amount.
Further, the reduction control sub-module includes: a newly added user amount acquisition unit, a third holding control unit, and a third lowering control unit, wherein:
and the new user amount acquisition unit is used for acquiring the new user amount of the application program in a specified time when the total user amount of the application program is not more than the specified user amount.
And the third holding control unit is used for reducing the current sampling frequency of the sensor to the target sampling frequency when the newly increased user amount of the application program in the specified time is not more than the specified increased amount.
And the third reduction control unit is used for controlling the current sampling frequency of the sensor to be kept unchanged when the newly increased user amount of the application program in the specified time is larger than the specified increased amount.
Further, the control manner determining module 230 includes: a frequency acquisition sub-module, a fourth hold control sub-module, and a fourth reduce control sub-module, wherein:
a frequency acquisition sub-module to acquire a frequency at which the application program acquires first sampling data from the sensor, wherein the first sampling data is acquired by the sensor based on the current sampling frequency.
And the fourth holding control sub-module is used for controlling the current sampling frequency of the sensor to be kept unchanged when the frequency is greater than the specified frequency.
A fourth reduction control sub-module for reducing the current sampling frequency of the sensor to a target sampling frequency when the frequency is not greater than a specified frequency.
Further, the control manner determining module 230 includes: a first service capability obtaining submodule, a second service capability obtaining submodule, a fifth retention control submodule and a fifth reduction control submodule, wherein:
a first service capability obtaining sub-module, configured to obtain, as the first service capability, a service capability of the application based on first sampled data, where the first sampled data is collected by the sensor based on the current sampling frequency.
And the second service capacity acquisition submodule is used for acquiring the service capacity of the application program based on second sampling data as a second service capacity, wherein the second sampling data is acquired by the sensor based on the target sampling frequency.
And the fifth retention control sub-module is used for controlling the current sampling frequency of the sensor to be kept unchanged when the difference value of the first service capacity and the second service capacity is larger than a specified difference value.
A fifth reduction control sub-module for reducing the current sampling frequency of the sensor to a target sampling frequency when the difference between the first service capability and the second service capability is not greater than a specified difference.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 8, a block diagram of a mobile terminal 100 according to an embodiment of the present disclosure is shown. The mobile terminal 100 may be a smart phone, a tablet computer, an electronic book, or other mobile terminal capable of running an application. The mobile terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a display 130, a sensor 140, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 interfaces with various components throughout the mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The Display 130 is used for displaying information input by a user, information provided to the user, and various graphic user interfaces of the mobile terminal 100, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the Display 130 may be a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), which is not limited herein.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
In summary, according to the sensor control method, the sensor control device, the mobile terminal and the storage medium provided in the embodiments of the present application, when the display screen is switched from the bright screen state to the dark screen state, the current sampling frequency of the sensor is obtained, when the current sampling frequency of the sensor is greater than or equal to the specified frequency, the application program that currently obtains the sampling data from the sensor is determined, and the control mode of the current sampling frequency of the sensor is determined based on the application program, so that the purpose of flexibly controlling the mobile power consumption is achieved, and the user experience is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. A sensor control method is applied to a mobile terminal, wherein the mobile terminal comprises a display screen and a sensor, and the method comprises the following steps:
when the display screen is switched from a bright screen state to a dark screen state, acquiring the current sampling frequency of the sensor;
when the current sampling frequency of the sensor is greater than or equal to a specified frequency, determining an application program which currently acquires sampling data from the sensor;
determining a manner of control over a current sampling frequency of the sensor based on the application.
2. The method of claim 1, wherein determining a control mode for a current sampling frequency of the sensor based on the application program comprises:
judging whether the application program is in a preset white list or not;
when the application program is in the preset white list, controlling the current sampling frequency of the sensor to be kept unchanged;
when the application program is not in the preset white list, reducing the current sampling frequency of the sensor to a target sampling frequency, wherein the target sampling frequency is less than the specified frequency.
3. The method of claim 2, wherein reducing the current sampling frequency of the sensor to a target sampling frequency when the application is not on the preset white list comprises:
when the application program is not in the preset white list, controlling the sensor to be switched from a first sampling mode to a second sampling mode, wherein the sampling frequency of the sensor in the first sampling mode is the current sampling frequency, and the sampling frequency in the second sampling mode is the target sampling frequency.
4. The method of claim 2, wherein the applications in the preset white list satisfy at least one of the following conditions:
the total user amount is greater than the designated user amount;
obtaining first sampling data from the sensor at a frequency greater than a specified frequency, wherein the first sampling data is collected by the sensor based on the current sampling frequency;
a difference between a service capability based on the first sampled data and a service capability based on second sampled data is greater than a specified difference, wherein the second sampled data is collected by the sensor based on the target sampling frequency.
5. The method of claim 1, wherein determining a control mode for a current sampling frequency of the sensor based on the application program comprises:
acquiring the total user quantity of the application program;
when the total user amount of the application program is larger than the designated user amount, controlling the current sampling frequency of the sensor to be kept unchanged;
when the total user amount of the application program is not more than the designated user amount, the current sampling frequency of the sensor is reduced to a target sampling frequency.
6. The method of claim 5, wherein reducing the current sampling frequency of the sensor to a target sampling frequency when the total user volume of the application is not greater than a specified user volume comprises:
when the total user quantity of the application program is not larger than the specified user quantity, acquiring the newly added user quantity of the application program in the specified time;
when the newly increased user amount of the application program in the specified time is not greater than the specified increase amount, reducing the current sampling frequency of the sensor to a target sampling frequency;
and when the newly increased user amount of the application program in a specified time is larger than a specified increased amount, controlling the current sampling frequency of the sensor to be kept unchanged.
7. The method of claim 1, wherein determining a control mode for a current sampling frequency of the sensor based on the application program comprises:
obtaining a frequency at which the application program obtains first sampling data from the sensor, wherein the first sampling data is collected by the sensor based on the current sampling frequency;
when the frequency is greater than a specified frequency, controlling the current sampling frequency of the sensor to be kept unchanged;
when the frequency is not greater than a specified frequency, the current sampling frequency of the sensor is reduced to a target sampling frequency.
8. The method of claim 1, wherein determining a control mode for a current sampling frequency of the sensor based on the application program comprises:
acquiring a service capability of the application program based on first sampling data as a first service capability, wherein the first sampling data is acquired by the sensor based on the current sampling frequency;
acquiring a service capability of the application program based on second sampling data as a second service capability, wherein the second sampling data is acquired by the sensor based on the target sampling frequency;
when the difference value of the first service capacity and the second service capacity is larger than a specified difference value, controlling the current sampling frequency of the sensor to be kept unchanged;
when the difference between the first service capacity and the second service capacity is not larger than a specified difference, reducing the current sampling frequency of the sensor to a target sampling frequency.
9. The method of any one of claims 1-8, wherein the obtaining a current sampling frequency of the sensor comprises:
acquiring a delay parameter of the sensor;
obtaining a current sampling frequency of the sensor based on the delay parameter of the sensor.
10. A sensor control device, applied to a mobile terminal including a display screen and a sensor, the device comprising:
the current sampling frequency acquisition module is used for acquiring the current sampling frequency of the sensor when the display screen is switched from a bright screen state to a dark screen state;
the application program determining module is used for determining the application program for acquiring sampling data from the sensor when the current sampling frequency of the sensor is greater than or equal to a specified frequency;
and the control mode determining module is used for determining a control mode of the current sampling frequency of the sensor based on the application program.
11. A mobile terminal comprising a display, a sensor, a memory, and a processor, the display, the sensor, and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
CN201911070138.8A 2019-11-05 2019-11-05 Sensor control method, sensor control device, mobile terminal and storage medium Active CN110830653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911070138.8A CN110830653B (en) 2019-11-05 2019-11-05 Sensor control method, sensor control device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911070138.8A CN110830653B (en) 2019-11-05 2019-11-05 Sensor control method, sensor control device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110830653A true CN110830653A (en) 2020-02-21
CN110830653B CN110830653B (en) 2021-07-13

Family

ID=69552494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911070138.8A Active CN110830653B (en) 2019-11-05 2019-11-05 Sensor control method, sensor control device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110830653B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399005A (en) * 2020-03-09 2020-07-10 展讯通信(上海)有限公司 Attitude determination positioning method, system, medium and electronic device for mobile terminal
CN113220531A (en) * 2021-05-17 2021-08-06 Tcl通讯(宁波)有限公司 Control method and device of terminal sensor, terminal and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102450062A (en) * 2009-05-26 2012-05-09 高通股份有限公司 Power management of sensors within a mobile device
CN104202802A (en) * 2014-08-28 2014-12-10 惠州Tcl移动通信有限公司 Mobile phone and power control method for same
CN105357401A (en) * 2015-11-18 2016-02-24 广东欧珀移动通信有限公司 Power saving method and device of multi-core mobile terminal
CN105468247A (en) * 2014-09-02 2016-04-06 中兴通讯股份有限公司 Working mode switching method and mobile terminal
US20160277897A1 (en) * 2015-03-16 2016-09-22 Anhui Huami Information Technology Co.,Ltd. Method and apparatus for modulating gps sampling frequency on terminal devices
US20160374025A1 (en) * 2016-08-29 2016-12-22 Mediatek Singapore Pte. Ltd. Method, System And Apparatus For Controlling Power Consumption Of A Mobile Terminal
CN106445841A (en) * 2016-09-27 2017-02-22 广东欧珀移动通信有限公司 Control method and device of data transmission
CN106471794A (en) * 2015-04-14 2017-03-01 华为技术有限公司 The control method of terminal, device and terminal
CN106850978A (en) * 2017-01-19 2017-06-13 北京奇虎科技有限公司 A kind of application control method and relevant device
CN108052196A (en) * 2017-12-29 2018-05-18 北京元心科技有限公司 Power consumption control method, device and terminal device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102450062A (en) * 2009-05-26 2012-05-09 高通股份有限公司 Power management of sensors within a mobile device
CN104202802A (en) * 2014-08-28 2014-12-10 惠州Tcl移动通信有限公司 Mobile phone and power control method for same
CN105468247A (en) * 2014-09-02 2016-04-06 中兴通讯股份有限公司 Working mode switching method and mobile terminal
US20160277897A1 (en) * 2015-03-16 2016-09-22 Anhui Huami Information Technology Co.,Ltd. Method and apparatus for modulating gps sampling frequency on terminal devices
CN106471794A (en) * 2015-04-14 2017-03-01 华为技术有限公司 The control method of terminal, device and terminal
CN105357401A (en) * 2015-11-18 2016-02-24 广东欧珀移动通信有限公司 Power saving method and device of multi-core mobile terminal
US20160374025A1 (en) * 2016-08-29 2016-12-22 Mediatek Singapore Pte. Ltd. Method, System And Apparatus For Controlling Power Consumption Of A Mobile Terminal
CN106445841A (en) * 2016-09-27 2017-02-22 广东欧珀移动通信有限公司 Control method and device of data transmission
CN106850978A (en) * 2017-01-19 2017-06-13 北京奇虎科技有限公司 A kind of application control method and relevant device
CN108052196A (en) * 2017-12-29 2018-05-18 北京元心科技有限公司 Power consumption control method, device and terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399005A (en) * 2020-03-09 2020-07-10 展讯通信(上海)有限公司 Attitude determination positioning method, system, medium and electronic device for mobile terminal
CN113220531A (en) * 2021-05-17 2021-08-06 Tcl通讯(宁波)有限公司 Control method and device of terminal sensor, terminal and storage medium
CN113220531B (en) * 2021-05-17 2023-06-20 Tcl通讯(宁波)有限公司 Control method and device of terminal sensor, terminal and storage medium

Also Published As

Publication number Publication date
CN110830653B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
EP3575962B1 (en) Method and device for preloading application, storage medium and intelligent terminal
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN108614722B (en) Application program preloading method and device, storage medium and terminal
US20190370603A1 (en) Method and apparatus for establishing an application prediction model, storage medium and terminal
CN108595224B (en) Application program prompting method and device, storage medium and terminal
US20160147284A1 (en) Method and apparatus for controlling display of electronic device
CN108804153B (en) Application program preloading method and device, storage medium and terminal
MX2014009134A (en) Tabletop display method, apparatus, and terminal.
WO2019001270A1 (en) Mobile terminal and split screen control method thereof, and computer readable storage medium
CN108958828B (en) Application program preloading method and device, storage medium and terminal
CN108197264B (en) Webpage acceleration display method and device, mobile terminal and storage medium
CN111124173B (en) Working state switching method and device of touch screen, mobile terminal and storage medium
CN109272917B (en) Screen brightness adjusting method and device, storage medium and electronic equipment
WO2019101043A1 (en) Image processing method, terminal, computer storage medium and computer program
CN110830653B (en) Sensor control method, sensor control device, mobile terminal and storage medium
CN111813492B (en) Display method and device for quick application, electronic equipment and storage medium
KR20200015000A (en) Method for memory leak detection and electronic device thereof
CN106897134B (en) Positioning function management method and device
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN111050388B (en) Doze mode control method, device, mobile terminal and storage medium
CN106528284B (en) application program configuration method and device and terminal equipment
CN110795172A (en) Foreground process control method and device, electronic equipment and storage medium
CN108540649B (en) Content display method and mobile terminal
CN107632985B (en) Webpage preloading method and device
CN110855838A (en) Positioning service control method, positioning service control 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
GR01 Patent grant
GR01 Patent grant