Brightness adjusting method and electronic equipment
Through the sharing of ambient light measurement results between devices, redundant calculations and power consumption increase caused by independent adjustment of screen brightness by multiple electronic devices is solved, and automatic brightness adjustment is achieved and user experience is improved.
Patent Information
- Application Number
- CN202311683883.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-07
- Publication Date
- 2025-06-10
AI Technical Summary
In the prior art, multiple electronic devices independently adjust the screen brightness, resulting in increased redundant calculations and power consumption. In particular, devices without ambient light sensors require manual adjustment by users, which is cumbersome and has poor results.
By sharing ambient light measurements between devices, avoid redundant calculations, save power, and enable devices without ambient light sensors to automatically adjust screen brightness.
It realizes brightness adjustment cooperation between devices, reduces redundant calculations and power consumption overhead, improves user experience, and enables devices without ambient light sensors to automatically adjust screen brightness.
Smart Images

Figure CN120126428A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of terminal displays, and more particularly, to a method for brightness adjustment and an electronic device. Background Art
[0002] Currently, the screen brightness of each of the multiple electronic devices owned by a user is adjusted independently. For an electronic device with an ambient light sensor, the ambient light sensor of each electronic device works independently and adjusts the screen brightness of the electronic device independently according to the photometric result of the ambient light sensor; for an electronic device without an ambient light sensor, the user needs to manually adjust the screen of the electronic device, and there are problems of cumbersome operation and poor adjustment effect in manually adjusting the screen brightness. Summary of the Invention
[0003] The present application provides a method for brightness adjustment and an electronic device. Through this method and the electronic device, devices in the same environment can share the ambient light measurement results, which can avoid redundant calculations of the devices, save the power consumption overhead of the devices, and moreover, can enable devices without an ambient light sensor to also have the ability of automatic brightness adjustment, improving the user experience.
[0004] In a first aspect, a method for brightness adjustment is provided, characterized in that the method includes: a first terminal determining whether the relative position relationship between the first terminal and a second terminal satisfies a first condition; when the relative position relationship between the first terminal and the second terminal satisfies the first condition, the first terminal and the second terminal share a first measurement result, where the first measurement result is used for the first terminal and the second terminal to adjust the screen brightness, and the first measurement result is the ambient light measurement result of the first terminal or the first measurement result is the ambient light measurement result of the second terminal.
[0005] In some embodiments, the first terminal and the second terminal are in the same near-field communication scenario.
[0006] In embodiments of the present application, devices in the same environment can be interconnected and share the ambient light measurement results. Among multiple devices in the same environment, only some of the devices need to perform ambient light measurement calculations, and other devices share the ambient light measurement results of these devices, which can avoid redundant calculations of the devices, save the power consumption overhead of the devices, and moreover, can enable devices without an ambient light sensor to also have the ability of automatic brightness adjustment, eliminating the need for manual adjustment by the user, and can also play the role of saving device power and protecting the eyes, improving the user experience.
[0007] In combination with the first aspect, in a possible implementation manner, before the first terminal and the second terminal share the first measurement result, the method further includes: the first terminal sends a first reminder to the user, where the first reminder is used to remind the user that the first terminal and the second terminal meet the conditions for sharing the ambient light measurement result, and the first reminder is further used to remind the user to select a sharing mode, where the sharing mode includes a power consumption priority mode and a performance priority mode.
[0008] In combination with the first aspect, in a possible implementation manner, the first terminal and the second terminal sharing the first measurement result includes: when the battery life of the first terminal is lower than that of the second terminal, in response to the user's operation of selecting the power consumption priority mode, the first terminal shares the ambient light measurement result of the second terminal; the first terminal adjusts the screen brightness of the first terminal according to the ambient light measurement result of the second terminal; or when the battery life of the first terminal is higher than that of the second terminal, in response to the user's operation of selecting the power consumption priority mode, the first terminal sends the ambient light measurement result of the first terminal to the second terminal, so that the second terminal adjusts the screen brightness of the second terminal according to the ambient light measurement result of the first terminal.
[0009] Among them, the first terminal sharing the ambient light measurement result of the second terminal can be understood as: the first terminal receives the ambient light measurement result of the second terminal, and the ambient light measurement result of the second terminal is to be used by the first terminal; or the ambient light measurement result of the second terminal is being used by the first terminal.
[0010] In some embodiments, both the first terminal and the second terminal are equipped with ambient light sensors, that is to say, both the first terminal and the second terminal have the ability to measure ambient light.
[0011] In the embodiments of the present application, for multiple devices with the ability to measure ambient light, when it is determined that the ambient light measurement results can be shared among the multiple devices, the shared ambient light measurement result can be determined based on the user's selection and the performance of the multiple devices. When the user selects to share the ambient light measurement result based on power consumption priority, the multiple devices share the ambient light measurement result corresponding to the device with the highest battery life (for example: the most sufficient power or connected to a power source) among the multiple devices. In this way, the power consumption overhead of other devices can be saved, and the battery life of other devices can also be extended.
[0012] In combination with the first aspect, in a possible implementation, the first terminal and the second terminal share a first measurement result, including: when the performance of the ambient light sensor of the first terminal is inferior to that of the ambient light sensor of the second terminal, in response to the user's operation of selecting the performance priority mode, the first terminal shares the ambient light measurement result of the second terminal; the first terminal adjusts the screen brightness of the first terminal according to the ambient light measurement result of the second terminal; or when the performance of the ambient light sensor of the first terminal is superior to that of the ambient light sensor of the second terminal, in response to the user's operation of selecting the power consumption priority mode, the first terminal sends the ambient light measurement result of the first terminal to the second terminal, so that the second terminal adjusts the screen brightness of the second terminal according to the ambient light measurement result of the first terminal.
[0013] In some embodiments, both the first terminal and the second terminal are equipped with ambient light sensors, that is to say, both the first terminal and the second terminal have the ability to measure ambient light.
[0014] Among them, multiple terminal devices can obtain the ambient light sensor configuration information of each other, and then the terminal device can sort the performance of multiple ambient light sensors according to the ambient light sensor configuration information of multiple terminal devices. Among them, the ambient light sensor configuration information can be, for example, the model information of the ambient light sensor, and the terminal device can sort the performance of multiple ambient light sensors based on the models of multiple ambient light sensors; the ambient light sensor configuration information can also be, for example, the parameter information of the ambient light sensor, and the terminal device can sort the performance of multiple ambient light sensors based on the parameter information of multiple ambient light sensors. The parameter information of the ambient light sensor can include, for example, photosensitivity, power consumption parameters, spectral response / IR suppression parameters, maximum lux number, etc.
[0015] In the embodiments of the present application, for multiple devices with the ability to measure ambient light, when it is determined that the ambient light measurement results can be shared among the multiple devices, the shared ambient light measurement result can be determined based on the user's selection and the performance of the multiple devices. When the user selects to share the ambient light measurement result based on performance priority, the multiple devices share the ambient light measurement result corresponding to the device with the optimal performance of the ambient light sensor among the multiple devices. In this way, not only can the power consumption overhead of other devices be saved, but also the brightness adjustment accuracy of other devices can be improved.
[0016] In combination with the first aspect, in a possible implementation, the method further includes: when the first terminal shares the ambient light measurement result of the second terminal, the first terminal reduces its own ambient light measurement frequency, or the first terminal stops its own ambient light measurement.
[0017] In the embodiments of the present application, when a device shares the ambient light measurement result of another device, it will adjust its own brightness based on the shared ambient light measurement result. Correspondingly, the device can reduce its own ambient light measurement frequency or can stop its own ambient light measurement. In this way, the power consumption overhead of itself can be saved.
[0018] In combination with the first aspect, in a possible implementation manner, the first terminal adjusts the screen brightness of the first terminal according to the ambient light measurement result of the second terminal, including: the first terminal uses the ambient light measurement result of the second terminal as an input, and uses the ambient light measurement result of the first terminal as an output target for fitting to obtain an ambient light fitting result; the first terminal adjusts the screen brightness of the first terminal according to the ambient light fitting result.
[0019] In some embodiments, the fitting process can be specifically understood as: the first terminal uses the ambient light measurement result of the second terminal as an input, uses the ambient light measurement result of the first terminal as an output target, corrects the ambient light measurement result of the second terminal, and then adjusts the screen brightness of the first terminal according to the corrected ambient light measurement result of the second terminal.
[0020] In the embodiments of the present application, the first terminal does not directly use the ambient light measurement result of the second terminal, but first fits the ambient light measurement result of the second terminal and then adjusts its own screen brightness based on the fitting result, which can be applicable to scenarios where the ambient light difference between the first terminal and the second terminal is relatively large.
[0021] In combination with the first aspect, in a possible implementation manner, before the first terminal and the second terminal share the first measurement result, the method further includes: the first terminal sends a second request message to the second terminal, and the second request message is used to request to obtain the ambient light measurement result of the second terminal; the first terminal receives the ambient light measurement result of the second terminal sent by the second terminal; the first terminal and the second terminal share the first measurement result, including: when the difference between the ambient light measurement result of the first terminal and the ambient light measurement result of the second terminal is less than a first threshold, the first terminal and the second terminal share the first measurement result.
[0022] In the embodiments of the present application, for multiple devices with the ability to measure ambient light, another basis for determining whether a device shares the ambient light measurement results with other devices is provided. Taking the first terminal and the second terminal as an example, when the difference between the ambient light measurement results of the first terminal and the second terminal is less than the first threshold, it indicates that the ambient light in the environments where they are located is similar and they can share the ambient light measurement results; or, when it is determined that the relative position relationship between the first terminal and the second terminal satisfies the first condition, and further it is determined that the difference between the ambient light measurement results of the first terminal and the second terminal is less than the first threshold, the first terminal and the second terminal will share the ambient light measurement results, which can further avoid unreasonable ambient light sharing events and thus further avoid unnecessary troubles brought to users.
[0023] In combination with the first aspect, in a possible implementation manner, the method further includes: when the first terminal shares the ambient light measurement results of the second terminal, the first terminal periodically detects whether the difference between the ambient light measurement results of the first terminal and the ambient light measurement results of the second terminal is less than the first threshold; if it is detected that the difference between the ambient light measurement results of the first terminal and the ambient light measurement results of the second terminal is not less than the first threshold, the first terminal stops sharing the ambient light measurement results of the second terminal.
[0024] In the embodiments of the present application, the terminal device sharing the ambient light measurement results of other devices can periodically detect whether the sharing condition is still satisfied, and when it is detected that the sharing condition is no longer satisfied, it can stop sharing the ambient light measurement results in time, thereby avoiding the troubles brought to users due to excessive sharing.
[0025] In combination with the first aspect, in a possible implementation manner, the first condition includes: the distance between the first terminal and the second terminal is less than the second threshold.
[0026] In the embodiments of the present application, a basis for determining whether the first terminal shares the ambient light measurement results with the second terminal is provided. When the distance between the first terminal and the second terminal is less than the second threshold, it is determined that the first terminal and the second terminal can share the ambient light measurement results, which can avoid the sharing of ambient light measurement results between multiple devices with a relatively large distance, and thus avoid unnecessary troubles brought to users.
[0027] In combination with the first aspect, in a possible implementation manner, the first terminal and the second terminal sharing the first measurement results includes: the first terminal sends a second request message to the second terminal, and the second request message is used to request to obtain the ambient light measurement results of the second terminal; the first terminal receives the ambient light measurement results of the second terminal sent by the second terminal; the first terminal adjusts its own screen brightness according to the ambient light measurement results of the second terminal.
[0028] In some embodiments, the first terminal does not have an ambient light sensor, and the second terminal has an ambient light sensor.
[0029] In some other embodiments, both the first terminal and the second terminal have an ambient light sensor, and are configured to select to share the ambient light measurement result of the second terminal.
[0030] In the embodiments of the present application, a device can request to obtain the ambient light measurement result of other devices, which enables a device without an ambient light sensor to also have the ability of automatic brightness adjustment, eliminating the need for manual adjustment by the user, saving device power consumption and protecting the eyes, and improving the user experience; when a device has an ambient light sensor, it can also save the power consumption overhead of the device and share more accurate ambient light measurement results obtained by other devices, thereby improving the brightness adjustment accuracy of the device.
[0031] In combination with the first aspect, in a possible implementation manner, the first terminal adjusts its own screen brightness according to the ambient light measurement result of the second terminal, including: the first terminal determines an ambient light estimated value of the first terminal according to the ambient light measurement results of multiple second terminals; the first terminal adjusts its own screen brightness according to the ambient light estimated value of the first terminal.
[0032] In the embodiments of the present application, when there are multiple terminal devices in the same environment, a terminal device without an ambient light sensor does not directly adopt the ambient light measurement result of a certain other terminal device, but comprehensively calculates an ambient light estimated value based on the ambient light measurement results and relative distances of multiple terminal devices with ambient light sensors, and uses the ambient light estimated value to adjust its own screen brightness, making the applicable scope of the method wider.
[0033] In combination with the first aspect, in a possible implementation manner, the method further includes: the first terminal periodically detects whether the relative position relationship between the first terminal and the second terminal satisfies a first condition; if it is detected that the relative position relationship between the first terminal and the second terminal does not satisfy the first condition, the first terminal keeps the current screen brightness unchanged.
[0034] In the embodiments of the present application, a terminal device sharing the ambient light measurement result of other devices can periodically detect whether the sharing condition is still satisfied. When it is detected that the sharing condition is no longer satisfied, it can timely stop sharing the ambient light measurement result, thereby avoiding the trouble brought to the user due to excessive sharing.
[0035] In combination with the first aspect, in a possible implementation, when the number of the second terminals is one, the first condition includes that the distance between the first terminal and the second terminal is less than a second threshold; when the number of the second terminals is multiple, the first condition includes that the first terminal is located within a first area determined based on the location information of the multiple second terminals.
[0036] In combination with the first aspect, in a possible implementation, before the first terminal determines whether the relative position relationship between the first terminal and the second terminal satisfies the first condition, the method further includes: the first terminal determines the relative position relationship between the first terminal and the second terminal according to the location information of the second terminal.
[0037] In some embodiments, the location information of the second terminal may be the coordinate location information of the second terminal. For example, it may be the coordinate location information of the second terminal in a first coordinate system, and the first terminal is also in the first coordinate system; it may also be the coordinate location information of the second terminal relative to the first terminal.
[0038] In combination with the first aspect, in a possible implementation, the method further includes: the first terminal sends a first request message to the second terminal, and the first request message is used to request to obtain the location information of the second terminal; the first terminal receives the location information of the second terminal sent by the second terminal.
[0039] In the embodiments of the present application, the device can actively obtain the location information of other devices in the same environment, which provides a basis for the device to determine whether to share the environmental light measurement results with other devices according to the location information.
[0040] In a second aspect, an electronic device is provided. The electronic device includes a memory and a processor. Among them, the memory is used to store computer program code, and the processor is used to execute the computer program code stored in the memory to implement the method in the first aspect or any possible implementation manner in the first aspect.
[0041] In a third aspect, a system is provided. The system includes the electronic device in the second aspect above.
[0042] In a fourth aspect, a computer-readable storage medium is provided. A computer program or instruction is stored in the computer-readable storage medium. When the computer program or instruction is executed, the method in the first aspect or any possible implementation manner in the first aspect is implemented.
[0043] In a fifth aspect, a chip is provided, in which instructions are stored. When it runs on a device, the chip executes the method in the first aspect or any possible implementation manner in the first aspect. Description of the Drawings
[0044] Figure 1 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
[0045] Figure 2 It is a software structure block diagram of an electronic device provided by an embodiment of the present application;
[0046] Figure 3 It is a schematic interface diagram for an electronic device without an ambient light sensor to adjust the screen brightness provided by an embodiment of the present application;
[0047] Figure 4 It is a schematic diagram of an application scenario of the solution of the present application provided by an embodiment of the present application;
[0048] Figure 5 It is a schematic flowchart of a method for brightness adjustment provided by an embodiment of the present application;
[0049] Figure 6 It is a schematic flowchart of another method for brightness adjustment provided by an embodiment of the present application;
[0050] Figure 7 It is a schematic flowchart of another method for brightness adjustment provided by an embodiment of the present application;
[0051] Figure 8 It is a schematic flowchart of another method for brightness adjustment provided by an embodiment of the present application;
[0052] Figure 9 It is a schematic flowchart of another method for brightness adjustment provided by an embodiment of the present application;
[0053] Figure 10 It is a schematic flowchart of another method for brightness adjustment provided by an embodiment of the present application;
[0054] Figure 11 It is a schematic flowchart of another method for brightness adjustment provided by an embodiment of the present application;
[0055] Figure 12 It is a schematic diagram of the functional modules of a brightness adjustment system provided by an embodiment of the present application. Detailed implementation manners
[0056] Next, the technical solutions in the present application will be described in conjunction with the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments.
[0057] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B. The "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality of" or "multiple" means two or more than two.
[0058] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of this embodiment, unless otherwise specified, the meaning of "a plurality of" is two or more.
[0059] The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and claims of the present application, the singular forms "a", "an", "the", "above-mentioned", "said", and "this" are also intended to include, for example, the expression form of "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one" and "one or more" mean one, two, or more than two. The term "and / or" is used to describe the association relationship between associated objects, indicating that there can be three relationships; for example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally means that the associated objects before and after are in an "or" relationship.
[0060] The reference to "an embodiment" or "some embodiments" etc. described in this specification means that a specific feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, statements such as "an embodiment", "some embodiments", "another embodiment", "some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprise", "include", "have" and their variants all mean "include but not limited to", unless otherwise specifically emphasized in other ways.
[0061] The method provided by the embodiments of this application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). The embodiments of this application do not impose any restrictions on the specific types of electronic devices.
[0062] Exemplarily, Figure 1 FIG. 141 shows a schematic structural 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 (USB) interface 130, a charging 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, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0063] It can be understood that the structure schematically shown in the embodiments of this application does not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0064] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0065] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0066] 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. This memory may save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0067] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0068] The USB interface 130 is an interface that complies with the USB standard specification. Specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices, etc.
[0069] It can be understood that the interface connection relationships shown in the embodiments of the present application are only illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0070] The charging management module 140 is used to receive a charging input from a charger. Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.
[0071] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives the inputs of the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.
[0072] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.
[0073] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example: The antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0074] The mobile communication module 150 may provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be provided in the same device.
[0075] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and provided in the same device as the mobile communication module 150 or other functional modules.
[0076] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared (IR), and so on. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.
[0077] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, such that electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0078] Electronic device 100 implements a display function through a GPU, display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, and is connected to display screen 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, which execute program instructions to generate or change display information.
[0079] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.
[0080] The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, etc.
[0081] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light passes through the lens and is transmitted to the camera photosensitive element. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0082] The camera 193 is used to capture static images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it 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 standard RGB, YUV, etc. formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0083] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
[0084] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple coding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0085] The NPU is a neural-network (NN) computing processor. By learning from the biological neural network structure, such as learning from the transmission pattern between human brain neurons, it can quickly process the input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, speech recognition, text understanding, etc.
[0086] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.
[0087] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, Apps required for at least one function (such as the sound playback function, the image playback function, etc.). The data storage area can store the data created during the use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 can include high-speed random access memory, and can also include non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0088] The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor, etc. Such as music playback, recording, etc.
[0089] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110.
[0090] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or hands-free calls through the speaker 170A.
[0091] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device 100 answers a call or a voice message, the voice can be listened to by bringing the receiver 170B close to the human ear.
[0092] The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak by bringing the mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, and implement functions such as directional recording.
[0093] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0094] The keys 190 include a power-on key, volume keys, etc. The keys 190 can be mechanical keys or touch keys. The electronic device 100 can receive key inputs to generate key signal inputs related to the user settings and function controls of the electronic device 100.
[0095] The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playing, etc.) can correspond to different vibration feedback effects. For touch operations on different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminder, receiving messages, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0096] The indicator 192 can be an indicator light and can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.
[0097] The SIM card interface 195 is used to connect the SIM card. The SIM card can be in contact with and separated from the electronic device 100 by being inserted into or pulled out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communication. In some embodiments, the electronic device 100 uses an embedded SIM (eSIM) card, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0098] It should be understood that the phone cards in the embodiments of the present application include but are not limited to SIM cards, eSIM cards, universal subscriber identity modules (USIMs), universal integrated circuit cards (UICCs), and so on.
[0099] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In the embodiments of the present application, the Android system with a layered architecture is taken as an example to exemplarily illustrate the software structure of the electronic device 100.
[0100] Figure 2It is a software architecture block diagram of the electronic device 100 according to an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom are the application layer, the application framework layer, the Android runtime, and the system library, and the kernel layer. The application layer may include a series of application packages.
[0101] As Figure 2 shown, the application packages may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0102] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.
[0103] As Figure 2 shown, the application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc.
[0104] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0105] The content provider is used to store and obtain data, and make this data accessible to applications. The data may include videos, images, audio, dialed and answered calls, browsing history and bookmarks, phone books, etc.
[0106] The view system includes visible controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a short message notification icon may include a view for displaying text and a view for displaying pictures.
[0107] The telephone manager is used to provide the communication function of the electronic device 100. For example, the management of call status (including connection, disconnection, etc.).
[0108] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0109] The notification manager enables an application to display notification information in the status bar. It can be used to convey messages of the notification type, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to inform that a download is completed, a message is reminded, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as a notification of a background-running application, or a notification that appears on the screen in the form of a dialogue window. For example, it prompts text information in the status bar, emits a prompt tone, vibrates the electronic device, and blinks the indicator light, etc.
[0110] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for the scheduling and management of the Android system.
[0111] The core libraries include two parts: one part is the functional functions that need to be called by the Java language, and the other part is the core libraries of Android.
[0112] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as the management of object life cycles, stack management, thread management, security and exception management, and garbage collection.
[0113] The system libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (such as: OpenGL ES), 2D graphics engine (such as: SGL), etc.
[0114] The surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
[0115] The media libraries support the playback and recording of multiple common audio and video formats, as well as static image files, etc. The media libraries can support multiple audio and video coding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0116] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
[0117] The 2D graphics engine is the graphics engine for 2D drawing.
[0118] The kernel layer is the layer between the hardware and the software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
[0119] It should be understood that the technical solutions in the embodiments of the present application can be used in systems such as Android, IOS, and HarmonyOS.
[0120] The technical solution of the embodiment of the present application can be applied to, for example, an electronic device with a screen. Exemplarily, it can be applied to a television, a desktop computer, a laptop computer, and can also be applied to portable electronic devices, such as a mobile phone, a folding screen, a tablet computer, a camera, a video camera, a video recorder, and can also be applied to an electronic device capable of emitting light, such as an LED lamp, etc. It can also be applied to other electronic devices with a screen display function or capable of emitting light, electronic devices in a 5G network, or electronic devices in a future evolved public land mobile network (PLMN), etc. The main application scenario can be the brightness adjustment scenario of the electronic device. For example, the screen brightness adjustment of the electronic device.
[0121] Currently, many users own multiple electronic devices, such as a computer, a smart screen, a mobile phone / tablet, a watch / bracelet, etc. The screen brightness of each electronic device owned by the user is adjusted independently. For an electronic device with an ambient light sensor (for example: a mobile phone, a tablet, etc.), the ambient light sensor of each electronic device works independently and independently adjusts the screen brightness of the electronic device according to the photometric result of the ambient light sensor; for an electronic device without an ambient light sensor (for example: a smart screen, a watch, a bracelet, etc.), the user needs to manually adjust the screen of the electronic device, and there are problems of cumbersome operation (whenever the ambient light changes, the user needs to manually adjust) and poor adjustment effect (for example: it is difficult to achieve an eye protection function).
[0122] However, in actual situations, multiple electronic devices often work in the same environment. For example, a bracelet worn by the same user and the user's mobile phone, tablet, laptop computer, etc. Another example is that in a living room scenario, the large-screen device in the living room (for example: a smart screen) and the user's bracelet, mobile phone, tablet, laptop computer, etc. In this case, if the screen brightness of multiple electronic devices is adjusted independently respectively, there will be redundant calculations of multiple electronic devices, and it will also cause unnecessary power consumption of the electronic devices; moreover, for devices without an ambient light sensor such as a large-screen device, the user needs to manually adjust the screen brightness, and there are problems of cumbersome operation and low adjustment accuracy.
[0123] Exemplarily, taking the electronic device as a Huawei smart screen as an example, Figure 3 shows a schematic interface diagram for adjusting the screen brightness of an electronic device without an ambient light sensor provided by the embodiment of the present application. As Figure 3 shown, for an electronic device without an ambient light sensor, the automatic adjustment of the screen brightness cannot be achieved, but the user needs to manually adjust it. For example, the user manually adjusts the screen brightness through the setting interface of the Huawei smart screen.
[0124] Exemplarily, Figure 4 FIG. (a) shows a schematic diagram of an application scenario of a solution provided by an embodiment of the present application. As Figure 4 shown in (a), the solution of the present application can be applied to, for example, a vehicle cockpit scenario, that is: multiple electronic devices in the cockpit of the same vehicle can share ambient light measurement results, and then adjust their brightnesses respectively according to the shared ambient light measurement results, where the shared ambient light measurement results can be the ambient light measurement results of one of the multiple electronic devices; as Figure 4 shown in (b), the solution of the present application can also be applied to, for example, a home scenario, that is: multiple electronic devices in the same home scenario can share ambient light measurement results, and then adjust their brightnesses respectively according to the shared ambient light measurement results, where the shared ambient light measurement results can be the ambient light measurement results of one of the multiple electronic devices.
[0125] Exemplarily, Figure 5 FIG. shows a schematic flowchart of a brightness adjustment method 500 provided by an embodiment of the present application. As Figure 5 shown, the method 500 includes:
[0126] S501: The first terminal device sends a first request message to the second terminal device, and the first request message is used to request to obtain the location information of the second terminal device.
[0127] S502: The first terminal device receives a first reply message sent by the second terminal device, and the first reply message includes the location information of the second terminal device.
[0128] In some embodiments, after receiving the first request message sent by the first terminal device, the second terminal device obtains its own location information through its own positioning module.
[0129] S503: The first terminal device determines the relative position relationship between the first terminal device and the second terminal device according to its own location information and the location information of the second terminal device.
[0130] In some embodiments, the first terminal device obtains its own location information through its own positioning module.
[0131] In some embodiments, the first terminal device determines the relative position relationship between the first terminal device and the second terminal device based on a wireless network ranging scheme (such as WiFi ranging / Bluetooth ranging, etc.).
[0132] In some embodiments, the first terminal device and the second terminal device use the near field communication (NFC) touch function to determine the relative position relationship between the first terminal device and the second terminal device.
[0133] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the distance between the first terminal device and the second terminal device.
[0134] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the relative position relationship between the first terminal device and multiple second terminal devices.
[0135] S504: The first terminal device determines whether the relative position relationship between the first terminal device and the second terminal device meets the first condition. If so, step S505 is further executed.
[0136] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the distance between the first terminal device and the second terminal device, and the first condition may be that the distance between the first terminal device and the second terminal device is less than a second threshold.
[0137] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the relative position relationship between the first terminal device and multiple second terminal devices, and the first condition may be that the first terminal device is located within a first area determined based on the location information of the multiple second terminal devices. The first area may be, for example, a circular area determined based on the location information of the multiple second terminal devices.
[0138] S505: The first terminal device and the second terminal device share the ambient light measurement result.
[0139] In some embodiments, the ambient light measurement result shared by the first terminal device and the second terminal device is the ambient light measurement result of the terminal device with more sufficient power or connected to a power source among the first terminal device and the second terminal device.
[0140] In some embodiments, the ambient light measurement result shared by the first terminal device and the second terminal device is the ambient light measurement result of the terminal device with better ambient light sensor performance among the first terminal device and the second terminal device.
[0141] Among them, multiple terminal devices can obtain the ambient light sensor configuration information of each other, and then the terminal device can sort the performance of multiple ambient light sensors according to the ambient light sensor configuration information of multiple terminal devices. Among them, the ambient light sensor configuration information can be, for example, the model information of the ambient light sensor, and the terminal device can sort the performance of multiple ambient light sensors based on the models of multiple ambient light sensors; the ambient light sensor configuration information can also be, for example, the parameter information of the ambient light sensor, and the terminal device can sort the performance of multiple ambient light sensors based on the parameter information of multiple ambient light sensors. The parameter information of the ambient light sensor can include, for example, photosensitivity, power consumption parameter, spectral response / IR suppression parameter, maximum lux number, etc. In some embodiments, the first terminal device does not directly use the ambient light measurement results of other terminal devices, but uses the ambient light measurement results of other terminal devices after fitting or algorithm calculation.
[0142] S506: The first terminal device adjusts the screen brightness according to the shared ambient light measurement results.
[0143] S507: The second terminal device adjusts the screen brightness according to the shared ambient light measurement results.
[0144] In some embodiments, both the first terminal device and the second terminal device have ambient light sensors. The first terminal device has more sufficient power than the second terminal device, or the first terminal device is connected to a power supply. The second terminal device has better performance of the ambient light sensor than the first terminal device. If the user selects the power consumption priority mode, or the default mode is the power consumption priority mode, the first terminal device obtains its own ambient light measurement results, adjusts its own screen brightness according to its own ambient light measurement results, and the first terminal device sends its own ambient light measurement results to the second terminal device for the second terminal device to adjust its own screen brightness according to the ambient light measurement results of the first terminal device; if the user selects the performance priority mode, or the default mode is the performance priority mode, the first terminal device requests to obtain the ambient light measurement results of the second terminal device from the second terminal device. The second terminal device obtains its own ambient light measurement results, adjusts its own screen brightness according to its own ambient light measurement results, and the second terminal device sends its own ambient light measurement results to the first terminal device for the first terminal device to adjust its own screen brightness according to the ambient light measurement results of the second terminal device.
[0145] In some embodiments, the first terminal device does not have an ambient light sensor, and the second terminal device has an ambient light sensor. When it is determined that the relative position relationship between the first terminal device and the second terminal device meets the sharing condition, the first terminal device requests the second terminal device to obtain the ambient light measurement result of the second terminal device. The second terminal device obtains its own ambient light measurement result, adjusts the screen brightness of itself according to its own ambient light measurement result, and the second terminal device sends its own ambient light measurement result to the first terminal device for the first terminal device to adjust the screen brightness of itself according to the ambient light measurement result of the second terminal device.
[0146] In some embodiments, the NFC one-touch sharing function of the terminal device is used to implement the sharing of the ambient light measurement result. For example, the first terminal device (such as a watch) does not have the brightness adjustment ability. By performing NFC one-touch with the second terminal device (such as a mobile phone), the ambient light measurement result of the second terminal device can be shared with the first terminal device, so that the first terminal has the ability of automatic screen brightness adjustment.
[0147] In the embodiments of the present application, devices in the same environment can be interconnected to share the ambient light measurement result. Among multiple devices in the same environment, only some of the devices need to perform ambient light measurement calculations, and other devices share the ambient light measurement results of these devices, which can avoid redundant calculations of the devices and save the power consumption overhead of the devices. Moreover, if the shared ambient light measurement result is obtained by a device with better performance among multiple devices, the brightness adjustment accuracy of the devices can also be improved. In addition, it can also enable devices without an ambient light sensor to have the ability of automatic brightness adjustment, improving the user experience.
[0148] Exemplarily, Figure 6 FIG. shows a schematic flowchart of another brightness adjustment method 600 provided by the embodiments of the present application. Among them, it is assumed that both the first terminal device and the second terminal device have an ambient light sensor. The first terminal device has more sufficient power than the second terminal device, or the first terminal device is connected to a power supply. The second terminal device has better performance of the ambient light sensor than the first terminal device, as Figure 6 shown, the method 600 includes:
[0149] S601 and S602 are the same as S501 and S502 described in the embodiments shown in Figure 5 For the sake of brevity, they will not be described here again.
[0150] S603: The first terminal device determines the distance between the first terminal device and the second terminal device according to its own position information and the position information of the second terminal device.
[0151] S604: The first terminal device determines whether the distance between the first terminal device and the second terminal device is less than a second threshold. If so, step S605 is further executed.
[0152] Optionally, the value of the second threshold is related to the scenario where the terminal device is located and the type of the terminal device. When the scenarios are different and / or the device types are different, the corresponding second thresholds may also be different. For example, in the intelligent home scenario, for a Huawei Smart Screen, the second threshold can be any value within the range of 3 meters to 5 meters; in the intelligent cockpit scenario, for a smart watch, the second threshold can be any value less than or equal to 1 meter.
[0153] S605: The first terminal device issues a first reminder to the user, and this first reminder is used to remind the user that they can share the ambient light measurement result with the second terminal device.
[0154] In some embodiments, this first reminder is also used to remind the user to select a brightness adjustment mode, and this brightness adjustment mode includes a power consumption priority mode and a performance priority mode.
[0155] In some embodiments, this first reminder can also be used for the user to choose not to share the ambient light measurement result. When the user chooses not to share the ambient light measurement result, the first terminal device and the second terminal device stop the sharing process, and their ambient light sensors work independently.
[0156] S606: In response to the user's operation of selecting the power consumption priority mode, the first terminal device determines its own ambient light measurement result.
[0157] S607: The first terminal device sends its own ambient light measurement result to the second terminal device.
[0158] In another implementation, before the first terminal device and the second terminal device share the ambient light measurement result, the first terminal device and the second terminal device respectively periodically determine their own ambient light measurement results and respectively adjust their own brightness according to their own ambient light measurement results; in response to the user's selection of the power consumption priority mode, the first terminal device sends its own ambient light measurement result to the second terminal device.
[0159] S608: The second terminal device adjusts the screen brightness according to the ambient light measurement result of the first terminal device.
[0160] In some embodiments, in response to the user's operation of selecting the power consumption priority mode and determining to use the ambient light measurement result of the first terminal device as the shared ambient light measurement result, the second terminal device reduces the frequency of obtaining its own ambient light measurement result, or the second terminal device pauses the operation of obtaining its own ambient light measurement result.
[0161] In some embodiments, when the distance between the first terminal device and the second terminal device is detected to be greater than a second threshold, the first terminal device and the second terminal device stop sharing the ambient light measurement results. The second terminal device resumes the ambient light measurement frequency before sharing and adjusts the screen brightness according to its own ambient light measurement results.
[0162] S609: The first terminal device adjusts the screen brightness according to its own ambient light measurement results.
[0163] Among them, the execution order of steps S609 and S607 is not limited, and the execution order of steps S609 and S608 is not limited.
[0164] In the embodiments of the present application, devices in the same environment can be interconnected to share the ambient light measurement results. When multiple devices in the same environment are equipped with ambient light sensors, only some of the devices need to perform ambient light measurement calculations, and other devices share the ambient light measurement results of these devices, which can avoid redundant calculations of other devices and save the power consumption overhead of other devices.
[0165] Exemplarily, Figure 7 FIG. shows a schematic flowchart of another brightness adjustment method 700 provided by the embodiments of the present application. Among them, it is assumed that both the first terminal device and the second terminal device are equipped with ambient light sensors. Compared with the second terminal device, the first terminal device has more sufficient power or the first terminal device is connected to a power supply. Compared with the first terminal device, the second terminal device has better performance of the ambient light sensor it is equipped with. As Figure 7 shown, the method 700 includes:
[0166] S701 and S705 are the same as S601 and S605 described in the embodiments shown in Figure 6 For the sake of brevity, they will not be described in detail here.
[0167] S706: In response to the user's operation of selecting the performance priority mode, the first terminal device sends a second request message to the second terminal device, and the second request message is used to request to obtain the ambient light measurement results of the second terminal device.
[0168] S707: In response to receiving the second request message sent by the first terminal device, the second terminal device determines its own ambient light measurement results.
[0169] S708: The second terminal device sends a second reply message to the first terminal device, and the second reply message includes the ambient light measurement results of the second terminal device.
[0170] In another implementation, before the first terminal device and the second terminal device share the ambient light measurement results, the first terminal device and the second terminal device respectively and periodically determine their own ambient light measurement results, and respectively adjust their own brightness according to their own ambient light measurement results; in response to the user selecting the performance - priority mode, the first terminal device sends a second request message to the second terminal device for requesting to obtain the ambient light measurement result of the second terminal device, and after receiving the second request message, the second terminal device sends the ambient light measurement result of the second terminal device to the first terminal device.
[0171] S709: The first terminal device adjusts the screen brightness according to the ambient light measurement result of the second terminal device.
[0172] In some embodiments, in response to the user's operation of selecting the performance - priority mode, when it is determined that the ambient light measurement result of the second terminal device is used as the shared ambient light measurement result, the first terminal device reduces the frequency of obtaining its own ambient light measurement result, or the first terminal device pauses the operation of obtaining its own ambient light measurement result.
[0173] In some embodiments, when it is detected that the distance between the first terminal device and the second terminal device is greater than the second threshold, the first terminal device and the second terminal device stop sharing the ambient light measurement results, the first terminal device resumes the ambient light measurement frequency before sharing, and adjusts the screen brightness according to its own ambient light measurement result.
[0174] S710: The second terminal device adjusts the screen brightness according to its own ambient light measurement result.
[0175] In the embodiments of the present application, devices in the same environment can be interconnected to share ambient light measurement results. In the case where multiple devices in the same environment all have ambient light sensors, only some of the devices need to perform ambient light measurement calculations, and other devices share the ambient light measurement results of these devices, which can avoid redundant calculations of other devices, save the power consumption overhead of other devices, and moreover, the shared ambient light measurement results can be obtained by a device with better performance among multiple devices, and can also improve the brightness adjustment accuracy of the devices.
[0176] Exemplarily, Figure 8 FIG. shows a schematic flowchart of another brightness adjustment method 800 provided by the embodiments of the present application. Among them, it is assumed that both the first terminal device and the second terminal device have ambient light sensors. Compared with the second terminal device, the first terminal device has more sufficient power, or the first terminal device is connected to a power source. Compared with the first terminal device, the second terminal device has a better - performing ambient light sensor, as Figure 8 shown, the method 800 includes:
[0177] S801 to S804 are the same as S601 to S604 described in the Figure 6 embodiment shown, and for the sake of brevity, they will not be elaborated here.
[0178] Among them, the value of the second threshold is related to the scenario where the terminal device is located and the type of the terminal device. When the scenarios are different and / or the device types are different, the corresponding second thresholds may also be different. In the embodiments of the present application, for example: in the intelligent home scenario, the second threshold can be any value within the range of 3 meters to 5 meters; in the intelligent cockpit scenario, the second threshold can be any value less than or equal to 3 meters.
[0179] S805: The first terminal device sends a second request message to the second terminal device, and this second request message is used to request to obtain the ambient light measurement result of the second terminal device.
[0180] S806: In response to receiving the second request message sent by the first terminal device, the second terminal device determines its own ambient light measurement result.
[0181] In some embodiments, the second terminal device calls its own ambient light sensor to determine its own ambient light measurement result.
[0182] Among them, the measurement result of the ambient light sensor is illuminance, and the unit of illuminance is lux (lx = lux).
[0183] S807: The second terminal device sends a second reply message to the first terminal device, and this second reply message includes the ambient light measurement result of the second terminal device.
[0184] S808: The first terminal device determines its own ambient light measurement result.
[0185] In some embodiments, the first terminal device calls its own ambient light sensor to determine its own ambient light measurement result.
[0186] S809: The first terminal device determines whether the difference between its own ambient light measurement result and the ambient light measurement result of the second terminal device is less than the first threshold. If so, step S810 is executed.
[0187] Optionally, the first thresholds corresponding to the bright scene and the dim scene are different. For example, when the illuminance ≥ 300 lux, the first threshold can be set to 10%, that is, if the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is within 10%, it indicates that the ambient light measurement results of the first terminal device and the second terminal device are similar, and the first terminal device and the second terminal device can share the ambient light measurement result; when the illuminance < 300 lux, the first threshold can be set to 5%, that is, if the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is within 5%, it indicates that the ambient light measurement results of the first terminal device and the second terminal device are similar, and the first terminal device and the second terminal device can share the ambient light measurement result.
[0188] S810 to S812 are the same as Figure 6 S605, S607, and S608 described in the illustrated embodiment. For the sake of brevity, they will not be elaborated here.
[0189] In some embodiments, when the second terminal device determines to share the ambient light measurement result of the first terminal device, the second terminal device reduces its own ambient light measurement frequency (i.e., reduces the sampling frequency of the ambient light sensor); or, the second terminal device stops its own ambient light measurement (i.e., stops sampling its own ambient light sensor).
[0190] S813: The second terminal device determines whether the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is less than the first threshold every first time period. If not, the second terminal device stops sharing the ambient light measurement result of the first terminal device and adjusts the screen brightness according to its own ambient light measurement result.
[0191] In some implementation manners, when the second terminal device determines to share the ambient light measurement result of the first terminal device (or after receiving the ambient light measurement result shared by the first terminal device), the second terminal device reduces its own ambient light measurement frequency to measure once every first time period, and then performs step S809 again after the measurement. If the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is still less than the first threshold, it indicates that the second terminal device and the first terminal device are still in the same environment, and continue to share the ambient light measurement result of the first terminal device; if the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is greater than the first threshold, it indicates that the second terminal device and the first terminal device are in different environments. The second terminal device stops sharing the ambient light measurement result of the first terminal device, restores the ambient light measurement frequency of its own ambient light sensor to the frequency before sharing, and adjusts the brightness using its own ambient light measurement result.
[0192] Similarly, when the user selects the performance - priority mode, after the first terminal device determines to share the ambient light measurement result of the second terminal device and receives the ambient light measurement result shared by the second terminal device, the first terminal device reduces its own ambient light measurement frequency to measure once every first time period, and then executes step S809 again after the measurement. If the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is still less than the first threshold, it indicates that the second terminal device and the first terminal device are still in the same environment, and continue to share the ambient light measurement result of the second terminal device; if the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is greater than the first threshold, it indicates that the second terminal device and the first terminal device are in different environments. The first terminal device stops sharing the ambient light measurement result of the second terminal device, restores the ambient light measurement frequency of its own ambient light sensor to the frequency before sharing, and adjusts the brightness using its own ambient light measurement result.
[0193] In some embodiments, the first terminal device and the second terminal device are interconnected and located within the same local area network.
[0194] In the embodiments of the present application, devices in the same environment can be interconnected to share ambient light measurement results. In the case where multiple devices in the same environment are all equipped with ambient light sensors, only one of the devices needs to perform ambient light measurement calculations, and other devices share the ambient light measurement results. This can avoid redundant calculations of other devices, save the power consumption overhead of other devices, and moreover, the shared ambient light measurement result can be obtained by a device with better performance among multiple devices, which can also improve the brightness adjustment accuracy of the devices. In addition, the ambient light sensor of the terminal device sharing the ambient light measurement results of other devices can perform ambient light measurement at a lower frequency to periodically detect whether the sharing condition is still met. When it is detected that the sharing condition is not met, the sharing of the ambient light measurement results can be stopped in a timely manner, thus avoiding the troubles brought to users due to excessive sharing.
[0195] Exemplarily, Figure 9 FIG. shows a schematic flowchart of another brightness adjustment method 900 provided by the embodiments of the present application. Among them, it is assumed that the first terminal device does not have an ambient light sensor, and the second terminal device has an ambient light sensor. As Figure 9 shown, the method 900 includes:
[0196] S901 to S904 are the same as S601 to S604 described in the embodiments shown in Figure 6 For the sake of brevity, they will not be described in detail here.
[0197] Optionally, in the embodiments of the present application, the value of the second threshold is related to the scenario where the terminal device is located and the type of the terminal device. When the scenarios are different and / or the device types are different, the corresponding second thresholds may also be different. For example, in the smart home scenario, for a Huawei Smart Screen, the second threshold can be any value within the range of 3 meters to 5 meters; in the smart cockpit scenario, for a smart watch, the second threshold can be any value less than or equal to 1 meter.
[0198] S905: The first terminal device sends a second request message to the second terminal device, and the second request message is used to request to obtain the ambient light measurement result of the second terminal device.
[0199] S906: The second terminal device determines its own ambient light measurement result.
[0200] S907: The second terminal device sends a second reply message to the first terminal device, and the second reply message includes the ambient light measurement result of the second terminal device.
[0201] S908: The first terminal device adjusts the screen brightness according to the ambient light measurement result of the second terminal device.
[0202] S909: The first terminal device determines whether the distance between the first terminal device and the second terminal device is less than the second threshold every second time period. If so, it continues to share the ambient light measurement result of the second terminal device; if not, it stops sharing the ambient light measurement result of the second terminal device and keeps the current screen brightness unchanged.
[0203] In some embodiments, the first terminal device and the second terminal device are interconnected and located within the same local area network.
[0204] In the embodiments of the present application, interconnecting devices in the same environment and sharing the ambient light measurement results can enable devices without an ambient light sensor to also have the ability of automatic brightness adjustment, eliminating the need for users to manually adjust, which can save device power consumption and protect the eyes, improving the user experience; moreover, the terminal device sharing the ambient light measurement results of other devices can also periodically detect whether the sharing condition is still met, and when it detects that the sharing condition is not met, it can stop sharing the ambient light measurement results in a timely manner, thus avoiding the troubles brought to users due to excessive sharing.
[0205] Exemplarily, Figure 10 shows a schematic flowchart of another brightness adjustment method 1000 provided by the embodiments of the present application. Among them, it is assumed that the first terminal device does not have an ambient light sensor, and the second terminal device and the third terminal device have ambient light sensors. As Figure 10 shown, the method 1000 includes:
[0206] S1001: The first terminal device sends a first request message to the second terminal device, and the first request message is used to request to obtain the location information of the second terminal device.
[0207] S1002: The first terminal device receives a first reply message sent by the second terminal device, and the first reply message includes the location information of the second terminal device.
[0208] S1003: The first terminal device sends a third request message to the third terminal device, and the third request message is used to request to obtain the location information of the third terminal device.
[0209] S1004: The first terminal device receives a third reply message sent by the third terminal device, and the third reply message includes the location information of the third terminal device.
[0210] S1005: The first terminal device determines whether the condition is satisfied according to the location information of the second terminal device, the location information of the third terminal device, and its own location information: the distance between the first terminal device and the second terminal device is greater than a second threshold, and the distance between the first terminal device and the third terminal device is also greater than the second threshold; if the condition is satisfied, then step S1006 is executed.
[0211] In some embodiments, if the distance between the first terminal device and the second terminal device is less than the second threshold, the first terminal device may share the ambient light measurement result of the second terminal device. Among them, the process by which the first terminal device shares the ambient light measurement result of the second terminal device is similar to Figure 9 the process described in the illustrated embodiment. For the sake of brevity, it will not be elaborated here.
[0212] In some embodiments, if the distance between the first terminal device and the third terminal device is less than the second threshold, the first terminal device may share the ambient light measurement result of the third terminal device. Among them, the process by which the first terminal device shares the ambient light measurement result of the third terminal device is similar to Figure 9 the process described in the illustrated embodiment. For the sake of brevity, it will not be elaborated here.
[0213] In some embodiments, if the distance between the first terminal device and the second terminal device is less than the second threshold, and the distance between the first terminal device and the third terminal device is less than the second threshold, the first terminal device may share the ambient light measurement result of the second terminal device or the third terminal device. Among them, the first terminal device may determine whether to share the ambient light measurement result of the second terminal device or the third terminal device according to the power consumption priority mode or the performance priority mode.
[0214] S1006: The first terminal device determines whether it is located in the first area. If so, it proceeds to step S1007. Here, the first area is determined based on the relative positions of the first terminal device, the second terminal device, and the third terminal device.
[0215] In some examples, the first area is a circular area with the midpoint of the line connecting the second terminal device and the third terminal device as the center and a radius of S3. Here, S3 can be equal to, for example, S2 / 2 + S1, where S1 refers to the second threshold and S2 refers to the distance between the second terminal device and the third terminal device.
[0216] In some embodiments, when the value of S2 is too large, the sharing of ambient light measurement results among the first terminal device, the second terminal device, and the third terminal device cannot be achieved either. For example, the value of S2 can be any value within the range less than or equal to 5 meters.
[0217] S1007: The first terminal device sends a second request message to the second terminal device. This second request message is used to request the ambient light measurement result of the second terminal device.
[0218] S1008: The second terminal device determines its own ambient light measurement result.
[0219] S1009: The second terminal device sends a second reply message to the first terminal device. This second reply message includes the ambient light measurement result of the second terminal device.
[0220] S1010: The first terminal device sends a fourth request message to the third terminal device. This fourth request message is used to request the ambient light measurement result of the third terminal device.
[0221] S1011: The third terminal device determines its own ambient light measurement result.
[0222] S1012: The third terminal device sends a fourth reply message to the first terminal device. This fourth reply message includes the ambient light measurement result of the third terminal device.
[0223] S1013: The first terminal device determines its own ambient light estimate based on the ambient light measurement results of the second terminal device and the third terminal device.
[0224] In some examples, assuming that the ambient light measurement result of the second terminal device is A, the ambient light measurement result of the third terminal device is B, the ambient light estimation value C of the first terminal device can be determined according to A, B, S4, and S5. For example, it can be obtained through a linear interpolation algorithm, that is, C = S5 * A / (S4 + S5) + S4 * B / (S4 + S5), where S5 refers to the distance between the first terminal device and the second terminal device, and S4 refers to the distance between the first terminal device and the third terminal device.
[0225] S1014: The first terminal device adjusts its own screen brightness according to its own ambient light estimation value C.
[0226] S1015: The first terminal device repeats S1006 every third time period to determine whether the first terminal device is located in the first area. If the first terminal device is still located in the first area, the first terminal device continues to adjust the screen brightness according to the ambient light measurement results of the second terminal device and the third terminal device; if the first terminal device is not located in the first area, the first terminal device stops sharing the ambient light measurement results of the second terminal device and the third terminal device and keeps the current screen brightness unchanged.
[0227] In some embodiments, the first terminal device and the second terminal device are interconnected and located within the same local area network.
[0228] In the embodiments of the present application, multiple devices in the same environment are interconnected to share the ambient light measurement results, enabling devices without an ambient light sensor to also have the ability of automatic brightness adjustment, eliminating the need for users to manually adjust, which can save device power consumption and protect the eyes, enhancing the user experience. Moreover, when there are multiple terminal devices in the same environment, the terminal device without an ambient light sensor does not directly adopt the ambient light measurement result of a certain other terminal device, but comprehensively calculates the ambient light estimation value based on the ambient light measurement results and relative distances of multiple terminal devices with ambient light sensors, and uses this ambient light estimation value to adjust its own screen brightness, making the method more widely applicable.
[0229] Exemplarily, Figure 11 shows a schematic flowchart of another brightness adjustment method 1100 provided by the embodiments of the present application. Among them, both the first terminal device and the second terminal device have an ambient light sensor. Compared with the second terminal device, the first terminal device has a more sufficient battery or is connected to a power source. Compared with the first terminal device, the second terminal device has a better performance of the ambient light sensor, such as Figure 11 shown, the method 1100 includes:
[0230] S1101 and S1111 are the same as Figure 8In the described embodiments, S801 and S811 are the same. For the sake of brevity, they will not be elaborated here.
[0231] Among them, the value of the second threshold is related to the scenario where the terminal device is located and the type of the terminal device. When the scenarios are different and / or the device types are different, the corresponding second thresholds may also be different. In the embodiments of the present application, the value of the second threshold can be slightly greater than the value of the second threshold in the Figure 8 shown embodiment. For example, in the intelligent home scenario, the second threshold can be any value within the range of 3 meters to 6 meters; in the intelligent cockpit scenario, the second threshold can be any value less than or equal to 4 meters.
[0232] Among them, optionally, the first thresholds corresponding to the bright scene and the dim scene are different. For example, when the illuminance ≥ 300 lux, the first threshold can be set to 10%, that is, if the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is within 10%, it indicates that the ambient light measurement results of the first terminal device and the second terminal device are similar, and the first terminal device and the second terminal device can share the ambient light measurement results; when the illuminance < 300 lux, the first threshold can be set to 5%, that is, if the difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is within 5%, it indicates that the ambient light measurement results of the first terminal device and the second terminal device are similar, and the first terminal device and the second terminal device can share the ambient light measurement results.
[0233] S1112: The second terminal device takes the ambient light measurement result of the first terminal device as the input, takes its own ambient light measurement result as the output target for fitting, and determines whether the difference between the fitting result within the first fitting period and its own ambient light measurement result is less than the third threshold. If so, execute S1113.
[0234] S1113: The second terminal device adjusts its own screen brightness according to the fitting result. At the same time, the second terminal device reduces its own ambient light measurement frequency.
[0235] S1114: The second terminal device determines every first time period whether the difference between the fitting result within the current fitting period and its own current ambient light measurement result is less than the third threshold. If so, it means that the second terminal device and the first terminal device are still in the same environment, and continue to adjust its own screen brightness according to the fitting result; if not, it means that the second terminal device and the first terminal device are in different environments, restore the ambient light measurement frequency of its own ambient light sensor, adjust the screen brightness according to its own ambient light measurement result, and re - execute S1112.
[0236] S1115: The second terminal device determines whether the distance between the first terminal device and the second terminal device is less than a second threshold every fourth time period (i.e., S1104 is repeatedly executed every fourth time period). If not, it stops sharing and adjusts the screen brightness according to its own ambient light measurement result.
[0237] In some embodiments, compared with Figure 8 the embodiments shown, the values of the second threshold and the first threshold in the embodiments of the present application are larger.
[0238] In the embodiments of the present application, the second terminal device does not directly use the ambient light measurement result of the first terminal device. Instead, it first fits the ambient light measurement result of the first terminal device, and then adjusts the screen brightness of itself based on the fitting result, which can be applicable to the scenario where the ambient light difference between the environments where the first terminal device and the second terminal device are located is relatively large.
[0239] In some embodiments, the first terminal device and the second terminal device are interconnected and located within the same local area network.
[0240] It should be understood that: The embodiments of the present application are described by taking the screen brightness adjustment of the terminal device as an example, but it does not limit the scope of application of the embodiments of the present application. When the ambient light sensor of the terminal device is replaced with a multispectral sensor, the screen color temperature adaptive adjustment of the terminal device can be realized to achieve the purpose of protecting eyes or optimizing the display effect. For example, a low-end tablet shares the multispectral sensor of a mobile phone, calculates the ambient light color temperature, and can realize targeted adjustment of the screen color temperature, so as to achieve a better eye protection effect or a better display effect.
[0241] Exemplarily, Figure 12 shows a schematic diagram of the functional modules of a brightness adjustment system provided by the embodiments of the present application. As Figure 12 shown, the system includes a first terminal device 1210 and a second terminal device 1220. Among them, the first terminal device 1210 includes a first transceiver module 1211, a first positioning module 1212, a first process module 1213, a first sensor module 1214, and a first display module 1215. The second terminal device 1220 includes a second transceiver module 1221, a second positioning module 1222, a second process module 1223, a second sensor module 1224, and a second display module 1225. Specifically:
[0242] The first transceiver module 1211 is used for the first terminal device to send a first request message to the second terminal device, and the first request message is used to request to obtain the location information of the second terminal device.
[0243] Similarly, the second transceiver module 1221 is used for the second terminal device to receive the first request message sent by the first terminal device.
[0244] The first transceiver module 1211 is further configured to receive, by the first terminal device, a first reply message sent by the second terminal device, where the first reply message includes the location information of the second terminal device.
[0245] Similarly, the second transceiver module 1221 is further configured to send, by the second terminal device, the first reply message to the first terminal device.
[0246] The first positioning module 1212 is configured to obtain, by the first terminal device, its own location information.
[0247] The second positioning module 1222 is configured to obtain, by the first terminal device, its own location information.
[0248] The first positioning module 1212 is further configured to determine, by the first terminal device, the relative position relationship between the first terminal device and the second terminal device according to its own location information and the location information of the second terminal device.
[0249] In some embodiments, the first positioning module 1212 determines the relative position relationship between the first terminal device and the second terminal device based on a wireless network ranging scheme (such as WiFi ranging / Bluetooth ranging, etc.).
[0250] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the distance between the first terminal device and the second terminal device.
[0251] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the relative position relationship between the first terminal device and multiple second terminal devices.
[0252] The first process module 1213 is configured to determine, by the first terminal device, whether the relative position relationship between the first terminal device and the second terminal device meets a first condition.
[0253] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the distance between the first terminal device and the second terminal device, and the first condition may be that the distance between the first terminal device and the second terminal device is less than a second threshold.
[0254] In some embodiments, the relative position relationship between the first terminal device and the second terminal device refers to the relative position relationship between the first terminal device and multiple second terminal devices, and the first condition may be that the first terminal device is located within a first area determined based on the location information of the multiple second terminal devices, and the first area may be, for example, a circular area determined based on the location information of the multiple second terminal devices.
[0255] The first sensor module 1214 is configured to obtain the ambient light measurement result of the first terminal device.
[0256] A second sensor module 1224 for obtaining an ambient light measurement result of a second terminal device.
[0257] The first process module 1213 is further configured to call the first sensor module 1214 to obtain an ambient light measurement result of the first terminal device.
[0258] The second process module 1223 is configured to call the second sensor module 1224 to obtain an ambient light measurement result of the second terminal device.
[0259] The first process module 1213 is further configured to determine whether a difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is less than a first threshold.
[0260] The first display module 1215 is configured to display a screen brightness according to a shared ambient light measurement result when a sharing condition is met.
[0261] The second display module 1225 is configured to display a screen brightness according to a shared ambient light measurement result when a sharing condition is met.
[0262] In some embodiments, the sharing condition may be that a relative position relationship between the first terminal device and the second terminal device meets a first condition.
[0263] In some embodiments, the sharing condition may be that a relative position relationship between the first terminal device and the second terminal device meets a first condition, and a difference between the ambient light measurement result of the first terminal device and the ambient light measurement result of the second terminal device is less than a first threshold.
[0264] In some embodiments, the shared ambient light measurement result of the first terminal device and the second terminal device is the ambient light measurement result of the terminal device with more sufficient power or connected to a power source among the first terminal device and the second terminal device.
[0265] In some embodiments, the shared ambient light measurement result of the first terminal device and the second terminal device is the ambient light measurement result of the terminal device with better ambient light sensor performance among the first terminal device and the second terminal device.
[0266] In some embodiments, the first terminal device does not directly use the ambient light measurement result of another terminal device, but uses the ambient light measurement result of another terminal device after fitting or algorithm calculation.
[0267] In the embodiments of the present application, devices in the same environment can be interconnected to share the ambient light measurement results. Among multiple devices in the same environment, only some of the devices need to perform ambient light measurement calculations, and other devices can share the ambient light measurement results of these devices, which can avoid redundant calculations of the devices and save the power consumption overhead of the devices. In addition, it can also enable devices without an ambient light sensor to have the ability of automatic brightness adjustment, improving the user experience.
[0268] One or more of the modules or units described herein can be implemented in software, hardware, or a combination of both. When any of the above modules or units is implemented in software, the software exists in the form of computer program instructions and is stored in a memory. The processor can be used to execute the program instructions and implement the above method flow. The processor can include, but is not limited to, at least one of the following: a central processing unit (CPU), a microprocessor, a digital signal processor (DSP), a microcontroller unit (MCU), or an artificial intelligence processor and other types of computing devices that run software. Each computing device can include one or more cores for executing software instructions to perform operations or processing. The processor can be built into a system on a chip (SoC) or an application-specific integrated circuit (ASIC), or can be an independent semiconductor chip. In addition to the cores in the processor for executing software instructions to perform operations or processing, it can further include necessary hardware accelerators, such as a field programmable gate array (FPGA), a programmable logic device (PLD), or a logic circuit for implementing dedicated logical operations.
[0269] When the modules or units described herein are implemented in hardware, the hardware can be any one or any combination of a CPU, a microprocessor, a DSP, an MCU, an artificial intelligence processor, an ASIC, an SoC, an FPGA, a PLD, a dedicated digital circuit, a hardware accelerator, or a non-integrated discrete device, which can run the necessary software or execute the above method flow without relying on software.
[0270] When the modules or units described in this application are implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0271] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in this application can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0272] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0273] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings, direct couplings, or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in an electrical, mechanical, or other form.
[0274] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0275] In addition, in each embodiment of the present application, each functional unit may be integrated in a processing unit, may exist physically separately for each unit, or two or more units may be integrated in one unit.
[0276] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0277] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claimed rights.
Claims
1. A method for brightness adjustment, characterized in that, the method includes: The first terminal determines whether the relative position relationship between the first terminal and the second terminal satisfies a first condition; When the relative position relationship between the first terminal and the second terminal satisfies the first condition, the first terminal and the second terminal share a first measurement result, where the first measurement result is used for the first terminal and the second terminal to adjust the screen brightness, and the first measurement result is the ambient light measurement result of the first terminal, or the first measurement result is the ambient light measurement result of the second terminal.
2. The method according to claim 1, characterized in that, before the first terminal and the second terminal share the first measurement result, the method further includes: The first terminal sends a first reminder to the user, the first reminder is used to remind the user that the first terminal and the second terminal meet the condition for sharing the ambient light measurement result, and the first reminder is also used to remind the user to select a sharing mode, and the sharing mode includes a power consumption priority mode and a performance priority mode.
3. The method according to claim 2, characterized in that, the first terminal and the second terminal sharing the first measurement result includes: When the battery life of the first terminal is lower than that of the second terminal, in response to the user's operation of selecting the power consumption priority mode, the first terminal shares the ambient light measurement result of the second terminal; The first terminal adjusts the screen brightness of the first terminal according to the ambient light measurement result of the second terminal; or When the battery life of the first terminal is higher than that of the second terminal, in response to the user's operation of selecting the power consumption priority mode, the first terminal sends the ambient light measurement result of the first terminal to the second terminal, so that the second terminal adjusts the screen brightness of the second terminal according to the ambient light measurement result of the first terminal.
4. The method according to claim 2, characterized in that, the first terminal and the second terminal sharing the first measurement result includes: When the performance of the ambient light sensor of the first terminal is inferior to that of the ambient light sensor of the second terminal, in response to the user's operation of selecting the performance priority mode, the first terminal shares the ambient light measurement result of the second terminal; The first terminal adjusts the screen brightness of the first terminal according to the ambient light measurement result of the second terminal; or When the performance of the ambient light sensor of the first terminal is superior to that of the ambient light sensor of the second terminal, in response to the user's operation of selecting the power consumption priority mode, the first terminal sends the ambient light measurement result of the first terminal to the second terminal, so that the second terminal adjusts the screen brightness of the second terminal according to the ambient light measurement result of the first terminal.
5. The method according to claim 3 or 4, characterized in that, the method further includes: When the first terminal shares the ambient light measurement result of the second terminal, the first terminal reduces its own ambient light measurement frequency, or the first terminal stops its own ambient light measurement.
6. The method according to any one of claims 3 to 5, wherein, the first terminal adjusts the screen brightness of the first terminal according to the ambient light measurement result of the second terminal, including: the first terminal takes the ambient light measurement result of the second terminal as an input, and fits it with the ambient light measurement result of the first terminal as an output target to obtain an ambient light fitting result; the first terminal adjusts the screen brightness of the first terminal according to the ambient light fitting result.
7. The method according to any one of claims 1 to 6, wherein, before the first terminal and the second terminal share the first measurement result, the method further includes: the first terminal sends a second request message to the second terminal, and the second request message is used to request to obtain the ambient light measurement result of the second terminal; the first terminal receives the ambient light measurement result of the second terminal sent by the second terminal; the first terminal and the second terminal share the first measurement result, including: when the difference between the ambient light measurement result of the first terminal and the ambient light measurement result of the second terminal is less than a first threshold, the first terminal and the second terminal share the first measurement result.
8. The method according to claim 7, wherein, the method further includes: when the first terminal shares the ambient light measurement result of the second terminal, the first terminal periodically detects whether the difference between the ambient light measurement result of the first terminal and the ambient light measurement result of the second terminal is less than the first threshold; if it is detected that the difference between the ambient light measurement result of the first terminal and the ambient light measurement result of the second terminal is not less than the first threshold, the first terminal stops sharing the ambient light measurement result of the second terminal.
9. The method according to any one of claims 1 to 8, wherein, the first condition includes: the distance between the first terminal and the second terminal is less than a second threshold.
10. The method according to claim 1, wherein, the first terminal and the second terminal share the first measurement result, including: the first terminal sends a second request message to the second terminal, and the second request message is used to request to obtain the ambient light measurement result of the second terminal; the first terminal receives the ambient light measurement result of the second terminal sent by the second terminal; the first terminal adjusts the screen brightness of itself according to the ambient light measurement result of the second terminal.
11. The method according to claim 10, wherein, the first terminal adjusts the screen brightness of itself according to the ambient light measurement result of the second terminal, including: the first terminal determines an ambient light estimated value of the first terminal according to the ambient light measurement results of a plurality of the second terminals; the first terminal adjusts the screen brightness of itself according to the ambient light estimated value of the first terminal.
12. The method according to claim 1, 10 or 11, wherein, the method further includes: the first terminal periodically detects whether the relative position relationship between the first terminal and the second terminal satisfies the first condition; If it is detected that the relative position relationship between the first terminal and the second terminal does not meet the first condition, the first terminal maintains the current screen brightness unchanged.
13. The method according to any one of claims 10 to 12, wherein, when the number of the second terminals is one, the first condition includes: the distance between the first terminal and the second terminal is less than a second threshold; when the number of the second terminals is multiple, the first condition includes: the first terminal is located within a first area determined based on the location information of the multiple second terminals.
14. An electronic device, wherein, comprising: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions that, when executed by the one or more processors, cause the electronic device to execute the method according to any one of claims 1 to 13.
15. A system, wherein, the system includes a first electronic device, and the first electronic device is configured to execute the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, wherein, the storage medium stores a program or instructions that, when run, implement the method according to any one of claims 1 to 13.
17. A chip, wherein, the chip stores instructions that, when run, implement the method according to any one of claims 1 to 13.