Light assembly control method, terminal equipment and computer readable storage medium

By obtaining the environment and user status data of the terminal device, combining the control data input by the user, dynamically adjusting the luminous parameters of the lighting components, the problem of single flashlight function in the prior art is solved, and richer lighting effects and higher user experience are achieved.

CN119603817APending Publication Date: 2025-03-11SHENZHEN TINNO WIRELESS TECH +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411805002.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The flashlight of existing terminal equipment has a single function, and cannot dynamically adjust the color and brightness of the light according to the surrounding environment and user needs, and cannot meet the diverse needs of users.

Method used

By acquiring the current environment data of the terminal device and the user status data, combined with the control data input by the user, the lighting parameters of the lighting component, including brightness, color and flicker frequency, are adjusted according to priority.

Benefits of technology

It realizes dynamic adjustment of the color and brightness of the lighting components of the terminal equipment according to changes in the surrounding environment and user needs, increasing the usage scenarios of the lighting components and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603817A_ABST
    Figure CN119603817A_ABST
Patent Text Reader

Abstract

The invention provides a lamplight assembly control method of terminal equipment, the terminal equipment and a computer readable and writable storage medium, and the lamplight assembly control method comprises the steps: obtaining current environment data and user state data of the terminal equipment, and obtaining a first control parameter; receiving control data input by the user to obtain a second control parameter; according to the priority of the first control parameter and the second control parameter, adjusting the light emitting parameter of the light assembly; wherein the light-emitting parameters at least comprise the light-emitting brightness, the light-emitting color and the flicker frequency of the lamplight assembly. Through the above mode, the light emitting parameters of the light assembly can be dynamically adjusted according to the ambient environment change, the activity state of the user and the priority of the actual demand input by the user, and the adjustment of the color, brightness and other parameters of the light assembly of the terminal equipment can be realized more intelligently, so that the use scene of the light assembly is increased, and the user experience is improved. And the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic circuits, and in particular to a method for controlling a lighting component of a terminal device, the terminal device, and a computer-readable and writable storage medium. Background Art

[0002] With the rapid development of smart terminal technologies such as mobile phones and the growing demand for personalization by users, the light (flashlight) function of terminal devices has been unable to meet the diverse needs of users. Traditional flashlights have a single function, usually using LED (Light Emitting Diode) lamps to emit light, but can only provide a single lighting effect, and the brightness and color of the light cannot be adjusted.

[0003] In the related art, the lighting of the terminal device is either adjusted automatically or manually, lacking more applicable scenarios. Summary of the invention

[0004] To solve the above problems, the present application provides a terminal device lighting component control method, a terminal device and a computer-readable and writable storage medium, which can adjust the color, brightness and other parameters of the terminal device light according to the surrounding environment, user activity status and needs, thereby improving the user experience.

[0005] A technical solution adopted in the present application is: to provide a method for controlling a lighting component of a terminal device, the method comprising: acquiring current environmental data and user status data of the terminal device to obtain a first control parameter; and receiving control data input by the user to obtain a second control parameter; adjusting the luminous parameters of the lighting component according to the priority of the first control parameter and the second control parameter; wherein the luminous parameters include at least the luminous brightness, luminous color and flashing frequency of the lighting component.

[0006] In one embodiment, the light-emitting parameters of the lighting component are adjusted according to the priorities of the first control parameter and the second control parameter, including: in response to the priority of the first control parameter being higher than the priority of the second control parameter, adjusting the light-emitting parameters of the lighting component according to the first control parameter; in response to the priority of the first control parameter being lower than the priority of the second control parameter, adjusting the light-emitting parameters of the lighting component according to the second control parameter.

[0007] In one embodiment, the light-emitting parameters of the lighting component are adjusted according to the priorities of the first control parameter and the second control parameter, including: in response to the priority of the first control parameter being equal to the priority of the second control parameter, weighting the first control parameter and the second control parameter to obtain a third control parameter; and adjusting the light-emitting parameters of the lighting component according to the third control parameter.

[0008] In one embodiment, the light-emitting parameters of the lighting component are adjusted according to the priority of the first control parameter and the second control parameter, including: obtaining a first weight corresponding to the priority of the first control parameter, and obtaining a second weight corresponding to the priority of the second control parameter; weighting the first control parameter and the second control parameter according to the first weight and the second weight to obtain a third control parameter; and adjusting the light-emitting parameters of the lighting component according to the third control parameter.

