CN118377364A - Screen control method and electronic equipment - Google Patents

Screen control method and electronic equipment Download PDF

Info

Publication number
CN118377364A
CN118377364A CN202310102761.7A CN202310102761A CN118377364A CN 118377364 A CN118377364 A CN 118377364A CN 202310102761 A CN202310102761 A CN 202310102761A CN 118377364 A CN118377364 A CN 118377364A
Authority
CN
China
Prior art keywords
electronic device
screen
user
preset
target event
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.)
Pending
Application number
CN202310102761.7A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202310102761.7A priority Critical patent/CN118377364A/en
Priority to PCT/CN2023/134298 priority patent/WO2024152741A1/en
Publication of CN118377364A publication Critical patent/CN118377364A/en
Pending legal-status Critical Current

Links

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/3234Power saving characterised by the action undertaken
    • 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/329Power saving characterised by the action undertaken by task scheduling
    • 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/725Cordless telephones
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a screen control method and electronic equipment, wherein after a user starts a search function, the first electronic equipment can determine whether the user uses the search function according to the modes of a sensor and the like, and if the user uses the search function, the first electronic equipment keeps on a screen; and if the user does not use the search function, controlling the screen of the first electronic device according to a preset screen-off scheme. The screen control method provided by the application controls the screen of the electronic equipment by determining the actual use condition of the user on the electronic equipment, thereby being beneficial to improving the efficiency of the electronic equipment for displaying information by using the screen on one hand, reducing the frequency of operating the electronic equipment by the user in the searching process and reducing the power consumption of the electronic equipment in the searching process to a certain extent on the other hand.

Description