[0009] In one embodiment, current environment data and user status data of a terminal device are obtained to obtain a first control parameter, including: obtaining the current environment data and user status data of the terminal device; identifying a current scene based on the current environment data, and identifying a device status of the terminal device based on the user status data; and obtaining the first control parameter based on the current scene and device status.

[0010] In one embodiment, identifying the device state of the terminal device based on the user state data includes: in response to the user state data indicating that the user is in a waving arm state, identifying that the device state of the terminal device is regular movement.

[0011] In one embodiment, obtaining the first control parameter according to the current scene and the device state includes: obtaining the first control parameter according to the current scene and the movement rhythm corresponding to the regular movement.

[0012] In one embodiment, a first control parameter is obtained based on the current scene and the device state, including: in response to the current scene representing a dangerous scene and the device state conforming to the device state corresponding to the dangerous scene, a preset first control parameter is obtained; wherein the preset first control parameter has the highest priority.

[0013] In one embodiment, after adjusting the lighting parameters of the lighting assembly, the method includes: providing a lighting parameter setting interface in response to a change in current environmental data of the terminal device, wherein the lighting parameter setting interface is used to receive control data input by a user.

[0014] The present application also provides a terminal device, which includes a processor, a memory connected to the processor, and a lighting component, the memory is used to store program data, and the processor is used to execute the program data to implement the lighting component control method as described above.

[0015] The present application also provides a computer-readable and writable storage medium, in which program data is stored. When the program data is executed by a processor, it is used to implement the lighting component control method as described above.

[0016] A technical solution adopted by the present application is: to provide a method for controlling a light component of a terminal device, the method comprising: obtaining the current environment data and user status data of the terminal device to obtain a first control parameter; and receiving control data input by the user to obtain a second control parameter; adjusting the light-emitting parameters of the light component according to the priority of the first control parameter and the second control parameter; wherein the light-emitting parameters at least include the light-emitting brightness, light-emitting color and flickering frequency of the light component. Through the above method, the light-emitting parameters of the light component can be dynamically adjusted according to the changes in the surrounding environment, the activity status of the user and the priority of the actual needs input by the user, so as to more intelligently adjust the color, brightness and other parameters of the light component of the terminal device, thereby increasing the use scenarios of the light component and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] in:

[0019] Figure 1 It is a flowchart of a first embodiment of a method for controlling a lighting component of a terminal device provided by the present application;

[0020] Figure 2 It is a flowchart of step S11 in an embodiment of a method for controlling a lighting component of a terminal device provided by the present application;

[0021] Figure 3 It is a flowchart of step S112 in an embodiment of a method for controlling a lighting component of a terminal device provided by the present application;

[0022] Figure 4 It is a flowchart of step S113 in an embodiment of a method for controlling a lighting component of a terminal device provided by the present application;

[0023] Figure 5 It is a flowchart of step S12 in an embodiment of a method for controlling a lighting component of a terminal device provided by the present application;

[0024] Figure 6 It is a flowchart of step S12 in an embodiment of a method for controlling a lighting component of a terminal device provided by the present application;

[0025] Figure 7 It is a flowchart of a second embodiment of a method for controlling a lighting component of a terminal device provided by the present application;

[0026] Figure 8 It is a structural diagram of an embodiment of a terminal device provided by the present application;

[0027] Fig. 9 It is a structural diagram of an embodiment of a computer readable and writable storage medium provided by the present application. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It will be appreciated that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some but not all structures related to the present application are shown in the drawings. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the art without making creative work are within the scope of protection of the present application.

[0029] The terms "first", "second", etc. in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0030] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0031] Combine the following Figure 1-Figure 7 , a detailed description of the lighting component control method of the terminal device is given.

[0032] See also Figure 1 , Figure 1 1 is a flow chart of a first embodiment of a method for controlling a lighting component of a terminal device provided by the present application. The method includes:

[0033] Step S11: acquiring current environment data and user status data of the terminal device to obtain a first control parameter; and receiving control data input by the user to obtain a second control parameter.

[0034] The terminal device may be a mobile terminal such as a mobile phone or a computer. Environmental data refers to information related to the physical environment in which the terminal device is located, including but not limited to light intensity, light color, noise level, temperature, air pressure, and location information of the terminal device. These data are usually collected in real time by various sensors of the terminal device, such as a barometer, gravity sensor, and location sensor.

[0035] Among them, user status data refers to data that reflects the user's physiological or psychological state, such as heart rate, body temperature, emotional state, movement status, etc. These data can be obtained through tools such as biometric sensors and motion sensors on terminal devices.

[0036] Specifically, the terminal device automatically generates a first control parameter for adjusting a lighting component of the terminal device through an algorithm based on a comprehensive analysis of current environment data and user status data.

[0037] The control data input by the user refers to the instructions or data for directly controlling the light components of the terminal device, which are input by the user according to his / her needs through the interactive interface provided by the terminal device or other means. Such control data may include but are not limited to instructions for turning on or off the light components, and adjustment data for the light intensity and color of the light components.

[0038] Specifically, the terminal device generates a second control parameter for executing the user's adjustment of the lighting component of the terminal device after parsing and processing the control data input by the user.

[0039] It is understandable that the second control parameter directly reflects the user's wishes and needs and is the key to the terminal device to achieve user interaction and control. By combining the first control parameter and the second control parameter, the terminal device can provide the user with a more intelligent, convenient and personalized use experience.

[0040] See also Figure 2 , Figure 2 is a flow chart of step S11 in one embodiment. Step S11 may specifically include:

[0041] Step S111: Acquire the current environment data and user status data of the terminal device.

[0042] Step S112: Identify the current scene based on the current environment data, and identify the device status of the terminal device based on the user status data.

[0043] Step S113: Obtain a first control parameter according to the current scene and device status.

[0044] Among them, the terminal device obtains the intensity and color data of the surrounding light through the light sensor and color sensor, obtains the location information of the terminal device through the position sensor, collects the surrounding sound data through the microphone, obtains the image data of the surrounding environment through the camera, or obtains more environmental data through other tools, and the terminal device can identify the current scene based on these environmental data, such as identifying it as an urban area, mountainous area, etc. At the same time, when the user is engaged in activities such as running, walking, waving, etc., the user status data at this time is obtained through the biometric sensor, motion sensor, etc. of the terminal device, and the terminal device can identify the device status of the terminal device based on these data.

[0045] See also Figure 3 and Figure 4 , Figure 3 is a flow chart of step S112 in one embodiment, Figure 4 It is a flowchart diagram of step S113 in one embodiment.

[0046] In some optional embodiments, such as Figure 3 As shown, Figure 3 1 is a flow chart of the third embodiment of the method for controlling a lighting component of a terminal device provided by the present application. Step S112 may specifically include:

[0047] Step S1121: In response to the user status data indicating that the user is in a waving arm state, it is identified that the device state of the terminal device is regular movement.

[0048] In some optional embodiments, such as Figure 4 As shown, Figure 4 4 is a flow chart of the fourth embodiment of the method for controlling a light component of a terminal device provided by the present application. Step S113 may specifically include:

[0049] Step S1131: Obtain a first control parameter according to the current scene and the movement rhythm corresponding to the regular movement.

[0050] Among them, in one application scenario, when a user is participating in a music festival, concert or other activity, the terminal device obtains the surrounding environmental data, and identifies the current scene by analyzing the environmental data such as human voice, music sound, and music rhythm around the terminal device; at the same time, the user status data is obtained, and the current device status is identified by analyzing the user's heart rate, emotional state, motion state and other status data. For example, when the user waves his arms within a preset period of time, the terminal device will identify that the user is in regular movement. The lighting component of the terminal device will obtain the first control parameter based on the scene such as the music festival, concert and the movement rhythm corresponding to the regular movement, and adjust the lighting component of the terminal device through the first control parameter.

[0051] Step S1132: In response to the current scene representing a dangerous scene, and the device state conforming to the device state corresponding to the dangerous scene, a preset first control parameter is obtained; wherein the preset first control parameter has the highest priority.

[0052] Among them, in one application scenario, the user is in a mountainous area, highway or other area with a certain risk factor. At this time, the terminal device obtains the surrounding environmental data, and identifies the current scene as a dangerous scene by analyzing the terminal device's location, air pressure, temperature and other environmental data; at the same time, the user status data is obtained, and the user's heart rate, emotional state, movement state and other status data are analyzed to identify that the current device's state meets the device state corresponding to the dangerous scene. For example, when the terminal device's barometer data and gravity sensor data fluctuate greatly. For example, when the current user has a car accident or falls, the height and state of the terminal device (such as lying flat or standing up) will also fluctuate greatly. At this time, the first control parameter is a preset control parameter for dealing with dangerous scenes, and the lighting component of the terminal device will be adjusted according to the preset first control parameter, and the priority of the preset first control parameter is set to the highest to enhance safety.