Screen control method and electronic equipment
Technical Field
The application relates to the field of terminal equipment software, in particular to a screen control method and electronic equipment.
Background
In general, a user may acquire location information of a target item from a screen of an electronic device and a search path from a current location to a location of the target item when using a search function of the electronic device, and the user may search for the target item using the location information and the search path.
The screen, the processor and the like of the electronic equipment are main energy consumption modules, and in the scene that a user uses a search function, the control method of the screen can be considered to be improved, so that the power consumption of the electronic equipment is reduced while the user can search for a target object conveniently.
Disclosure of Invention
The application provides a screen control method, wherein after a user starts to use a searching function of a first electronic device, the first electronic device can detect whether the user is using the searching function, so that a control scheme of a screen is determined according to the use condition of the user, the energy consumption of the first electronic device in the using process of the searching function is reduced, and the efficiency of the first electronic device for displaying related information of the searching function is improved to a certain extent.
In a first aspect, a method of screen control is provided, the method being applied to a first electronic device, the first electronic device comprising a screen, the method comprising: responsive to an operation to begin searching for a second electronic device, the first electronic device begins searching for the second electronic device; in the process that the first electronic equipment searches the second electronic equipment, the first electronic equipment detects a target event; in the event of the target event, the first electronic device keeps the screen always bright; under the condition that the target event does not occur, the first electronic equipment executes a preset screen-off scheme; the target event is used for indicating that the user is using the first electronic device to search for the second electronic device.
The operation of starting to search for the second electronic device may be an operation in which the user clicks a user interface entering the search application, or the user clicks a button triggering a function of the first electronic device to display the position of the second electronic device on the user interface of the search application, or the operation of starting to search for the second electronic device may be an operation in which the user clicks a button triggering a function of the first electronic device to search for a communication signal sent by the second electronic device, or the like. The first electronic device detection target event is described herein as being performed after a user begins to search for the second electronic device.
Here, the screen of the electronic device is always bright, which means that the backlight of the screen of the electronic device is in an on state, and in this state, the brightness of the screen of the electronic device is adjustable. In other words, the normally bright state of the screen is not understood as that the brightness of the screen is not adjustable.
The preset screen-off scheme may refer to a screen-off scheme that the first electronic device has set before the user performs the search process, for example, the preset screen-off scheme may be: if the user does not operate the first electronic device within 30 seconds, the first electronic device is off screen. For another example, the preset screen-off scheme may be: if the user opens a "video" application, the first electronic device remains on screen. For another example, the preset screen-off scheme may be: if the user clicks the power key, the first electronic device is off screen.
It should be noted that, the preset screen-off scheme of the first electronic device may also be used to keep the first electronic device on the screen, but the preset screen control method for keeping the screen on is different from the method for controlling the screen to keep the screen on by the first electronic device when the user is determined to use the search function.
It should be appreciated that the second electronic device may be bound to the target item (the second electronic device being co-located with the target item), the process of the user seeking the target item being essentially that of seeking the second electronic device using the first electronic device.
In one possible implementation, in response to a first operation, the first electronic device displays location information of the second electronic device, from which the user looks for the second electronic device.
In some examples, the first electronic device detects a measurement signal transmitted by the second electronic device, the measurement signal being used to determine a location of the second electronic device.
The first electronic device may continue to detect the first event after the user begins using the seek function. For example, the first event is periodically detected after the user begins using the lookup function.
According to the technical scheme, the first electronic equipment can detect whether the user uses the first electronic equipment to search the second electronic equipment after the user starts to use the searching function, and the screen is kept bright only when the user is determined to use the first electronic equipment to search the second electronic equipment, so that the user cannot miss the state information of the article due to automatic screen extinction of the first electronic equipment, and the efficiency of the first electronic equipment in displaying the related information in the searching process is improved. In addition, compared with a control method for always keeping the screen of the first electronic equipment always bright, the technical scheme does not keep the screen of the first electronic equipment always bright under the condition that a user does not use the first electronic equipment to search for the second electronic equipment, and is beneficial to reducing the power consumption of the first electronic equipment in the searching process to a certain extent.
With reference to the first aspect, in certain implementations of the first aspect, in a case where a communication connection between the first electronic device and the second electronic device is broken, the target event does not occur; or in the event that the first electronic device is occluded, the target event does not occur; or in the case where the first electronic device is in a stationary state, the target event does not occur; or in the case where the screen is not user-oriented, the target event does not occur.
The first electronic device may include one or more of a proximity light sensor, a gravity sensor, or a motion sensor from which the first electronic device may determine whether a target event has occurred.
In one possible implementation, whether the first electronic device is occluded may be determined from a proximity light sensor of the first electronic device, and when the first electronic device is occluded, the first electronic device may be in a pocket or backpack of the user, and whether the first electronic device is in a stationary state may be determined from a motion sensor of the first electronic device. Thus, either the first electronic device is blocked or the first electronic device is in a stationary state may be understood as not being used by the user.
In one possible implementation, whether the screen is facing the user may be determined from a gravity sensor of the first electronic device.
In some examples, the display direction of the screen of the first electronic device coincides with the direction of gravity, or the screen of the first electronic device faces downward (toward the ground).
According to the technical scheme, the first electronic device can judge whether the user uses the searching function according to the environment where the electronic device is located, the state of the electronic device, the state of communication connection between the first electronic device and the second electronic device and other factors, so that the accuracy of judging the first electronic device is improved, and the efficiency of the first electronic device on screen control is improved to a certain extent.
Under the condition that the first electronic device can determine whether the target event occurs according to various factors, the first electronic device can determine whether the target event occurs according to the results of the respective judgment of the various factors. In one possible implementation, the first electronic device may determine: if the results of the independent judgment of all the factors indicate that the target event occurs, determining that the target event occurs, and if the results of the independent judgment of any of the factors indicate that the target event does not occur, determining that the target event does not occur.
With reference to the first aspect, in certain implementation manners of the first aspect, in a case that a communication connection between the first electronic device and the second electronic device is disconnected for a time period greater than or equal to a first preset time period, the target event does not occur; or if the duration of the first electronic device which is blocked is greater than or equal to the second preset duration, the target event does not occur; or if the time length of the first electronic device in the static state is greater than or equal to the third preset time length, the target event does not occur; or if the time length of the screen which is not facing the user is greater than or equal to the fourth preset time length, the target event does not occur.
The communication connection state of the electronic device, whether it is blocked, whether it is in a stationary state, whether the screen is facing the user, etc., which can be determined from the detection data of some sensors of the electronic device itself. The measurement result of the average value of the physical quantity measured over a period of time is more reliable with respect to the instantaneous value of the physical quantity measured by the sensor.
Here, the setting of the first preset duration may make the conclusion that the communication connection between the first electronic device and the second electronic device is disconnected more reliable, the setting of the second preset duration may make the conclusion that the first electronic device is blocked more reliable, the setting of the third preset duration may make the conclusion that the first electronic device is in a static state more reliable, and the setting of the fourth preset duration may make the conclusion that the first electronic device determines that the screen of the first electronic device is not facing the user more reliable.
In other words, the preset duration is set in the technical scheme to reduce the interference of some sporadic events on the first electronic device in judging whether the target event occurs, improve the accuracy of the first electronic device on screen control, and improve the use experience of the user.
It should be noted that, in the actual processing procedure, the foregoing multiple judging manners may be judged at the same time, that is, in the present technical solution, the first preset duration, the second preset duration, the third preset duration, and the fourth preset duration may have time periods overlapping with each other.
With reference to the first aspect, in certain implementation manners of the first aspect, the first electronic device is in a communication connection state with the second electronic device, and the first electronic device is in one or more of the following states: the first electronic device is in a motion state, the first electronic device is not occluded, or the screen faces the user, and the target event occurs.
In the technical scheme, communication connection is established between the first electronic equipment and the second electronic equipment as a judgment basis, and whether a target event occurs is judged by considering the state of the electronic equipment. The implementation of the technical scheme is beneficial to improving the accuracy of judging whether the target event occurs or not by the first electronic equipment, improving the accuracy of screen control by the first electronic equipment and improving the use experience of a user.
With reference to the first aspect, in certain implementation manners of the first aspect, the first electronic device executes a preset screen-off scheme, including: after the preset duration, the first electronic device executes a preset screen-off scheme, and the preset duration is determined according to the distance between the first electronic device and the second electronic device.
The intention of the user to actually stop using the search function may be different in consideration of the difference in distance of the user from the second electronic device. According to the technical scheme, the first electronic equipment further combines the distance between the first electronic equipment and the second electronic equipment to control screen-off under the condition that the user is determined not to use the searching function, so that the first electronic equipment can control the screen of the electronic equipment in a mode of more fitting the user intention, the efficiency of the first electronic equipment in searching information is improved to a certain extent, and the use experience of the user is improved.
With reference to the first aspect, in some implementation manners of the first aspect, in a case that a distance between the first electronic device and the second electronic device is smaller than a first distance, the first electronic device executes the preset screen-off scheme after a fifth preset duration; executing the preset screen-off scheme by the first electronic device after a sixth preset duration under the condition that the distance between the first electronic device and the second electronic device is larger than or equal to the first distance and smaller than the second distance; executing the preset screen-off scheme by the first electronic device after a seventh preset duration under the condition that the distance between the first electronic device and the second electronic device is larger than or equal to a second distance; wherein the sixth preset time period is longer than the fifth preset time period and the sixth preset time period is longer than the seventh preset time period.
In one possible case, the first electronic device is at a distance from the second electronic device that is less than the first distance, meaning that the user has found the second electronic device; the second electronic device being at a distance from the second electronic device that is greater than the second distance, meaning that the user has actually stopped the search; the distance between the first electronic device and the second electronic device is between the first distance and the second distance, meaning that the user may manually find the second electronic device at one location.
According to the technical scheme, under the condition that the distance between the second electronic equipment and the first electronic equipment is within a certain length range, the time for the first electronic equipment to execute the preset screen-off scheme is prolonged, the first electronic equipment is used for assisting in searching in the process of short-time manual searching in the searching process of the user, the efficiency of the first electronic equipment for displaying related information in the searching process is improved, and therefore the user can find the second electronic equipment quickly.
With reference to the first aspect, in certain implementation manners of the first aspect, in a case where the target event does not occur, if the first electronic device has established a communication connection with the second electronic device, the first electronic device sends indication information to the second electronic device, where the indication information is used to indicate that sending of a measurement signal is stopped, and the measurement signal is used to determine a location of the second electronic device.
Another possibility is that the first electronic device sends a measurement signal to the second electronic device, which processes the received measurement signal and determines the position of the second electronic device. In this case, if the first electronic device and the second electronic device have established a communication connection in the case where the target event does not occur, the first electronic device may stop sending the measurement signal, and correspondingly, the first electronic device may instruct the second electronic device to stop processing the measurement signal.
According to the technical scheme, under the condition that the first electronic device determines that the user does not use the searching function, the first electronic device can instruct the second electronic device to stop sending the measuring signal, so that energy waste caused by sending the measuring signal by the second electronic device is reduced, the service time of the energy source of the second electronic device in a lost state is prolonged, and the probability of successful searching when the user searches the second electronic device next time can be improved.
With reference to the first aspect, in certain implementations of the first aspect, in the event that the target event does not occur, the first electronic device stops sending or processing measurement signals that are used to determine the location of the second electronic device.
According to the technical scheme, under the condition that the first electronic device determines that the user does not use the searching function, the measurement signals sent by the second electronic device are stopped from being sent or processed, so that energy consumption of the first electronic device caused by processing the measurement signals is reduced.
The following detailed description and advantageous effects of the technical solution may refer to the related description of the first aspect, and the following is not repeated for brevity.
In a second aspect, there is provided an electronic device comprising a processor and a memory, the memory having one or more computer programs, the one or more computer programs comprising instructions which, when executed by the processor, are for: searching for a second electronic device in response to an operation of the electronic device searching for the second electronic device; detecting a target event in the process of searching the second electronic equipment; in the event of the target event, the processor is further configured to: keeping the screen always bright; in the event that the target event does not occur, the processor is further configured to: executing a preset screen-off scheme; the target event is used for indicating that a user is using the first electronic device to search for the second electronic device.
With reference to the second aspect, in certain implementations of the second aspect, in a case where the communication connection between the electronic device and the second electronic device is broken, the target event does not occur; or in the event that the electronic device is occluded, the target event does not occur; or in the case where the electronic device is in a stationary state, the target event does not occur; or in the case where the screen is not user-oriented, the target event does not occur.
With reference to the second aspect, in some implementations of the second aspect, in a case where a time period of disconnection of the communication between the electronic device and the second electronic device is greater than or equal to a first preset time period, the target event does not occur; or if the time length of the electronic equipment which is blocked is greater than or equal to the second preset time length, the target event does not occur; or if the time length of the electronic equipment in the static state is greater than or equal to the third preset time length, the target event does not occur; or if the time length of the screen which is not facing the user is greater than or equal to the fourth preset time length, the target event does not occur.
With reference to the second aspect, in certain implementations of the second aspect, the electronic device is in a communicatively connected state with the second electronic device, and the electronic device is in one or more of the following states: the electronic device is in a motion state, the electronic device is not occluded, or the screen faces the user, the target event occurs. .
With reference to the second aspect, in certain implementations of the second aspect, the processor is specifically configured to: after the preset duration, executing a preset screen-off scheme, wherein the preset duration is determined according to the distance between the first electronic device and the second electronic device.
With reference to the second aspect, in certain implementations of the second aspect, in a case where a distance between the electronic device and the second electronic device is smaller than the first distance, the processor is further configured to: executing the preset screen-off scheme after a fifth preset time period; in the case that the distance between the electronic device and the second electronic device is greater than or equal to the first distance and less than the second distance, the processor is further configured to: executing the preset screen-off scheme after a sixth preset duration; in the case that the distance between the first electronic device and the second electronic device is greater than or equal to the second distance, the processor is further configured to: executing the preset screen-off scheme after a seventh preset time period; the sixth preset time length is longer than the fifth preset time length, and the sixth preset time length is longer than the seventh preset time length.
With reference to the second aspect, in certain implementations of the second aspect, in the case where the target event does not occur, if the electronic device has established a communication connection with the second electronic device, the processor is further configured to: and sending indication information to the second electronic device, wherein the indication information is used for indicating that the sending of the measurement signal is stopped, and the measurement signal is used for determining the position of the second electronic device.
With reference to the second aspect, in certain implementations of the second aspect, in the case where the target event does not occur, the processor is further configured to: and stopping sending or processing the measurement signal, wherein the measurement signal is used for determining the position of the second electronic device.
In a third aspect, an apparatus for screen control is provided, including an acquisition unit and a processing unit for: responsive to an operation to begin searching for the second electronic device, beginning searching for the second electronic device; the acquisition unit is used for: detecting a target event in the process of searching the second electronic equipment; in case the target event occurs, the processing unit is further configured to: keeping the screen always bright; in case the target event does not occur, the processing unit is further configured to: executing a preset screen-off scheme; wherein the target event is for indicating that the user is looking for a second electronic device using the screen-controlled device.
With reference to the third aspect, in certain implementations of the third aspect, in a case where a communication connection between the apparatus and the second electronic device is disconnected, the target event does not occur; or in the event that the device is occluded, the target event does not occur; or in the case where the device is in a stationary state, the target event does not occur; or in the case where the screen is not user-oriented, the target event does not occur. .
With reference to the third aspect, in some implementations of the third aspect, in a case where a time period of disconnection of the communication between the apparatus and the second electronic device is longer than or equal to a first preset time period, the target event does not occur; or if the duration of the device which is blocked is greater than or equal to the second preset duration, the target event does not occur; or if the time length of the device in the static state is greater than or equal to the third preset time length, the target event does not occur; or if the time length of the screen which is not facing the user is greater than or equal to the fourth preset time length, the target event does not occur.
With reference to the third aspect, in some implementations of the third aspect, the apparatus is in a communicatively connected state with the second electronic device, and the apparatus is in one or more of the following states: the device is in motion, the device is not occluded, or the screen is facing the user, the target event occurs. .
With reference to the third aspect, in some implementations of the third aspect, the processing module is specifically configured to: after the preset duration, executing a preset screen-off scheme, wherein the preset duration is determined according to the distance between the device and the second electronic equipment.
With reference to the third aspect, in some implementations of the third aspect, in a case where a distance between the apparatus and the second electronic device is smaller than the first distance, the processing module is further configured to: executing the preset screen-off scheme after a fifth preset time period; in the case that the distance between the electronic device and the second electronic device is greater than or equal to the first distance and less than the second distance, the processing module is further configured to: executing the preset screen-off scheme after a sixth preset duration; in the case that the distance between the first electronic device and the second electronic device is greater than or equal to the second distance, the processing module is further configured to: executing the preset screen-off scheme after a seventh preset time period; wherein the sixth preset time period is longer than the fifth preset time period and the sixth preset time period is longer than the seventh preset time period.
With reference to the third aspect, in some implementations of the third aspect, in a case where the target event does not occur, if the apparatus has established a communication connection with the second electronic device, the processing module is further configured to: and sending indication information to the second electronic device, wherein the indication information is used for indicating that the sending of the measurement signal is stopped, and the measurement signal is used for determining the position of the second electronic device.
With reference to the third aspect, in some implementations of the third aspect, in a case where the target event does not occur, the processing module is further configured to: and stopping sending or processing the measurement signal, wherein the measurement signal is used for determining the position of the second electronic device.
In a fourth aspect, there is provided a computer program product comprising computer program code which, when run on a computer, causes the method of the first aspect or any possible implementation thereof to be performed.
In a fifth aspect, there is provided a computer readable storage medium having stored therein computer instructions which, when run on a computer, cause the method of the first aspect or any possible implementation thereof to be performed.
In a sixth aspect, there is provided a chip comprising a processor for reading instructions stored in a memory, which when executed by the processor cause the method of the first aspect or any possible implementation thereof to be performed.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of an electronic device suitable for use in an embodiment of the present application.
Fig. 2 is a schematic diagram of an electronic device software architecture suitable for use in an embodiment of the present application.
Fig. 3 is a schematic diagram of a method for controlling a screen according to an embodiment of the present application.
Fig. 4 is a schematic diagram of another method for controlling a screen according to an embodiment of the present application.
Fig. 5 is a schematic diagram of another method for controlling a screen according to an embodiment of the present application.
Fig. 6 is a schematic diagram of another method for controlling a screen according to an embodiment of the present application.
Fig. 7 to 20 are schematic diagrams of a user interaction interface provided by an embodiment of the present application.
Fig. 21 is a schematic functional structure of an electronic device according to an embodiment of the present application.
Fig. 22 is a schematic functional structure of another electronic device according to an embodiment of the present application.
Fig. 23 is a schematic diagram of a screen control device according to an embodiment of the present application.
Fig. 24 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
The terminology used in the following examples is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include, for example, "one or more" such forms of expression, unless the context clearly indicates to the contrary. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one, two or more than two. The term "and/or" is used to describe an association relationship of associated objects, meaning that there may be three relationships; for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The method provided by the embodiment of the application can be applied to electronic equipment such as mobile phones, tablet computers, wearable equipment, vehicle-mounted equipment, augmented reality (augmented reality, AR)/Virtual Reality (VR) equipment, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal DIGITAL ASSISTANT, PDA) and the like, and the embodiment of the application does not limit the specific type of the electronic equipment.
By way of example, fig. 1 shows a schematic diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an ear-piece interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a user identification (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transfer data between the electronic device 100 and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other electronic devices, such as AR devices, etc.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (WIRELESS FIDELITY, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation SATELLITE SYSTEM, GNSS), frequency modulation (frequency modulation, FM), near field communication (NEAR FIELD communication, NFC), infrared (IR), etc., applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, or the like format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the electronic device 100 is illustrated.
Fig. 2 is a software configuration block diagram of the electronic device 100 according to the embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun rows (Android runtime) and system libraries, and a kernel layer, respectively. The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android runtime include core libraries and virtual machines. Android runtime is responsible for scheduling and management of the android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It should be understood that the technical scheme in the embodiment of the application can be used in Android, IOS, hong Meng and other systems.
The display screen is used as an important entrance for human-computer interaction between a user and the electronic equipment, is often also a main energy consumption module of the electronic equipment, and the control of the bright screen time of the display screen is beneficial to reducing the power consumption of the electronic equipment and prolonging the service time of the electronic equipment.
Taking a scene that a user searches for an article by using the electronic device as an example, the electronic device needs to keep a bright screen to display the position information of the target article so as to help the user search for the article, if the user does not operate the electronic device for a long time, the electronic device can execute the screen-off operation according to the set screen-off scheme. For example, the electronic device sets an automatic off-screen time of 30 seconds, and if the user does not operate the electronic device for 30 seconds during the process of searching for the object, the electronic device automatically turns off the screen. After the screen is turned off, the user cannot acquire the position information of the object to be found from the screen of the electronic device, so that on one hand, the user is not facilitated to find the object quickly, and on the other hand, the frequency of the user operating the electronic device can be increased due to the automatic screen-off operation in the process of finding the object, and the power consumption of the electronic device in the scene can be increased to a certain extent.
Aiming at the problems that the electronic equipment has higher power consumption and the electronic equipment has low efficiency of providing the position information of the article under the scene of searching the article by using the electronic equipment, the application provides a screen control method and the electronic equipment, and the method and the equipment are specifically described below with reference to the embodiment.
Before describing the embodiments of the present application, some terms that may be used in the following embodiments will be first described.
A proximity sensor (proximity sensor), also known as a proximity sensor, is a sensor that detects the presence of an object in the vicinity without requiring contact. Proximity sensors typically emit an electromagnetic field or electromagnetic radiation (e.g., infrared) and observe changes in the electric field or return signal to perform a function. The object that can be detected is called the target of the proximity sensor. Smartphones or similar mobile devices are typically equipped with proximity sensors. The device may wake up from sleep when the usage target is present within the nominal range. The device may ignore the target of the proximity sensor and go back to sleep if it remains unchanged.
The proximity light sensor belongs to a proximity sensor, and can be used for detecting whether a screen of the electronic device is blocked or not for the electronic device such as a mobile phone and the like, for example, in a conversation scene or a scene that the electronic device is in a pocket, the proximity light sensor can detect whether the screen of the electronic device is blocked or not, and the electronic device can control whether the screen is out or not according to a detection result of the proximity light sensor.
The gravity sensor, also called gravity sensor, uses elastic sensitive element to make cantilever type displacement device and uses energy storage spring made of elastic element to drive electric contact to complete the conversion from gravity to electric signal. The gravity sensor works according to the principle of piezoelectric effect, the interior of the gravity sensor can be deformed by the acceleration to form a voltage under the piezoelectric effect, and the acceleration can be converted into a voltage output by establishing a corresponding relation between the acceleration and the voltage.
Motion sensor: is a type of sensor for measuring or detecting motion. Sensors such as accelerometers, gyroscopes and magnetic force sensors may be referred to as motion sensors, and sensor packages formed by these different types of sensors may also be referred to as motion sensors. An accelerometer (accelerometer), also known as an accelerometer, acceleration sensor, etc., is a device that measures acceleration, and it measures its own motion relative to a device that senses remotely. Gyroscopes (gyroscillopes) are a device that is based on the theory of conservation of angular momentum for sensing and maintaining orientation. The gyroscope is mainly composed of a rotor which is arranged on the axle center and can rotate. The gyroscope has a tendency to resist changes in direction once it starts to rotate, due to the angular momentum of the rotor. Magnetometers (magnetometer), also known as magnetometers, gauss meters, refer to various instruments for measuring magnetic fields.
Ambient light sensor (ambient light sensor) refers to a sensor that senses ambient light conditions and informs the processing chip to automatically adjust the backlight brightness of the display.
Ultra-wide band (UWB), which is a wireless personal area network communication technology with low power consumption and high-speed transmission, is suitable for wireless communication requiring high-quality service, and can also be applied to the fields of wireless personal area network, home network connection, short-distance radar and the like.
An off-screen display (always on display, AOD), also known as a rest-screen display, is a way to display information when the electronic device is in a standby state, and depending on the display mode and behavior, this function may also be referred to as "ambient display" or "active display" or the like.
Fig. 3 shows a method for controlling a screen according to the present application, in which after a user starts to search for a second electronic device by using a first electronic device, the first electronic device may detect whether the user is using a search function, and execute different screen-off schemes according to the detection result. The first electronic device may specifically execute the method of screen control as follows.
It should be noted that, the following sequence numbers of the respective processes do not mean the execution sequence, and the execution sequence of the respective processes should be determined by the functions and the internal logic thereof.
S301, starting a search function.
In response to a first operation by a user, the first electronic device turns on a lookup function. The search function of the first electronic device may be implemented by various hardware modules, for example, one or more of a UWB module, a bluetooth module, a wireless network (WiFi) module, an ultrasonic module, and the like.
The first electronic device may implement the foregoing search function by receiving and analyzing the measurement signal sent by the second electronic device. The second electronic device may transmit the measurement signal through a variety of hardware modules, such as one or more of a UWB module, a bluetooth module, a wireless network (WiFi) module, an ultrasonic module, and the like.
The second electronic device may be bound to an item (e.g. the second electronic device may be a mobile phone, the second electronic device being placed in a backpack) so that the user may find an item bound to the second electronic device by finding the second electronic device, in other words, the process of finding an item by the user may be essentially understood as the process of finding the second electronic device bound to the item. The item bound to the second electronic device will be referred to as the target item or the item to be found in the following embodiments.
In the case that the first electronic device starts the search function, the first electronic device may display a first interface on which position information of the second electronic device or position information of the target object may be displayed. Here, the location information of the second electronic device may indicate a real-time location of the second electronic device (e.g. in case the first electronic device has established a communication connection with the second electronic device), or the location information of the second electronic device may indicate a historical location of the second electronic device (e.g. in case the first electronic device has not currently established a communication connection with the second electronic device).
The location of the electronic device may be a location relative to another electronic device, for example, a location of the second electronic device 4 meters behind right of the first electronic device (a location of the first electronic device 4 meters in front of left of the second electronic device). Or the location of the electronic device may be a location relative to a common reference frame, for example, the coordinates of the first electronic device are (first longitude, first latitude, first altitude) and the coordinates of the second electronic device are (second longitude, second latitude, second altitude).
The real-time position of the second electronic device may be determined after the first electronic device parses the received measurement signal sent by the second electronic device. Or the real-time position of the second electronic device may be determined by the second electronic device after analyzing according to the measurement information sent by the first electronic device and then sent to the first electronic device.
In the case where the position of the second electronic device is represented by the relative position to the first electronic device, the position information transmitted from the second electronic device to the first electronic device may be the relative position of the second electronic device with respect to the first electronic device or the relative position of the first electronic device with respect to the second electronic device.
The historical position of the second electronic device may be determined in various manners, for example, after detecting the second electronic device by other electronic devices near the second electronic device, the first electronic device reports the current position information of the second electronic device to the server, and the first electronic device obtains the position information of the second electronic device from the server. Or by a network device providing access services through the second electronic device. The method for determining the real-time position and the historical position of the second electronic equipment is not limited.
S302, determining whether a search function is being used.
After the first electronic device displays the location information of the second electronic device, the first electronic device may further display a second interface for indicating path information of the user from the current location to the location of the second electronic device.
The user can start searching the second electronic device according to the path information displayed on the second interface, and the user can search without using the path information displayed on the second interface. In other words, after the execution of S301, after the first electronic device turns on the search function, and before the user turns off the search function manually, the user may actually use the first electronic device to search for the second electronic device, and the user may not actually be searching for the second electronic device for some reasons. That is, whether the user actually performs the search after starting the search function requires further determination.
The first electronic device may determine whether the user actually performs the search, i.e. whether the search function is actually used, in a number of ways. The user actually using the lookup function may also be referred to as the user being using the lookup function, the user not actually using the lookup function may be referred to as the user not being using the lookup function, or the user stopping using the lookup function.
In one possible implementation, the first electronic device may determine that the user is not actually using the lookup function based on the state of the first electronic device.
For example, the first electronic device may determine from the sensors it contains that the user is not actually using the lookup function.
In some examples, the first electronic device includes a proximity light sensor, and when the proximity light sensor indicates that the sensor is occluded, the first electronic device may determine that the user is not actually using the lookup function. Or when the proximity light sensor indicates that the sensor is continuously occluded for a time t1, and t1 is greater than a first time period, the first electronic device may determine that the user is not actually using the lookup function.
In other examples, the first electronic device includes a gravity sensor, and when the gravity sensor indicates that the screen of the first electronic device is not facing the user (e.g., the screen of the first electronic device is facing the same direction as gravity), the first electronic device may determine that the user is not actually using the lookup function. Or when the gravity sensor indicates that the screen of the first electronic device is not facing the user within the time t2, and t2 is greater than the second duration, the first electronic device may determine that the user is not actually using the search function.
Here, a simple explanation of the screen of the electronic device toward the user is provided. When a user uses an electronic device, the user generally needs to look at the screen of the electronic device with his eyes, especially when information needs to be obtained from the screen of the electronic device (for example, the position information of an object to be searched is checked in the searching process), so that the screen of the electronic device faces the user, or the screen of the electronic device faces the face of the user, for example, the screen of the electronic device faces the face of the user, or the screen of the electronic device faces the face of the user (assuming that the face of the user can be regarded as a plane) in a direction within a threshold range, or the screen of the electronic device faces upwards and forms a certain included angle with the horizontal direction, and in this case, the screen of the electronic device faces the user. When the screen direction of the electronic device is not favorable for the user to view, the screen of the electronic device may be regarded as not facing the user, and the user may also be generally regarded as not using the electronic device at this time, for example: the screen direction of the electronic equipment is opposite to the ground, or the screen direction of the electronic equipment is downward and forms a certain included angle with the horizontal direction, etc.
In still other examples, the first electronic device includes a motion sensor, and when the motion sensor indicates that the first electronic device is in a stationary state, the first electronic device may determine that the user is not actually using the lookup function. Or when the motion sensor indicates that the first electronic device is in a static state within t3 time, and t3 is greater than a third duration, the first electronic device may determine that the user does not actually use the search function.
Here, the motion sensor may include one or more of various sensors that detect the motion of the first electronic device, such as an accelerometer, a gyroscope, and a magnetic force sensor.
In still other examples, the first electronic device includes an ambient light sensor, and when the ambient light sensor indicates that the brightness of the environment in which the first electronic device is located is small (e.g., less than a preset brightness), the first electronic device may determine that the user is not actually using the lookup function. Or when the ambient light sensor indicates that the brightness of the environment described by the first electronic device is continuously smaller for a time t4, and t4 is greater than a fourth time period, the first electronic device may determine that the user does not actually use the search function.
The first electronic device can determine whether the user is using the searching function according to the sensors contained in the first electronic device, and the data output of the sensors does not need the user to execute additional operations, so that the method for determining whether the user is using the searching function by the first electronic device is simplified, and the efficiency of executing different screen-off schemes by the control screen of the first electronic device is improved.
In still other examples, the first electronic device includes a plurality of proximity light sensors, gravity sensors, motion sensors, and ambient light sensors, and the first electronic device may determine from the plurality of sensors included that the user is not actually using the lookup function.
For example, the first electronic device contains three sensors simultaneously, and when the three sensors indicate that the user does not actually use the search function at the same time, the first electronic device determines that the user does not actually use the search function. For another example, the first electronic device includes five sensors simultaneously, and when at least two of the five sensors simultaneously indicate that the user does not actually use the search function, the first electronic device determines that the user does not actually use the search function.
In another possible implementation, the first electronic device establishes a communication connection with the second electronic device during a process of searching for the second electronic device by the user. The first electronic device may determine that the user is not actually using the lookup function based on a state of a communication connection between the first electronic device and the second electronic device.
The first electronic equipment can be combined with a plurality of sensors to comprehensively judge whether the user is using the searching function, so that the accuracy of the judgment of the first electronic equipment is improved, and the efficiency of the first electronic equipment on screen control is improved to a certain extent.
In some examples, the first electronic device and the second electronic device may establish a communication connection via bluetooth.
When the communication connection between the first electronic device and the second electronic device is disconnected after being established, the first electronic device may determine that the user has not actually used the lookup function. Or when the communication connection between the first electronic device and the second electronic device is disconnected for t5 time after the communication connection is established, and t5 is greater than the fifth time period, the first electronic device may determine that the user does not actually use the search function.
The first electronic device can determine whether the user is using the search function according to the communication condition with the second electronic device, and under the condition that the first electronic device lacks the sensor or cannot be judged according to the result of the sensor, the judgment can be performed by utilizing the mode provided in the scheme, so that the accuracy of the judgment of the first electronic device is improved, and the efficiency of the first electronic device on screen control is improved.
The first electronic device may further obtain a duration of disconnection of the communication connection between the first electronic device and the second electronic device, so as to determine whether the user is using the search function. For some sporadic events, the communication connection between the first electronic device and the second electronic device may be disconnected, and in the technical scheme, the influence of the sporadic events on the accuracy of the judgment result of the first electronic device is reduced by setting the target duration.
In one possible implementation, the first electronic device may determine that the user is using the lookup function based on a state of the first electronic device.
For example, the first electronic device may determine from its included sensors that the user is using the find function.
In some examples, the first electronic device includes one or more of a proximity light sensor, a gravity sensor, a motion sensor, an ambient light sensor, etc., and the first electronic device determines that the user is using the lookup function when all of the sensors included in the first electronic device indicate that the user is using the lookup function. Or in the event that a majority of all sensors contained by the first electronic device (e.g., three of the four sensors) indicate that the user is using the lookup function, the first electronic device determines that the user is using the lookup function.
For the detection result of one type of sensor, the electronic device may determine that the user is using the search function as follows.
For a proximity light sensor, when the proximity light sensor indicates that the sensor is not occluded, the first electronic device may determine that the user is using a lookup function. Or when the proximity light sensor indicates that the sensor is continuously occluded for a time t1 and t1 is less than or equal to the first duration, the first electronic device may determine that the user is using the lookup function.
For the gravity sensor, when the gravity sensor indicates that the screen of the first electronic device is facing the user, the first electronic device may determine that the user is using the find function. Or when the gravity sensor indicates that the screen of the first electronic device is not facing the user within the time t2, and t2 is less than or equal to the second duration, the first electronic device may determine that the user is using the search function.
For a motion sensor, when the motion sensor indicates that the first electronic device is in a motion state, the first electronic device may determine that the user is using a seek function. Or when the motion sensor indicates that the first electronic device is in a stationary state for a time t3, and t3 is less than or equal to a third duration, the first electronic device may determine that the user is using the seek function.
Here, the motion sensor may include one or more of various sensors that detect the motion of the first electronic device, such as an accelerometer, a gyroscope, and a magnetic force sensor.
For an ambient light sensor, when the ambient light sensor indicates that the first electronic device is in an environment of sufficiently high brightness (e.g., greater than a preset brightness), the first electronic device may determine that the user is using the lookup function. Or when the ambient light sensor indicates that the brightness of the environment described by the first electronic device is less for a time t4, and t4 is less than or equal to the fourth time period, the first electronic device may determine that the user is using the find function.
In another possible implementation, the first electronic device establishes a communication connection with the second electronic device during a process of searching for the second electronic device by the user. The first electronic device may determine that the user is using the lookup function based on a state of a communication connection between the first electronic device and the second electronic device.
In some examples, the first electronic device and the second electronic device may establish a communication connection via bluetooth.
When the communication connection between the first electronic device and the second electronic device remains connected, the first electronic device may determine that the user is using the lookup function. Or when the communication connection between the first electronic device and the second electronic device is broken for a time t6 after the communication connection is established, and t6 is less than or equal to the sixth duration, the first electronic device may determine that the user is using the search function.
S303, in the case that the user is using the search function, the first electronic device keeps the screen always bright.
In the event that the first electronic device determines that the user is using the seek function, the first electronic device keeps the screen always on.
In one possible implementation, in a case where it is determined that the user is using the search function, the first electronic device displays a first prompt control for prompting the user that the screen will remain normally on, and in response to a confirmation operation by the user, the first electronic device performs an operation of setting the screen to be normally on.
Optionally, under the condition that the user is using the search function, the first electronic device displays a second prompt control, where the second prompt control is used to prompt the user to switch to a search mode of voice broadcasting the position information of the second electronic device, and in response to the confirmation operation of the user, the first electronic device executes the operation of voice broadcasting the position information of the second electronic device.
The related information of the searching process is provided in a voice broadcasting mode, so that the screen-lighting time of the electronic equipment in the searching process can be shortened, and the power consumption of the electronic equipment can be saved.
Optionally, under the condition that the user is using the search function, the first electronic device detects whether the earphone is connected, and under the condition that the first electronic device detects that the earphone is connected, the first electronic device displays a third prompt control, the third prompt control is used for prompting the user to switch to a search mode of voice broadcasting the position information of the second electronic device, and the first electronic device executes the operation of voice broadcasting the position information of the second electronic device in response to the confirmation operation of the user.
The first electronic equipment can actively provide the function of starting the voice broadcasting, thereby being beneficial to improving the probability of using the function by a user and reducing the power consumption of the electronic equipment in the searching process.
Optionally, under the condition that the user is using the search function, the first electronic device displays a third prompt control, and the third prompt control is used for prompting the user to switch to the position information of the second electronic device on the screen, and in response to the confirmation operation of the user, the first electronic device indicates the operation of switching to the position information of the second electronic device on the screen.
The related information of the searching process is provided in a screen-off display mode, so that the screen-on time of the electronic equipment in the searching process can be shortened, and the power consumption of the electronic equipment can be saved.
Optionally, in the case that the first electronic device determines that the user is using the search function, before the setting screen is always on, it is determined whether the first electronic device sets a preset screen-off scheme, and a detailed description of the preset screen-off scheme is referred to S304.
S304, under the condition that the user stops using the searching function, the electronic equipment executes a preset screen-off scheme.
The preset screen-off scheme may refer to a screen-off scheme that the first electronic device has set before the user performs the search process, for example, the preset screen-off scheme may be: if the user does not operate the first electronic device within 30 seconds, the first electronic device is off screen. For another example, the preset screen-off scheme may be: if the user opens a "video" application, the first electronic device remains on screen. For another example, the preset screen-off scheme may be: if the user clicks the power key, the first electronic device is off screen.
It should be noted that, the preset screen-off scheme of the first electronic device may also be used to keep the first electronic device on the screen, but the preset screen control method for keeping the screen on is different from the method for controlling the screen to keep the screen on by the first electronic device when the user is determined to use the search function.
And under the condition that the first electronic equipment determines that the user does not actually use the searching function, the first electronic equipment executes a preset screen-off scheme.
The first electronic device may execute a preset screen-off scheme after a preset duration, where the preset duration may be determined according to a distance between the first electronic device and the second electronic device.
In some examples, if the distance between the first electronic device and the second electronic device is less than the first distance, the first electronic device executes a preset screen-off scheme after a first time period; if the distance between the first electronic device and the second electronic device is greater than or equal to the first distance and smaller than the second distance, the first electronic device executes a preset screen-off scheme after the second duration; if the distance between the first electronic device and the second electronic device is greater than or equal to the second distance, the first electronic device executes a preset screen-off scheme after a third duration; wherein the second time period may be longer than the first time period and the second time period is longer than the third time period.
Further limiting the distance between the second electronic device and the first electronic device within a certain length range, prolonging the time of the first electronic device to execute the preset screen-off scheme, facilitating the auxiliary searching by the first electronic device in the short-time manual searching process in the searching process of the user, improving the efficiency of the first electronic device in displaying the related information in the searching process, and further facilitating the user to quickly find the second electronic device.
In some examples, in the event that the first electronic device establishes a communication connection with the second electronic device, the sending of the measurement signal between the first electronic device and the second electronic device may be stopped if the first electronic device determines that the user is stopped using the lookup function.
A possible scenario is that the first electronic device receives a measurement signal sent by the second electronic device, which the first electronic device determines the position of the second electronic device by processing the measurement signal. In this case, the first electronic device may transmit first indication information for indicating that the second electronic device stops transmitting the measurement signal for determining the location information of the second electronic device to the second electronic device. Accordingly, the first electronic device may stop processing the measurement signal.
Another possibility is that the first electronic device sends a measurement signal to the second electronic device, the second electronic device determines the position of the second electronic device according to the received measurement signal, and sends the determined position information of the second electronic device to the first electronic device. In this case, the first electronic device may stop transmitting the aforementioned measurement signal. Accordingly, the first electronic device may send second indication information to the second electronic device, which may be used to instruct the second electronic device to stop processing the measurement signal.
If the measurement signal is processed by the second electronic device and the position of the second electronic device is determined, the second electronic device may be the position of the second electronic device relative to the first electronic device or the position of the first electronic device relative to the second electronic device.
The first electronic device can instruct the second electronic device to stop sending the measurement signal or stop processing the measurement signal, so that energy waste caused by sending the measurement signal or processing the measurement signal of the second electronic device is reduced, the service time of the energy source of the second electronic device in a lost state is prolonged, and the probability of successful finding when a user finds the second electronic device next time can be improved.
Under the condition that the first electronic device determines that the user does not use the searching function, the first electronic device stops processing the measurement signals sent by the second electronic device or stops sending the measurement signals, so that the energy consumption caused by the fact that the first electronic device sends or processes the measurement signals is reduced.
Fig. 4 is a diagram of another method for controlling a screen according to an embodiment of the present application. In this embodiment, the first electronic device includes a proximity light sensor, a gravity sensor, and a motion sensor, and the first electronic device determines whether the user is using the search function based on the status of these sensors. The first electronic device and the second electronic device can be in communication connection through Bluetooth.
It should be noted that, the following sequence numbers of the respective processes do not mean the execution sequence, and the execution sequence of the respective processes should be determined by the functions and the internal logic thereof.
S401, the first electronic device determines a communication link connection state.
Specifically, the first electronic device may determine whether the communication link with the second electronic device is in a connected state, and in a case where the communication link between the first electronic device and the second electronic device is disconnected, the first electronic device may further determine a length of time for which the communication link is disconnected.
Whether the communication link between two electronic devices is in a connected state may be determined by a variety of factors, for example, in this embodiment, the first electronic device and the second electronic device are connected through bluetooth, whether the bluetooth link is in a connected state is related to a distance between the two electronic devices, and when the two electronic devices are sufficiently close (for example, less than ten meters), the bluetooth link may be in a connected state; when two electronic devices are far apart (e.g., greater than ten meters), the bluetooth connection link may be in a disconnected state.
Optionally, before determining the connection state of the communication link between the first electronic device and the second electronic device, the first electronic device may determine whether the first electronic device has set a preset off-screen scheme.
The preset screen-off scheme may refer to a screen-off scheme that the first electronic device has set before the user performs the search process, for example, the preset screen-off scheme may be: if the user does not operate the first electronic device within 30 seconds, the first electronic device is off screen. For another example, the preset screen-off scheme may be: if the user opens a "video" application, the first electronic device remains on screen. For another example, the preset screen-off scheme may be: if the user clicks the power key, the first electronic device is off screen.
Under the condition that the first electronic device sets the screen-off scheme that the screen is always on, the steps of S402 and below can be omitted, and the user keeps the screen always on in the process of using the search function. In the case that the first electronic device sets other off-screen schemes (i.e., if the user does not operate the first electronic device after a period of time, the first electronic device may further determine whether the user is using the search function according to the following steps.
The first electronic device may also determine whether the first electronic device sets the preset screen-off scheme after determining whether the user is using the search function, that is, in S401, the first electronic device determines whether the preset screen-off scheme is optional.
In one possible implementation manner, if the first electronic device detects that the communication connection between the first electronic device and the second electronic device is disconnected, the first electronic device determines that the user stops using the search function, and then executes a preset screen-off scheme; if the first electronic device detects that the first electronic device and the second electronic device communication connection remain connected during the detection, the first electronic device will further determine if the user is using the find function in connection with step S402 and thereafter.
In another possible implementation manner, the first electronic device detects a time length t5 of disconnection of the communication connection between the first electronic device and the second electronic device, and if the time length t5 is greater than a fifth time length, the first electronic device determines that the user stops using the search function, so as to execute a preset screen-off scheme; if the time period t5 is less than or equal to the fifth time period, the first electronic device will further determine whether the user is using the search function in connection with step S402 and subsequent steps.
S402, the first electronic device reads the proximity light sensor information.
In particular, the first electronic device may determine whether the sensor is occluded from the proximity of the light sensor.
Taking the first electronic device as a mobile phone as an example, in general, the proximity light sensor may be located on one side of a display screen of the mobile phone, or the proximity light sensor may be located on an upper portion of a mobile phone frame near a position of a mobile phone receiver. Therefore, when the user uses the mobile phone searching function, the user holds the mobile phone and makes the screen of the mobile phone face the user, and the proximity light sensor of the mobile phone is not blocked. Conversely, where the proximity light sensor of the handset indicates that it is occluded, the user is more likely not using the look-up function of the handset, e.g., the user places the handset in a pocket or the user places the handset screen on the desktop toward the desktop.
When the proximity light sensor of the first electronic device is occluded, the first electronic device may determine that the user is not using the lookup function. In this case, if the first electronic device has acquired the preset screen-off scheme set by the first electronic device in S401, the first electronic device may control the screen to stop according to the preset screen-off scheme. If the first electronic device does not acquire the preset screen-off scheme of the first electronic device, the first electronic device may execute the preset screen-off scheme after acquiring the preset screen-off scheme.
In the case where the first electronic device determines that the user is not using the search function, if it is determined in S401 that the communication link between the first electronic device and the second electronic device is in a connected state, the first electronic device may further transmit, to the second electronic device, indication information for instructing the second electronic device to stop transmitting a measurement signal for determining location information of the second electronic device.
In case the first electronic device determines that the user is not using the search function, the first electronic device may also stop processing the measurement signal for determining the location information of the second electronic device.
In one possible implementation manner, if the first electronic device detects that the proximity light sensor of the first electronic device is blocked, the first electronic device determines that the user stops using the search function, and then executes a preset screen-off scheme; if the first electronic device detects that the proximity light sensor of the first electronic device is not occluded during detection, the first electronic device will further determine if the user is using the find function in connection with step S403 and following.
In another possible implementation manner, the first electronic device detects that the proximity light sensor of the first electronic device is continuously blocked in a time t1, and if the time t1 is longer than a first duration, the first electronic device determines that the user stops using the search function, and further executes a preset screen-off scheme; if the time length t1 is less than or equal to the first time length, the first electronic device will further determine whether the user is using the search function in connection with step S403 and following.
S403, the first electronic device reads the gravity sensor information.
Specifically, the first electronic device may determine whether a screen of the first electronic device faces the user according to the gravity sensor.
Taking the first electronic device as a tablet personal computer as an example, the plane of the tablet personal computer screen corresponds to the length direction and the width direction, and the direction perpendicular to the tablet personal computer screen is the thickness direction. The gravity sensor may determine gravitational acceleration in the three directions to determine a pose of the first electronic device. For example, if the acceleration in the thickness direction of the tablet computer is a gravitational acceleration, the plane on which the screen of the first electronic device is located may be considered to be perpendicular to the gravitational direction. Further, if the acceleration in the direction of the outside of the screen in the thickness direction of the tablet computer is the gravitational acceleration, it may be determined that the screen display direction of the tablet computer is parallel to the gravitational direction, or, in other words, the screen of the tablet computer is facing the ground.
When a user uses the tablet personal computer to find a target object, the user is in a standing state, and the screen of the tablet personal computer faces the user, in which case the acceleration in the length direction or the width direction or in one direction between the length direction and the width direction of the tablet personal computer is a gravitational acceleration. The value of the acceleration of the tablet computer in the thickness direction is small or approaches zero. That is, if the value of the acceleration of the tablet in the thickness direction is small or approaches zero, it may be determined that the screen of the tablet faces the user and the user is in a standing state, thereby indicating that the user is using the search function of the tablet, whereas if the value of the acceleration of the tablet in the thickness direction is large or approaches the gravitational acceleration, it may be determined that the screen of the tablet does not face the user or the user is not in a standing state, thereby determining that the user does not use the search function of the tablet.
When the first electronic device determines that the user is not using the search function according to the gravity sensor, if the first electronic device has acquired the preset screen-off scheme set by the first electronic device in S401, the first electronic device may control the screen to stop according to the preset screen-off scheme. If the first electronic device does not acquire the preset screen-off scheme of the first electronic device, the first electronic device may execute the preset screen-off scheme after acquiring the preset screen-off scheme.
In the case where the first electronic device determines that the user is not using the search function, if it is determined in S401 that the communication link between the first electronic device and the second electronic device is in a connected state, the first electronic device may further transmit, to the second electronic device, indication information for instructing the second electronic device to stop transmitting a measurement signal for determining location information of the second electronic device.
In case the first electronic device determines that the user is not using the search function, the first electronic device may also stop processing the measurement signal for determining the location information of the second electronic device.
In one possible implementation manner, if the first electronic device detects that the screen of the first electronic device is not oriented to the user, the first electronic device determines that the user stops using the search function, and then executes a preset screen-off scheme; if the first electronic device detects that the screen of the first electronic device is facing the user, the first electronic device will further determine if the user is using the find function in connection with S404.
In another possible implementation manner, the first electronic device detects that the screen of the first electronic device is not facing the user continuously in the time t2, and if the time t2 is longer than the second time, the first electronic device determines that the user stops using the search function, and further executes a preset screen-off scheme; if the length of time t2 is less than or equal to the second duration, the first electronic device will further determine if the user is using the find function in connection with S404.
S404, the first electronic device reads the motion sensor information.
Specifically, the first electronic device may determine, according to the motion sensor, whether the first electronic device is in a motion state.
In this embodiment, the motion sensor including an acceleration sensor, a gyroscope, and a magnetic force sensor is described as an example. The accelerometer may be used to test acceleration of the first electronic device in a certain linear direction to determine if the first electronic device is moving in the linear direction. The gyroscope may be used to determine the angular velocity of the first electronic device rotating about a straight line direction, and thus determine whether the first electronic device is rotating about the straight line direction. The magnetic force sensor may be used to measure the magnetic field of the earth, which in turn may determine the trajectory of the movement of the first electronic device.
The output results of the acceleration sensor, the gyroscope and the magnetic force sensor are integrated, and the first electronic equipment can be determined to be in a motion state by performing data correction and other processing. Whether the first electronic device is in motion may indirectly reflect whether the user is using the seek function.
When the first electronic device determines that the user is not using the search function according to the motion sensor, if the first electronic device has acquired the preset screen-off scheme set by the first electronic device in S401, the first electronic device may control the screen to stop according to the preset screen-off scheme. If the first electronic device does not acquire the preset screen-off scheme of the first electronic device, the first electronic device may execute the preset screen-off scheme after acquiring the preset screen-off scheme.
In one possible implementation manner, if the first electronic device detects that the first electronic device is in a static state, the first electronic device determines that the user stops using the search function, and then executes a preset screen-off scheme; if the first electronic device detects that the first electronic device is in a motion state, and the determination results of each step in S401, S402, and S403 indicate that the user is using the search function, the first electronic device keeps the screen always bright.
In another possible implementation manner, the first electronic device detects that the first electronic device is continuously in a static state in a time t3, and if the time t3 is longer than a third time length, the first electronic device determines that the user stops using the search function, so as to execute a preset screen-off scheme; if the time period t3 is less than or equal to the third time period, and the determination results of each of steps S401, S402, and S403 indicate that the user is using the search function, the first electronic device keeps the screen always bright.
And under the condition that the user is not using the searching function, the first electronic device can determine to execute the preset screen-off scheme after the preset duration according to the distance between the first electronic device and the second electronic device.
For example, if the distance between the first electronic device and the second electronic device is smaller than the first distance, the first electronic device executes a preset screen-off scheme after a first time period; if the distance between the first electronic device and the second electronic device is greater than or equal to the first distance and smaller than the second distance, the first electronic device executes a preset screen-off scheme after the second duration; if the distance between the first electronic device and the second electronic device is greater than or equal to the second distance, the first electronic device executes a preset screen-off scheme after a third duration; wherein the second time period may be longer than the first time period and the second time period is longer than the third time period.
In the case where it is determined that the user is not using the search function, if it is determined in S401 that the communication link between the first electronic device and the second electronic device is in a connected state, transmission or processing of the measurement signal between the first electronic device and the second electronic device may be stopped.
A possible scenario is that the first electronic device receives a measurement signal sent by the second electronic device, which the first electronic device determines the position of the second electronic device by processing the measurement signal. In this case, the first electronic device may transmit first indication information for indicating that the second electronic device stops transmitting the measurement signal for determining the location information of the second electronic device to the second electronic device. Accordingly, the first electronic device may stop processing the measurement signal.
Another possibility is that the first electronic device sends a measurement signal to the second electronic device, the second electronic device determines the position of the second electronic device according to the received measurement signal, and sends the determined position information of the second electronic device to the first electronic device. In this case, the first electronic device may stop transmitting the aforementioned measurement signal. Accordingly, the first electronic device may send second indication information to the second electronic device, which may be used to instruct the second electronic device to stop processing the measurement signal.
If the measurement signal is processed by the second electronic device and the position of the second electronic device is determined, the second electronic device may be the position of the second electronic device relative to the first electronic device or the position of the first electronic device relative to the second electronic device. The method of screen control provided by the application is further described below in connection with user interaction with an electronic device during use of a search function by a user. Technical details and advantageous effects of the following embodiments may be referred to the description of the embodiments of fig. 3 and 4, and the following is not repeated for the sake of brevity.
In the following embodiments, a first electronic device is taken as a mobile phone, and a second electronic device is taken as a tag (tag) for example.
Fig. 5 is a schematic diagram of another method for controlling a screen according to an embodiment of the present application, in which a user uses a first electronic device (mobile phone) to search for a second electronic device (tag), and the mobile phone and the tag may be connected through bluetooth.
S5101, in response to the user starting the search function, the mobile phone determines whether the automatic screen-off time is set.
If the system of the handset is set by the user to never go off the screen/sleep, S5202 is performed. Otherwise, S5201 is executed.
S5201, determining whether the Bluetooth connection between the mobile phone and the tag is continuously disconnected.
If the user sets the automatic screen-off time for the mobile phone (namely, the mobile phone automatically shuts off the screen/sleeps after not being operated for a period of time), whether the Bluetooth connection between the mobile phone and the tag is normal or not is detected. If the bluetooth connection is continuously disconnected (for example, at 1 time), S5301 is performed, otherwise S5302 is performed.
S5202, keeping the screen of the mobile phone always bright.
If the system of the mobile phone is set by the user to never go out of screen/sleep, the following operation is not performed and the screen remains always on.
S5301, the screen is turned off according to the automatic screen-off time.
When the Bluetooth connection between the mobile phone and the tag is continuously disconnected for a period of time (for example, deltat 1 time), or the mobile phone Bluetooth cannot be connected to the searched device for a period of time, the mobile phone Bluetooth indicates that searching cannot be performed at the moment, and screen-off is performed according to the screen-off time set by the system.
S5302, it is determined whether the proximity photosensor is continuously blocked.
Detecting whether the proximity light sensor of the mobile phone is blocked, if the proximity light sensor of the mobile phone detects that the blocking is continued for a period of time (for example, Δt2 time), S5401 is executed, otherwise S5402 is executed.
S5401, the screen is turned off according to the automatic screen-off time.
If the proximity light sensor of the mobile phone is detected to be blocked for a period of time (for example, deltat 2 time), and the user is not using the search function (for example, making a call or putting the mobile phone in a pocket or a bag) at this time, the mobile phone is turned off according to the off-screen time set by the system, and the tag is notified to stop sending the measurement signal when the mobile phone is turned off.
S5402 determines whether the cell phone screen is continuously placed downward.
The mobile phone screen facing downwards here means that the screen of the mobile phone faces in the direction of gravity, so that the mobile phone screen facing downwards can be understood as the mobile phone screen facing away from the face of the user.
And detecting the gravity sensor measurement result of the mobile phone, determining whether the mobile phone is placed with the screen downward, if the mobile phone is kept with the screen downward for a period of time (for example, deltat 3 time), executing S5501, otherwise executing S5502.
S5501, the screen is turned off according to the automatic screen-off time.
And detecting a gravity sensor measurement result of the mobile phone, if the mobile phone is downward for a period of time (for example, delta t3 time), and at the moment, indicating that the user is not using the search function, performing screen-off according to the screen-off time set by the system, and informing the tag to stop sending the measurement signal when the screen is off.
S5502, determining whether the mobile phone is continuously in a motion state.
Detecting whether the mobile phone moves or not through a motion sensor of the mobile phone, if the mobile phone is in a motion state continuously, executing S5601, otherwise, executing S5602.
S5601, keep the screen always bright.
According to the judgment result, when the mobile phone screen is not downward and the proximity light sensor is not continuously shielded, bluetooth connection is arranged between the mobile phone and the tag, and when the mobile phone is in a motion state, the user can be considered to use the search function, the screen-lighting state of the mobile phone screen is maintained, and the screen-off time limit set by the system is avoided.
S5602, obtaining a ranging result.
If the mobile phone is in a static state according to the motion sensor, the distance between the mobile phone and the tag can be further obtained, and the screen-off scheme of the mobile phone is determined according to the distance, namely S5701 is executed.
The distance measurement result can refer to the distance between the mobile phone and the tag at a certain moment, and also refer to the average distance between the mobile phone and the tag in a period of time. The method for determining the distance between the mobile phone and the tag may refer to the related content of the embodiments shown in fig. 3 and fig. 4, and will not be repeated here.
S5701, performing screen blanking according to the ranging result.
When the distance between the mobile phone and the tag is smaller than D1, the fact that the distance between the tag and the mobile phone is very close is indicated at the moment, and the user has found the tag, after the distance measurement result lasts for delta t4 time, the screen is turned off according to the screen-off time set by the system, and the tag is informed to stop sending the measurement signal when the screen is turned off.
When the distance between the mobile phone and the tag is larger than D2 (the Bluetooth connection signal between the mobile phone and the tag is weak), the distance between the tag and the mobile phone is far, after the distance measurement result lasts for delta t5 time, the screen is turned off according to the screen-off time set by the system, and the tag is informed to stop sending the measurement signal when the screen is turned off.
When the distance between the mobile phone and the tag is between D1 and D2, after the ranging result lasts for delta t6 time, the mobile phone is turned off according to the off-screen time set by the system, and the tag is informed of stopping sending the measuring signal when the mobile phone is turned off, wherein delta t6 is larger than delta t4 and delta t6 is larger than delta t5.
The time intervals (Δt1, Δt2, Δt3, etc.) involved in the embodiments of the present application may be understood as parameters that may be adjusted and set according to the actual application scenario or the actual application situation of the screen control method provided by the present application. For example, in order to minimize the ineffective use of the electric quantity of the mobile phone, the value of the time interval may be set to be smaller as much as possible, so that the mobile phone tends to determine that the user is not searching for the mobile phone when performing the judgment, so as to shorten the electric quantity consumption caused by long-time screen lighting of the screen of the mobile phone. For example, under the situation of sufficient electric quantity of the mobile phone, the numerical value of the time interval can be set to be larger as much as possible, so that the mobile phone tends to determine that the user is searching by using the mobile phone when judging is performed, the frequency of screen-off of the mobile phone is reduced, and the efficiency of the user for acquiring the search information is improved.
In this embodiment, the mobile phone may determine whether the user is looking for the tag using the mobile phone according to one or more of whether the proximity light sensor is blocked, whether the mobile phone is in a stationary state, whether the mobile phone screen faces the user's face, or whether the bluetooth connection of the mobile phone and the tag is disconnected. When the mobile phone is judged by a plurality of the above judging conditions, the judging sequence of the different judging conditions can be interchanged, and the application is not limited to this. Specifically, the execution sequence of S5201, S5302, S5402 and S5502 in this embodiment may be interchanged, for example, S5502 may be executed before S5201, S5402 may be executed before S5302, and so on. The present embodiment is merely illustrative of one of the judged execution sequences, and for brevity, other execution sequence implementations are not described in detail, and may be executed with reference to the present embodiment.
Fig. 6 is a schematic diagram of another method for controlling a screen according to an embodiment of the present application, in which a user uses a first electronic device (mobile phone) to search for a second electronic device (tag), and the mobile phone is connected to the tag through bluetooth.
S6101, in response to the user starting the search function, determining whether the Bluetooth connection between the mobile phone and the tag is continuously disconnected.
Specifically, it is detected whether the bluetooth connection between the mobile phone and the tag is normal, if the bluetooth connection is continuously disconnected (for example, Δt1 time), S6201 is executed, otherwise S6202 is executed.
S6201, executing the screen-off scheme 1.
When bluetooth fails to connect to the sought device for a period of time, this indicates that the seeking has not been performed. In this case, the mobile phone may control the screen of the mobile phone according to whether the automatic off-screen time is set, i.e., perform the off-screen scheme 1.
Specifically, if the mobile phone sets automatic screen-off time, the screen is turned off according to the automatic screen-off time; if the mobile phone does not set the automatic screen-off time, the mobile phone screen is kept always on (or the brightness of the mobile phone screen is reduced), and the calculation and display of the ranging and angle measurement are stopped.
S6202, it is determined whether the proximity photosensor is continuously occluded.
Detecting whether the proximity light sensor of the mobile phone is blocked, if the proximity light sensor of the mobile phone detects that the blocking is continued for a period of time (for example, Δt2 time), S6301 is executed, otherwise S6302 is executed.
S6301, executing the screen-off scheme 2.
When the proximity light sensor of the handset detects occlusion and continues for a period of time, it is indicated that the user is not using the search function (e.g., making a call or placing the handset in a pocket or bag). In this case, the mobile phone may control the screen of the mobile phone according to whether the automatic off-screen time is set, i.e., perform the off-screen scheme 2.
Specifically, if the mobile phone sets automatic screen-off time, the screen is turned off according to the automatic screen-off time; if the mobile phone does not set the automatic screen-off time, the mobile phone screen is kept always on (or the brightness of the mobile phone screen is reduced), and the calculation and display of the ranging and angle measurement are stopped.
In addition, in the off-screen scheme 2, the mobile phone can also inform the tag to stop sending the measurement signal.
S6302, determining whether the mobile phone screen is continuously placed downward.
The mobile phone screen facing downwards here means that the screen of the mobile phone faces in the direction of gravity, so that the mobile phone screen facing downwards can be understood as the mobile phone screen facing away from the face of the user.
And detecting the gravity sensor measurement result of the mobile phone, determining whether the mobile phone is placed with the screen downward, if the mobile phone is kept with the screen downward for a period of time (for example, deltat 3 time), executing S6401, otherwise executing S6402.
S6401, executing the screen-off scheme 3.
The gravity sensor measurement of the handset is detected and if the handset is turned down for a period of time (e.g., at 3 time), this indicates that the user is not using the look-up function. In this case, the mobile phone may control the screen of the mobile phone according to whether the automatic off-screen time is set, i.e., perform the off-screen scheme 3.
Specifically, if the mobile phone sets automatic screen-off time, the screen is turned off according to the automatic screen-off time; if the mobile phone does not set the automatic screen-off time, the mobile phone screen is kept always on (or the brightness of the mobile phone screen is reduced), and the calculation and display of the ranging and angle measurement are stopped.
In addition, in the off-screen scheme 3, the mobile phone may also notify the tag to stop sending the measurement signal.
S6402, it is determined whether the mobile phone is continuously in a motion state.
Detecting whether the mobile phone moves or not through a motion sensor of the mobile phone, if the mobile phone is in a motion state continuously, executing S6501, otherwise, executing S6502.
S6501, keeping the screen always bright.
According to the judgment result, when the mobile phone screen is not downward and the proximity light sensor is not continuously shielded, bluetooth connection is arranged between the mobile phone and the tag, and when the mobile phone is in a motion state, the user can be considered to use the search function, the screen-on state is maintained, and the screen-off time limit set by the system is avoided.
S6502, obtaining a ranging result.
If the mobile phone is in a static state according to the motion sensor, the distance between the mobile phone and the tag can be further obtained, and the screen-off scheme of the mobile phone is determined according to the distance, namely S6601 is executed.
The distance measurement result can refer to the distance between the mobile phone and the tag at a certain moment, and also refer to the average distance between the mobile phone and the tag in a period of time. The method for determining the distance between the mobile phone and the tag may refer to the related content of the embodiments shown in fig. 3 and fig. 4, and will not be repeated here.
S6601, executing the screen-off scheme 4.
When the distance between the mobile phone and the tag is smaller than D1, the fact that the distance between the tag and the mobile phone is very close is indicated at the moment, and the user has found the tag, after the distance measurement result lasts for delta t4 time, the screen is turned off according to the screen-off time set by the system, and the tag is informed to stop sending the measurement signal when the screen is turned off.
When the distance between the mobile phone and the tag is larger than D2 (the Bluetooth connection signal between the mobile phone and the tag is weak), the distance between the tag and the mobile phone is far, after the distance measurement result lasts for delta t5 time, the screen is turned off according to the screen-off time set by the system, and the tag is informed to stop sending the measurement signal when the screen is turned off.
When the distance between the mobile phone and the tag is between D1 and D2, after the ranging result lasts for delta t6 time, the mobile phone is turned off according to the off-screen time set by the system, and the tag is informed of stopping sending the measuring signal when the mobile phone is turned off, wherein delta t6 is larger than delta t4 and delta t6 is larger than delta t5.
The time intervals (Δt1, Δt2, Δt3, etc.) involved in the embodiments of the present application may be understood as parameters that may be adjusted and set according to the actual application scenario or the actual application situation of the screen control method provided by the present application. For example, in order to minimize the ineffective use of the electric quantity of the mobile phone, the value of the time interval may be set to be smaller as much as possible, so that the mobile phone tends to determine that the user is not searching for the mobile phone when performing the judgment, so as to shorten the electric quantity consumption caused by long-time screen lighting of the screen of the mobile phone. For example, under the situation of sufficient electric quantity of the mobile phone, the numerical value of the time interval can be set to be larger as much as possible, so that the mobile phone tends to determine that the user is searching by using the mobile phone when judging is performed, the frequency of screen-off of the mobile phone is reduced, and the efficiency of the user for acquiring the search information is improved.
In this embodiment, the mobile phone may determine whether the user is looking for the tag using the mobile phone according to one or more of whether the proximity light sensor is blocked, whether the mobile phone is in a stationary state, whether the mobile phone screen faces the user's face, or whether the bluetooth connection of the mobile phone and the tag is disconnected. When the mobile phone is judged by a plurality of the above judging conditions, the judging sequence of the different judging conditions can be interchanged, and the application is not limited to this. Specifically, the execution sequence of S6101, S6202, S6302, and S6402 may be interchanged in this embodiment, for example, S6402 may be executed before S6101, S6302 may be executed before S6202, and so on. The present embodiment is merely illustrative of one of the judged execution sequences, and for brevity, other execution sequence implementations are not described in detail, and may be executed with reference to the present embodiment.
As shown in fig. 7, the first electronic device may be installed with an application for finding items, which may be referred to as a "find" application 701, and in response to a user selecting an operation of the "find" application 701, the first electronic device may display an application interface 801 as shown in fig. 8.
The first electronic device may be further provided with entries for other more search functions, for example, the first electronic device may establish communications with other electronic devices through bluetooth to determine the location of the other electronic devices, where the first electronic device may set the search function entries in a management interface of the bluetooth function.
The application interface 801 shown in fig. 8 may be provided with a device information display area 801B and a map display area 801A, where the device information display area 801B may be used to display information such as names, addresses, and the like of a plurality of devices, which may include a first electronic device and a second electronic device, where the information such as names, addresses, and the like of the first electronic device may be displayed in the form of a first display control 802, and the information such as names, addresses, and the like of the second electronic device may be displayed in the form of a second display control 803. Here, the second electronic device (tag) is placed in the user's backpack, which may be represented by the name of the backpack in the second presentation control 803. The map display area 801A may be used to display the locations of the aforementioned plurality of devices on a map.
The location information of the device may refer to a real-time location of the device or may refer to a historical location of the device. The real-time location of the device may be determined by the search device after the first electronic device and the second electronic device establish a communication connection. The historical location may refer to a location where the second electronic device last uploaded location information.
In response to the user selecting the second presentation control 803, the first electronic device may display a search function interface 901 shown in fig. 9, a plurality of function controls such as a search control 902 may be displayed on the search function interface 901, and in response to the user selecting the search control 902, the first electronic device further displays a search process interface 1001 as shown in fig. 10.
The search function interface 1001 shown in fig. 10 may be provided with a first display area 1002, a second display area 1003, and a third display area 1004, where the first display area 1002 and the second display area 1003 may be used to display prompt information, and these prompt information may be used to prompt a connection state of the second electronic device and the first electronic device or to prompt a relative position of the target object and the first electronic device. The first display area 1002 may display the prompt information in the form of text, and the second display area 1003 may display the prompt information in the form of pictures or animation, or the like.
The third display area 1004 may display a plurality of functionality controls that may be used in the find process, such as a "cancel find" functionality control 1005, a "play ring" functionality control 1008, a first functionality control 1006, a second functionality control 1007, and so on. Wherein the "cancel find" functionality control 1005 may be used to exit the current find process and the "play ring" functionality control 1008 may be used to control the second electronic device to play a ring. The first functionality control 1006 may also be referred to as a "voice broadcast" functionality control 1006, which may be used to assist in searching through a voice broadcast, and may extinguish a screen of the first electronic device during use of the voice broadcast. The second functionality control 1007 may also be referred to as a "screen-off look-up" functionality control, which may be used to cause information such as a look-up status to be displayed when the first electronic device is screen-off. The specific functions of the individual functionality controls will be described in detail below and are not expanded herein.
When the first electronic device displays the find process interface 1001, the first electronic device may begin detecting whether the user is using the find function to determine the off-screen scenario that needs to be performed.
In some examples, when the first electronic device displays the lookup process interface 1001, the first electronic device begins searching for a bluetooth broadcast sent by the second electronic device to attempt to establish a communication connection with the second electronic device.
A possible scenario is that the first electronic device and the second electronic device cannot establish a communication connection, and the first electronic device may display first status information in the first display area 1002, where the first status information is used to indicate that the first electronic device and the second electronic device are not connected.
In the case where the first electronic device and the second electronic device are not connected, the first electronic device may determine whether the user is using the search function through the sensor included therein, and a specific determination manner may be described in connection with the embodiments shown in fig. 3 and 4. If it is determined that the user is using the search function, the first electronic device may keep the screen always on, and if it is determined that the user is not using the search function, the first electronic device may control the screen according to a preset screen-off scheme.
Optionally, the first electronic device may further stop processing the measurement signal sent by the second electronic device in case it is determined that the user is not using the look-up function.
Another possibility is that the first electronic device and the second electronic device may establish a communication connection, and the first electronic device may display the second state information in fig. 11 in the first display area, where the second state information may be used to indicate that the first electronic device and the second electronic device establish the communication connection, and the second state information may also be used to indicate the quality of the communication connection between the two electronic devices, for example, when the quality of the communication connection is poor, the second state information may indicate "signal weak", and when the quality of the communication connection is good, the second state information may indicate "signal strong". The second status information may also be used to prompt the user to perform a different operation.
In the case where the first electronic device and the second electronic device establish a communication connection, the first electronic device may determine whether the user is using the search function through the sensors included in the first electronic device and the states of the communication links of the first electronic device and the second electronic device, and a specific determination manner may be described in relation to the embodiments shown in fig. 3 and 4. If it is determined that the user is using the search function, the first electronic device may keep the screen always on, and if it is determined that the user is not using the search function, the first electronic device may control the screen according to a preset screen-off scheme.
Optionally, in the case that it is determined that the user is not using the search function, the first electronic device may control the screen to execute the preset screen-off scheme after a preset period of time, where the preset period of time may be determined according to a distance between the first electronic device and the second electronic device, and specifically, may be described in connection with the embodiments shown in fig. 3 and fig. 4.
Optionally, in case it is determined that the user is not using the search function, the first electronic device may further send an indication to the second electronic device, the indication being for instructing the second electronic device to stop sending measurement signals for determining the location information of the second electronic device.
Optionally, the first electronic device may further stop processing the measurement signal sent by the second electronic device in case it is determined that the user is not using the look-up function.
In the event that it is determined that the user is using the find function, the first electronic device may also display a first reminder control 1201, shown in fig. 12, which may be used to display first reminder information for prompting that the screen of the first electronic device will remain normally on.
The first prompt control 1201 may also be used to respond to a user operation, for example, if the user selects "confirm" in the first prompt control 1201 shown in fig. 12, the first electronic device performs an operation of keeping the screen normally bright. If the user selects "stop find" in the first prompt control 1201, the first electronic device will execute the preset off screen scheme.
In the event that it is determined that the user is not using the find function, the first electronic device may also display a second prompt control 1301, shown in fig. 13, which may be used to display second prompt information for prompting that the screen of the first electronic device will execute the preset off-screen scheme, e.g., that the screen will go off after 30 seconds of no operation.
The second prompt control 1301 may also be used to respond to user operations, for example, if the user selects "confirm" in the second prompt control 1301 shown in fig. 13, the first electronic apparatus executes a preset off-screen scheme. If the user selects "keep bright" in the second prompt control 1301, the first electronic device will keep the screen normally bright.
When the user uses the search function and gradually approaches the second electronic device, the first electronic device may display third status information 1401 as shown in fig. 14, the third status information 1401 being used to prompt that the target object has been approached. Based on the prompt, the user may further determine the location of the target item.
The functionality of the first functionality control 1006 and the second functionality control 1007 in the third display region 1004 is further described below.
When the first electronic device detects that the user is using the search function, the first electronic device may further detect whether the first electronic device is connected to an audio device such as a headset. As shown in fig. 15, in the case where the first electronic device detects that the first electronic device is connected to the audio device, the first electronic device may display a third prompting control 1601 shown in fig. 16, where the third prompting control 1601 may be used to prompt the user to turn on the voice broadcast for searching.
The third alert control 1601 may also be configured to respond to a user operation, for example, if the user selects "on" in the third alert control 1601 shown in fig. 16, the first electronic device may turn on a voice broadcast for searching. Optionally, the first electronic device may also extinguish the screen of the first electronic device while performing voice broadcast. If the user selects "do not turn on" in the third prompt control 1601 shown in fig. 16, the first electronic device continues to highlight the find procedure interface 1001.
The user may also turn on the voice broadcast function by selecting the first functionality control 1006. In response to a user selecting the first functionality control 1006, the first electronic device may display a fourth prompt control 1701 as shown in fig. 17, where the fourth prompt control 1701 may be used to prompt the find function to switch to the voice broadcast mode while the screen is extinguished. If the first electronic device detects that a plurality of available audio devices exist, the first electronic device can preferentially call the audio device currently in use for voice broadcasting.
The fourth prompt control 1701 may also be configured to respond to a user operation, for example, if the user selects "confirm" in the fourth prompt control 1701 shown in fig. 17, the first electronic device performs the foregoing voice broadcast and extinguishes the screen operation; if the user selects "cancel" in the fourth prompt control 1701, the first electronic device continues to highlight the find procedure interface 1001.
Under the condition that the first electronic device detects that the user is using the search function, the first electronic device can further detect whether the first electronic device can start the off-screen display. In the case where the first electronic device may turn on the off screen display, the first electronic device may display a fifth prompt control 1801 as shown in fig. 18, where the fifth prompt control 1801 may be used to prompt that an off screen search may be turned on to save power.
The fifth prompt control 1801 may also be used to respond to a user operation, for example, if the user selects "confirm" in the fifth prompt control shown in fig. 18, the first electronic device extinguishes the screen and displays the search status information in the off-screen state; if the user selects cancel in the fifth prompt control, the first electronic device does not execute the operation, and continues to display information such as the search state and the like in a bright screen mode.
The user may also turn on the quench search function by selecting the second functionality control 1007. In response to the user selecting the second functionality control 1007, the first electronic device may display a sixth reminder control 1901 as shown in fig. 19, where the sixth reminder control 1901 may be used to display reminder information for prompting the user to switch to an off screen display, to find that information such as a status will be displayed by the off screen.
The sixth reminder control 1901 can also be used to switch to an off screen display in response to a user operation, for example, if the user selects "confirm" in the sixth reminder control 1901 shown in FIG. 19; if the user selects "cancel" in the sixth reminder control 1901, the first electronic device can continue to be displayed by the light screen.
Fig. 20 shows one possible user interface 2001 for a first electronic device quench search, which user interface 2001 may be referred to as quench search interface 2001. The off-screen searching interface 2001 can be used for displaying searching state information and path prompt information, and the off-screen searching interface 2001 can be further provided with a searching function control. For example, as shown in fig. 20, the off-screen searching interface 2001 may be provided with a first off-screen searching function control 2002 and a second off-screen searching function control 2003, where the first off-screen searching function control 2002 may be used to control the first electronic device to send indication information to the second electronic device, so that the second electronic device plays a ringtone. A second quench search functionality control 2003 may be used to exit the current search process.
It should be understood that, in the above method embodiment, the sequence number of each process does not mean the execution sequence, and the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application.
As shown in fig. 21, a functional architecture diagram of a first electronic device in the foregoing embodiment, which may also be referred to as a receiving device 2100.
The receiving device 2100 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a television, or the like, which is provided with a display module. As shown in fig. 21, the receiving apparatus 2100 may include at least: one or more ranging goniometer modules 2101, one or more transceivers 2102, one or more processors 2103, one or more memories 2104, and one or more displays 2105. The memory 2104 is used to store instructions. The processor 2103 may invoke the instructions in the memory 2104 to cause the communication device to perform the associated method. The processor 2103 and the range and angle module 2101, transceiver 2102, memory 2104, and display 2105 may be connected via a bus to enable data exchange. The ranging and angle measuring module 2101, the transceiver 2102 and the display 2105 are controlled by the processor 2103 to realize the screen control method provided by the embodiment of the application.
As shown in fig. 22, a functional architecture diagram of a second electronic device in the foregoing embodiment, which may also be referred to as a transmitting device 2200.
The sending device 2200 may be a smart phone, tablet, notebook, tag, etc. with a ranging and angle measuring module. As shown in fig. 22, the transmission apparatus 2200 may include at least: one or more ranging goniometer modules 2201, one or more transceivers 2202, one or more processors 2203, and one or more memories 2204. The memory 2204 is used for storing instructions. The processor 2203 may invoke the instructions in the memory 2204 to cause the communication device to perform the associated method. The processor 2203 is connected to the range finder module 2201, the transceiver 2202 and the memory 2204 via a bus for data exchange. The ranging and angle measurement module 2201 and the transceiver 2202 implement the screen control method provided by the embodiment of the application under the control of the processor 2203.
Illustratively, the transceiver 2102 of the handset may communicate with the transceiver 2202 of the tag for time-tick and information interaction. the distance and angle measurement module 2201 of the tag sends a measurement signal, and the distance and angle information is calculated after the distance and angle measurement module 2101 of the mobile phone receives the measurement signal of the tag and is displayed in real time through the display 2105 of the mobile phone.
Based on the same inventive concept as the above method embodiment, the present application also provides a screen control device, which may have the function of the first electronic device (or mobile phone) in the above method embodiment, and may be used to perform the steps performed by the function of the first electronic device (or mobile phone) in the above method embodiment. The functions may be implemented by hardware, or may be implemented by software or hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
As shown in fig. 23, the screen control device 2300 may include a communication module 2310 and a processing module 2320, the above communication module 2310 and the processing module 2320 being coupled to each other.
The communication module 2310 may be used to support the screen control device 2300 for communication, such as performing a sending and/or receiving action performed by a first electronic device in communicating with a second electronic device, etc.
The processing module 2320 may be configured to support the screen control device 2300 to perform the processing actions in the method embodiments described above, for example, to perform the processing actions performed by the first electronic device or the mobile phone in S301, S302, S401, S402, or the like in fig. 3 and fig. 4.
Optionally, the screen control device 2300 may further include a memory module 2330 for storing program codes and data of the screen control device 2300.
Fig. 24 is a schematic block diagram of an electronic device 2400 provided by an embodiment of the present application. As shown, the electronic device 2400 includes: at least one processor 2410 and a transceiver 2420. The processor 2410 is coupled to the memory for executing instructions stored in the memory to control the transceiver 2420 to transmit signals and/or receive signals.
Optionally, the electronic device 2400 further includes a memory 2430 for storing instructions.
In some embodiments, the processor 2410 and the memory 2430 can be combined into one processing device, where the processor 2410 is used to execute program code stored in the memory 2430 to implement the functions described above. In particular, the memory 2430 can also be integrated into the processor 2410 or independent of the processor 2410.
In some embodiments, transceiver 2420 may include a receiver (or receiver) and a transmitter (or transmitter).
The transceiver 2420 may further include an antenna, the number of which may be one or more. Transceiver 2420 may be a communications interface or interface circuitry.
When the electronic device 2400 is a chip, the chip includes a transceiver unit and a processing unit. The receiving and transmitting unit can be an input and output circuit or a communication interface; the processing unit may be an integrated processor or microprocessor or an integrated circuit on the chip.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method. To avoid repetition, a detailed description is not provided herein.
The embodiment of the application also provides a computer readable storage medium, on which computer instructions for implementing the method executed by the electronic device in the above-mentioned method embodiment are stored.
For example, the computer program, when executed by a computer, enables the computer to implement the method performed by the electronic device in the method embodiments described above.
The explanation and beneficial effects of the related content in any of the above-mentioned devices can refer to the corresponding method embodiments provided above, and are not repeated here.
It should be appreciated that the processor referred to in the embodiments of the present application may be a central processing unit (central processing unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application Specific Integrated Circuits (ASICs), off-the-shelf programmable gate arrays (field programmable GATE ARRAY, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It should also be understood that the memory referred to in embodiments of the present application may be volatile memory and/or nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an erasable programmable ROM (erasable PROM), an electrically erasable programmable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM). For example, RAM may be used as an external cache. By way of example, and not limitation, RAM may include the following forms: static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate synchronous dynamic random access memory (double DATA RATE SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCHLINK DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).
It should be noted that when the processor is a general purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, the memory (storage module) may be integrated into the processor.
It should also be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method of screen control, characterized by being applied to a first electronic device, the first electronic device comprising a screen, the method comprising:
responsive to an operation to begin searching for a second electronic device, the first electronic device begins searching for the second electronic device;
In the process that the first electronic equipment searches the second electronic equipment, the first electronic equipment detects a target event;
In the case of the occurrence of the target event, the first electronic device keeps the screen always bright;
Under the condition that the target event does not occur, the first electronic equipment executes a preset screen-off scheme;
The target event is used for indicating that a user is using the first electronic device to search for the second electronic device.
2. The method according to claim 1, characterized in that:
In the event that the communication connection between the first electronic device and the second electronic device is broken, the target event does not occur; or alternatively
In the case that the first electronic device is occluded, the target event does not occur; or alternatively
The target event does not occur in the case that the first electronic device is in a stationary state; or alternatively
In the case where the screen is not user-oriented, the target event does not occur.
3. The method according to claim 1, characterized in that:
the target event does not occur when the communication connection between the first electronic device and the second electronic device is disconnected for a time period longer than or equal to a first preset time period; or alternatively
When the duration of the first electronic device which is blocked is greater than or equal to a second preset duration, the target event does not occur; or alternatively
When the time length of the first electronic equipment in the static state is greater than or equal to a third preset time length, the target event does not occur; or alternatively
And under the condition that the time length of the screen which is not facing the user is greater than or equal to a fourth preset time length, the target event does not occur.
4. The method according to claim 1, characterized in that:
the first electronic equipment and the second electronic equipment are in a communication connection state, and the first electronic equipment is in one or more of the following states: the first electronic equipment is in a motion state, the first electronic equipment is not blocked, or the screen faces to a user, and the target event occurs.
5. The method according to any one of claims 1 to 4, wherein the first electronic device performs a preset off-screen scheme, comprising:
After a preset duration, the first electronic device executes a preset screen-off scheme, and the preset duration is determined according to the distance between the first electronic device and the second electronic device.
6. The method of claim 5, wherein the step of determining the position of the probe is performed,
Executing the preset screen-off scheme by the first electronic device after a fifth preset duration under the condition that the distance between the first electronic device and the second electronic device is smaller than a first distance;
Executing the preset screen-off scheme by the first electronic device after a sixth preset duration under the condition that the distance between the first electronic device and the second electronic device is larger than or equal to a first distance and smaller than a second distance;
Executing the preset screen-off scheme by the first electronic device after a seventh preset duration under the condition that the distance between the first electronic device and the second electronic device is larger than or equal to a second distance;
The sixth preset time length is longer than the fifth preset time length, and the sixth preset time length is longer than the seventh preset time length.
7. The method according to any one of claims 1 to 7, wherein in case the target event does not occur, if the first electronic device has established a communication connection with the second electronic device, the method further comprises:
The first electronic device sends indication information to the second electronic device, the indication information is used for indicating the second electronic device to stop sending measurement signals, and the measurement signals are used for determining the position of the second electronic device.
8. The method according to any one of claims 1 to 7, wherein in case the target event does not occur, the method further comprises:
the first electronic device stops sending or processing measurement signals for determining the position of the second electronic device.
9. An electronic device comprising a screen, a processor and a memory, the memory for storing program instructions, the processor for executing the program instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1 to 8.
10. A screen control device comprising means for implementing the method of any one of claims 1 to 8.
11. A computer program product, characterized in that it comprises a computer program code which, when run on a computer, performs the method according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when executed by a computer, causes the method of any of claims 1 to 8 to be implemented.
13. A chip product, comprising: a processor for reading instructions stored in a memory, which when executed by the processor, cause the chip to implement the method of any one of claims 1 to 8.
CN202310102761.7A 2023-01-20 2023-01-20 Screen control method and electronic equipment Pending CN118377364A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310102761.7A CN118377364A (en) 2023-01-20 2023-01-20 Screen control method and electronic equipment
PCT/CN2023/134298 WO2024152741A1 (en) 2023-01-20 2023-11-27 Screen control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310102761.7A CN118377364A (en) 2023-01-20 2023-01-20 Screen control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN118377364A true CN118377364A (en) 2024-07-23

Family

ID=91906318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310102761.7A Pending CN118377364A (en) 2023-01-20 2023-01-20 Screen control method and electronic equipment

Country Status (2)

Country Link
CN (1) CN118377364A (en)
WO (1) WO2024152741A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108181981A (en) * 2017-12-27 2018-06-19 上海展扬通信技术有限公司 It goes out and shields processing method, device and terminal
CN111262975B (en) * 2020-01-08 2021-06-08 华为技术有限公司 Bright screen control method, electronic device, computer-readable storage medium, and program product
CN111970753A (en) * 2020-08-13 2020-11-20 珠海市魅族科技有限公司 Intelligent terminal screen dormancy control method, storage medium, processor and intelligent terminal
CN115016868B (en) * 2021-09-16 2023-07-11 荣耀终端有限公司 Screen control method and terminal equipment

Also Published As

Publication number Publication date
WO2024152741A1 (en) 2024-07-25

Similar Documents

Publication Publication Date Title
EP2659659B1 (en) Mobile device and method for proximity detection verification
CN113115439B (en) Positioning method and related equipment
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN112637758B (en) Equipment positioning method and related equipment thereof
CN115798390B (en) Screen display method and terminal equipment
WO2022053006A1 (en) Proximity light sensor control method and related device
WO2022042766A1 (en) Information display method, terminal device, and computer readable storage medium
CN115333941B (en) Method for acquiring application running condition and related equipment
CN117079596B (en) Screen brightness adjusting method, terminal equipment and storage medium
CN114384465A (en) Azimuth angle determination method and device
CN116048831B (en) Target signal processing method and electronic equipment
CN112015612A (en) Method and device for acquiring stuck information
CN117009005A (en) Display method, automobile and electronic equipment
CN118377364A (en) Screen control method and electronic equipment
CN115827207B (en) Application program switching method and electronic equipment
CN117707659B (en) Screen-extinguishing display method and terminal equipment
CN116232959B (en) Network quality detection method and device
CN115297438B (en) Express delivery prompt method, equipment and storage medium
CN116400974B (en) Method for entering long standby mode, electronic device and readable storage medium
WO2023051274A1 (en) Method for guiding user, and electronic device
CN116382786B (en) Method for entering long standby mode, electronic device and readable storage medium
WO2022068729A1 (en) Wireless charging display method and electronic device
CN116320880B (en) Audio processing method and device
CN115513571B (en) Control method of battery temperature and terminal equipment
CN114339607B (en) Ranging method, ranging device 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