[0053] Step S12: adjusting the light-emitting parameters of the light component according to the priorities of the first control parameter and the second control parameter; wherein the light-emitting parameters at least include the light-emitting brightness, light-emitting color and flickering frequency of the light component.

[0054] Among them, the purpose of setting the priority is to ensure that when the first control parameter and the second control parameter are in effect at the same time, the system can perform adjustments in the preset order of importance to avoid conflicts between different parameters, thereby achieving precise control of the lighting effects.

[0055] In one application scenario, the terminal device prioritizes the personalized needs of the user and sets the priority of the second control parameter to be higher than the priority of the first control parameter. Then, the lighting component of the terminal device will be adjusted with the second control parameter as the high priority.

[0056] Among them, the lighting component of the terminal device can use a color RGB LED (Red Green Blue Light Emitting Diode) module, which can emit red, green and blue three primary colors of light, and produce various colors of light by mixing in different proportions; it can also achieve the change of light color by sticking multiple single LEDs of different colors on FPC (Flexible Printed Circuit). The terminal device increases or decreases the brightness of the lighting component through the first control parameter and the second control parameter, controls the change of light color, and increases or decreases the flashing frequency of the lighting component, so that the lighting component emits constant light, flashes slowly or flashes quickly, etc.

[0057] See also Figure 5 , Figure 5 is a flow chart of step S12 in one embodiment, and step S12 may specifically include:

[0058] When the priority of the first control parameter is higher than the priority of the second control parameter, execute step S121; when the priority of the first control parameter is lower than the priority of the second control parameter, execute step S122; when the priority of the first control parameter is equal to the priority of the second control parameter, execute step S123.

[0059] Step S121: In response to the priority of the first control parameter being higher than the priority of the second control parameter, adjusting the light emitting parameters of the lighting assembly according to the first control parameter.

[0060] Step S122: In response to the priority of the first control parameter being lower than the priority of the second control parameter, adjusting the light emitting parameters of the lighting assembly according to the second control parameter.

[0061] The corresponding situation of adjusting the light-emitting parameters of the light component according to the priority of the first control parameter and the second control parameter includes: firstly comparing the priority of the first control parameter and the priority of the second control parameter, and when the priority of the first control parameter and the second control parameter are different, determining the control parameter with the higher priority. When the priority of the first control parameter and the second control parameter are the same, it is necessary to introduce a third control parameter, and adjust the light-emitting parameters of the light component with the data of the third control parameter.

[0062] Step S123: In response to the priority of the first control parameter being equal to the priority of the second control parameter, weighting the first control parameter and the second control parameter to obtain a third control parameter; and adjusting the light emitting parameters of the lighting assembly according to the third control parameter.

[0063] The third control parameter is a weighted parameter that combines the influence of the first control parameter and the second control parameter, and reflects the degree of influence of each on the final lighting effect when the two have equal priority. This parameter may be a value, a vector, or any other data structure that can express the combined effect of the two control parameters.

[0064] It is understandable that when the priority of the first control parameter and the second control parameter is equal, their relative importance may still be different. Through weighted processing, the influence of the two parameters on the final lighting effect can be balanced to ensure that their roles are reasonably reflected. At the same time, weighted processing takes into account the influence of both control parameters at the same time, rather than simply selecting one of them, which helps to achieve more detailed and complex lighting effects and meet the needs of more diverse application scenarios. In some cases, the two control parameters may point in contradictory directions (for example, one requires increasing brightness and the other requires decreasing brightness). Through weighted processing, we can find a balance point to avoid direct conflicts between parameters and ensure the harmony and unity of the lighting effects.

[0065] See also Figure 6 , Figure 6 is a flow chart of step S12 in one embodiment, and step S12 may specifically include:

[0066] Step S124: obtaining a first weight corresponding to the priority of the first control parameter, and obtaining a second weight corresponding to the priority of the second control parameter.

[0067] Among them, in this step, the system will assign a weight to the first control parameter and the second control parameter respectively according to a preset rule or algorithm. The weight corresponds to their respective priorities and reflects their respective importance in the decision-making process.

[0068] Step S125: weighting the first control parameter and the second control parameter according to the first weight and the second weight to obtain a third control parameter.

[0069] Among them, the system will perform weighted processing on the first control parameter and the second control parameter according to the weight obtained in step S124. The value range of the weight is usually between 0 and 1, and the sum of the two weights is usually normalized to 1 to ensure that the weighted third control parameter is within a reasonable range. The weighting process is usually to multiply each control parameter with its corresponding weight, and then add the results to obtain the third control parameter. The third control parameter is a new parameter value that combines the influence of the first control parameter and the second control parameter, and it will serve as the basis for subsequent adjustment of the light emitting parameters of the lighting component.

[0070] Step S126: adjusting the light emitting parameters of the light assembly according to the third control parameter.

[0071] Specifically, the situation corresponding to adjusting the light-emitting parameters of the lighting component according to the priority of the first control parameter and the second control parameter also includes: without comparing the priorities of the first control parameter and the second control parameter, the third control parameter is obtained by weighting the first control parameter and the second control parameter according to the first weight and the second weight, and the light-emitting parameters of the lighting component are adjusted with the data of the third control parameter.

[0072] It is understandable that when the priorities of the first control parameter and the second control parameter are equal or difficult to compare directly, weighting can avoid subjectivity and uncertainty in priority judgment. By allocating weights, the system can more objectively and accurately reflect the importance of the two control parameters in the decision-making process. And this method can simplify the decision-making process of the system, reduce unnecessary calculation and judgment steps, and help improve the operating efficiency and response speed of the system.

[0073] After step S12, refer to Figure 7 , Figure 7 1 is a flow chart of a second embodiment of a method for controlling a lighting component of a terminal device provided by the present application. The method includes:

[0074] Step S71: in response to a change in current environment data of the terminal device, a lighting parameter setting interface is provided, where the lighting parameter setting interface is used to receive control data input by a user.

[0075] In one embodiment, a setting interface is provided, which displays the lighting parameters of the lighting component of the terminal device; wherein the lighting parameters at least include the lighting brightness, lighting color and flashing frequency of the lighting component.

[0076] In one embodiment, the lighting parameter setting interface provides an adjustment control for the lighting parameters of the terminal device's lighting component; the adjustment control includes a first sub-control and a second sub-control; the first sub-control is used to provide a selection function for the lighting brightness, lighting color, and flashing frequency of the lighting component, and the second sub-control is used to provide an increase and decrease setting function.

[0077] In an application scenario, the first sub-control is set in the first sub-interface and can be represented in the form of icons, text boxes, etc. In this sub-interface, the user can freely switch between the preset light component brightness, light color, and flicker frequency options by clicking or sliding. After confirming the selection, enter the second sub-interface, and the second sub-control can be presented in the form of symmetrical arrow icons, sliding bars, etc. The user only needs to touch the arrow or slide the sliding bar to choose to increase or decrease the light component brightness, light color, and flicker frequency.

[0078] In one embodiment, the light component control method of the terminal device further includes: obtaining current operating parameters of the light component; wherein the operating parameters at least include a holding time of the light component light emission parameters; adjusting the power supply current of the light component according to the operating parameters. In response to the holding time exceeding a preset time threshold, reducing the power supply current of the light component.

[0079] In one application scenario, when the light component of the terminal device maintains a certain working state for a long time, such as maintaining strong light for a long time or using the same color for a long time, the current of the light component is automatically adjusted to extend the life of the light component. In another application scenario, when the light component of the terminal device does not work according to the set light parameters, the terminal device or the light component may be faulty, and the power supply current can be reduced to a level lower than the working current of the light component to avoid continuous damage to the terminal device.

[0080] A technical solution adopted by the present application is: to provide a method for controlling a light component of a terminal device, the method comprising: obtaining the current environment data and user status data of the terminal device to obtain a first control parameter; and receiving control data input by the user to obtain a second control parameter; adjusting the light-emitting parameters of the light component according to the priority of the first control parameter and the second control parameter; wherein the light-emitting parameters at least include the light-emitting brightness, light-emitting color and flickering frequency of the light component. Through the above method, the light-emitting parameters of the light component can be dynamically adjusted according to the changes in the surrounding environment, the activity status of the user and the priority of the actual needs input by the user, so as to more intelligently adjust the color, brightness and other parameters of the light component of the terminal device, thereby increasing the use scenarios of the light component and improving the user experience.

[0081] See also Figure 8 , Figure 8 8 is a schematic diagram of the structure of an embodiment of a terminal device provided by the present application. The terminal device 800 includes a processor 81, a memory 82 and a light component 83 connected to the processor 81, the memory 82 is used to store program data, and the processor 81 is used to execute the program data to implement the following light component control method:

[0082] Acquire the current environment data and user status data of the terminal device to obtain a first control parameter; and receive control data input by the user to obtain a second control parameter; adjust the light-emitting parameters of the lighting component according to the priority of the first control parameter and the second control parameter; wherein the light-emitting parameters include at least the light-emitting brightness, light-emitting color and flashing frequency of the lighting component.

[0083] In one embodiment, the processor 81 is further used to execute: in response to the priority of the first control parameter being higher than the priority of the second control parameter, adjusting the light-emitting parameters of the lighting component according to the first control parameter; in response to the priority of the first control parameter being lower than the priority of the second control parameter, adjusting the light-emitting parameters of the lighting component according to the second control parameter.

[0084] In one embodiment, the processor 81 is further used to execute: in response to the priority of the first control parameter being equal to the priority of the second control parameter, weighting the first control parameter and the second control parameter to obtain a third control parameter; and adjusting the light emitting parameters of the lighting assembly according to the third control parameter.

[0085] In one embodiment, the processor 81 is also used to execute: obtaining a first weight corresponding to the priority of the first control parameter, and obtaining a second weight corresponding to the priority of the second control parameter; weighting the first control parameter and the second control parameter according to the first weight and the second weight to obtain a third control parameter; and adjusting the light-emitting parameters of the lighting component according to the third control parameter.

[0086] In one embodiment, the processor 81 is also used to execute: obtaining current environment data and user status data of the terminal device; identifying the current scene based on the current environment data, and identifying the device status of the terminal device based on the user status data; and obtaining a first control parameter based on the current scene and device status.

[0087] In one embodiment, the processor 81 is further configured to execute: in response to the user status data indicating that the user is in a waving arm state, identifying that the device state of the terminal device is regular movement.

[0088] In one embodiment, the processor 81 is further configured to execute: obtaining a first control parameter according to the current scene and a movement rhythm corresponding to the regular movement.

[0089] In one embodiment, the processor 81 is further used to execute: in response to the current scene representing a dangerous scene, and the device state conforms to the device state corresponding to the dangerous scene, obtaining a preset first control parameter; wherein the preset first control parameter has the highest priority.

[0090] In one embodiment, the processor 81 is further configured to execute: in response to a change in current environmental data of the terminal device, provide a lighting parameter setting interface, where the lighting parameter setting interface is configured to receive control data input by a user.

[0091] See also Fig. 9 , Fig. 9 1 is a schematic diagram of a computer readable and writable storage medium according to an embodiment of the present application. The computer readable and writable storage medium 1000 stores program data 110, which, when executed by a processor, is used to implement the following light component control method:

[0092] Acquire the current environment data and user status data of the terminal device to obtain a first control parameter; and receive control data input by the user to obtain a second control parameter; adjust the light-emitting parameters of the lighting component according to the priority of the first control parameter and the second control parameter; wherein the light-emitting parameters include at least the light-emitting brightness, light-emitting color and flashing frequency of the lighting component.

[0093] In one embodiment, when the program data 110 is executed by a processor, it is used to achieve: in response to the priority of the first control parameter being higher than the priority of the second control parameter, adjusting the light-emitting parameters of the lighting component according to the first control parameter; in response to the priority of the first control parameter being lower than the priority of the second control parameter, adjusting the light-emitting parameters of the lighting component according to the second control parameter.

[0094] In one embodiment, when the program data 110 is executed by the processor, it is used to achieve: in response to the priority of the first control parameter being equal to the priority of the second control parameter, weighting the first control parameter and the second control parameter to obtain a third control parameter; and adjusting the light-emitting parameters of the lighting assembly according to the third control parameter.

[0095] In one embodiment, when the program data 110 is executed by a processor, it is used to implement: obtaining a first weight corresponding to the priority of a first control parameter, and obtaining a second weight corresponding to the priority of a second control parameter; weighting the first control parameter and the second control parameter according to the first weight and the second weight to obtain a third control parameter; and adjusting the light-emitting parameters of the lighting component according to the third control parameter.

[0096] In one embodiment, when the program data 110 is executed by the processor, it is used to achieve: obtaining current environment data and user status data of the terminal device; identifying the current scene based on the current environment data, and identifying the device status of the terminal device based on the user status data; and obtaining the first control parameter based on the current scene and device status.

[0097] In one embodiment, when the program data 110 is executed by the processor, it is used to achieve: in response to the user state data indicating that the user is in a waving arm state, identifying that the device state of the terminal device is regular movement.

[0098] In one embodiment, when the program data 110 is executed by the processor, it is used to achieve: obtaining the first control parameter according to the current scene and the movement rhythm corresponding to the regular movement.

[0099] In one embodiment, when the program data 110 is executed by the processor, it is used to achieve: in response to the current scene representing a dangerous scene, and the device state conforms to the device state corresponding to the dangerous scene, a preset first control parameter is obtained; wherein the preset first control parameter has the highest priority.

[0100] In one embodiment, when the program data 110 is executed by the processor, it is used to achieve: in response to changes in current environmental data of the terminal device, providing a lighting parameter setting interface, the lighting parameter setting interface being used to receive control data input by a user.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only illustrative, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0102] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0103] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0104] The above description is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for controlling a lighting component of a terminal device, characterized in that: The method comprises: Acquire current environment data and user status data of the terminal device to obtain a first control parameter; and receive control data input by the user to obtain a second control parameter; According to the priorities of the first control parameter and the second control parameter, the light emitting parameters of the light component are adjusted; wherein the light emitting parameters at least include the light emitting brightness, light emitting color and flickering frequency of the light component.

2. The method according to claim 1, characterized in that The step of adjusting the light emitting parameters of the light assembly according to the priority of the first control parameter and the second control parameter includes: In response to the priority of the first control parameter being higher than the priority of the second control parameter, adjusting the light emitting parameters of the light assembly according to the first control parameter; In response to the priority of the first control parameter being lower than the priority of the second control parameter, adjusting the lighting parameter of the light assembly according to the second control parameter.

3. The method according to claim 1, characterized in that The step of adjusting the light emitting parameters of the light assembly according to the priority of the first control parameter and the second control parameter includes: In response to the priority of the first control parameter being equal to the priority of the second control parameter, weighting the first control parameter and the second control parameter to obtain a third control parameter; The light emitting parameters of the light assembly are adjusted according to the third control parameter.

4. The method according to claim 1, characterized in that The step of adjusting the light emitting parameters of the light assembly according to the priority of the first control parameter and the second control parameter includes: Obtaining a first weight corresponding to the priority of the first control parameter, and obtaining a second weight corresponding to the priority of the second control parameter; Weighting the first control parameter and the second control parameter according to the first weight and the second weight to obtain a third control parameter; The light emitting parameters of the light assembly are adjusted according to the third control parameter.

5. The method according to claim 1, characterized in that The acquiring the current environment data and the user status data of the terminal device to obtain the first control parameter includes: Acquire current environment data and user status data of the terminal device; Identifying a current scene based on the current environment data, and identifying a device state of the terminal device based on the user state data; The first control parameter is obtained according to the current scene and the device state.

6. The method according to claim 5, characterized in that The identifying the device status of the terminal device according to the user status data includes: In response to the user status data indicating that the user is in a state of waving his arms, identifying that the device state of the terminal device is regular movement; The obtaining of a first control parameter according to the current scene and the device state includes: The first control parameter is obtained according to the current scene and the movement rhythm corresponding to the regular movement.

7. The method according to claim 5, characterized in that The obtaining of a first control parameter according to the current scene and the device state includes: In response to the current scene representing a dangerous scene, and the device state conforming to the device state corresponding to the dangerous scene, the preset first control parameter is obtained; wherein the preset first control parameter has the highest priority.

8. The method according to claim 1, characterized in that After adjusting the light emitting parameters of the light assembly, the method further comprises: In response to a change in the current environment data of the terminal device, a lighting parameter setting interface is provided, wherein the lighting parameter setting interface is used to receive the control data input by a user.

9. A terminal device, characterized in that: The terminal device includes a processor, a memory and a lighting component connected to the processor, the memory is used to store program data, and the processor is used to execute the program data to implement the lighting component control method as described in any one of claims 1-8.

10. A computer-readable and writable storage medium, characterized in that: The computer-readable and writable storage medium stores program data, and when the program data is executed by the processor, it is used to implement the lighting component control method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Illumination control method and electronic equipment

    CN122028258A