Color temperature adjustment method, device, electronic device and storage medium
By introducing temperature sensors and color temperature adjustment of lighting devices in heating equipment, the lighting color temperature is automatically adjusted according to the ambient temperature, which solves the problem of hot and cold discomfort caused by heating equipment during bathing and improves the user experience.
Patent Information
- Application Number
- CN202210273061.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-03-18
AI Technical Summary
The heating and lighting functions of existing heating equipment are independent, which makes it difficult for users to adapt to changes in ambient temperature while bathing, resulting in an uncomfortable experience of hot and cold.
The ambient temperature is obtained through a temperature sensor, the target color temperature value is obtained according to a preset mapping relationship or relationship table, and the color temperature of the lighting device is adjusted to match the ambient temperature to achieve automatic color temperature adjustment.
It improves the user's comfort experience during bathing, and through visual adjustment of warm and cold sensations, helps users adapt to changes in ambient temperature and reduce discomfort caused by hot and cold.
Smart Images

Figure CN114815640B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home technology, and more specifically, to a color temperature adjustment method, device, electronic device, and storage medium. Background Art
[0002] The heating equipment industry belongs to the traditional manufacturing sector, and heating equipment is one of the more common types of heating equipment. Heating equipment generally includes waterproof infrared heat wave tubes and ventilation fans, and its main functions are heating, ventilation, and lighting. In existing heating equipment products, the heating and lighting functions of heating equipment are actually two independent functions and are not related to each other. Because the human body's perception of temperature is very direct, many people often feel that the room temperature is very cold when they first bathe, especially in cold weather, and are hesitant to start bathing. As the bath progresses, the relatively closed bathroom environment, coupled with the influence of water temperature and water vapor, will cause people to feel stuffy. Summary of the Invention
[0003] In view of this, the present application proposes a color temperature adjustment method, device, electronic device and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of the present application provides a color temperature adjustment method, which is applied to an electronic device, wherein the electronic device is connected to a heating device, and the heating device includes a temperature sensor and a lighting device. The method includes: obtaining the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor; obtaining a target color temperature value corresponding to the current ambient temperature, wherein the current ambient temperature is positively correlated with the corresponding target color temperature value; and adjusting the current color temperature value of the lighting device to the target color temperature value.
[0005] In the second aspect, an embodiment of the present application provides a color temperature adjustment device, which is applied to an electronic device, wherein the electronic device is connected to a heating device, and the heating device includes a temperature sensor and a lighting device. The device includes: a temperature acquisition module, which is used to obtain the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor; a color temperature acquisition module, which is used to obtain a target color temperature value corresponding to the current ambient temperature, and the current ambient temperature is positively correlated with the corresponding target color temperature value; and an adjustment module, which is used to adjust the current color temperature value of the lighting device to the target color temperature value.
[0006] In a third aspect, an embodiment of the present application provides an electronic device, one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the above method.
[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the above method.
[0008] The color temperature adjustment method, device, electronic device, and storage medium provided in this application obtain the current ambient temperature of the environment in which the heating device is located, which is collected by a temperature sensor, and then obtain the target color temperature value corresponding to the current ambient temperature. When a lighting device is used for lighting, the lighting device is adjusted from the current color temperature value to the target color temperature value, wherein the current ambient temperature is positively correlated with the corresponding target color temperature value, that is, the higher the current ambient temperature, the higher the corresponding target color temperature value, and the lower the current ambient temperature, the lower the corresponding target color temperature value. This application can automatically adjust the color temperature value of the heating device when the current ambient temperature is changed, so as to adjust the user's perception of the current ambient temperature through color temperature, thereby improving the user experience.
[0009] These and other aspects of the present application will become more readily apparent from the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0011] Figure 1 A schematic diagram of an application environment applicable to an embodiment of the present application is shown;
[0012] Figure 2 A block diagram of the heating device of the present application is shown;
[0013] Figure 3 A schematic diagram of a process for adjusting color temperature according to an embodiment of the present invention is shown;
[0014] Figure 4 Shows the application Figure 3 A flow chart of step S120 of the color temperature adjustment method shown;
[0015] Figure 5 shows graphs of color temperature versus time and temperature versus time;
[0016] Figure 6 A schematic diagram showing a flow chart of a color temperature adjustment method provided by another embodiment of the present application is shown;
[0017] Figure 7 A schematic diagram of the display interface corresponding to the target mode of this application is shown;
[0018] Figure 8 Shows the application Figure 6 A flow chart of step S240 of the color temperature adjustment method shown;
[0019] Figure 9 A module block diagram of a color temperature adjustment device provided by another embodiment of the present application is shown;
[0020] Figure 10 A structural block diagram of an electronic device for executing the color temperature adjustment method according to an embodiment of the present application is shown;
[0021] Figure 11 A module block diagram of a computer-readable storage medium according to an embodiment of the present application is shown for executing the color temperature adjustment method according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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.
[0023] As the main product of heating equipment, heating equipment effectively increases the temperature of the bathroom and changes people's bathing experience in cold seasons. The industry has roughly gone through the following stages of development:
[0024] Phase 1: Before 1999, the leading products in this phase were lamp-heating devices with single functions and applicable seasons;
[0025] The second stage: 1999-2015, this stage adopts lamp heating, air heating, and a combination of lamp and air heating, and the heating equipment is applicable to a wider range of seasons;
[0026] The third stage: From 2015 to the present, heating equipment products have developed rapidly towards intelligence. Heating equipment products have developed into an important part of smart homes, integrating multiple functions and are no longer limited to heating.
[0027] After decades of development, heating equipment has evolved into a household appliance that integrates multiple functions, including heating, ventilation, lighting, and sterilization, becoming a common household appliance in people's lives. However, with the improvement of living standards, people's demands for quality of life are also increasing, and so are the demands on heating equipment. When users use heating equipment, the temperature in the bathroom gradually rises from a low temperature as the infrared heat wave tube of the heating equipment heats the bathroom.
[0028] After long-term research, the inventor found that many people, especially in cold seasons, often feel that the room temperature is very cold when they first start bathing and are hesitant to start bathing. As the bathing time progresses, the relatively closed bathroom environment, coupled with the influence of water temperature and water vapor, will cause people to feel stuffy.
[0029] Therefore, the inventors proposed a color temperature adjustment method, device, electronic device and storage medium provided in the embodiments of the present application. The temperature sensor collects the current temperature of the environment in which the heating equipment is located, obtains the target color temperature value based on the current temperature, and adjusts the lighting device to the target color temperature value, so that the lighting device illuminates at the target color temperature value. It can automatically adjust the color temperature value of the heating equipment when the current ambient temperature changes, so as to adjust the user's perception of the current ambient temperature through color temperature and improve the user experience.
[0030] In order to better understand the color temperature adjustment method, device, electronic device and storage medium provided in the embodiments of the present application, the application environment applicable to the embodiments of the present application is described below.
[0031] Figure 1 A schematic diagram of an application environment suitable for the embodiment of the present application is shown. Figure 1 The color temperature adjustment method provided in the embodiment of the present application can be applied to Figure 1 The color temperature adjustment system 10 shown includes an electronic device 100 and a heater 200. The electronic device 100 is connected to the heater 200. The heater 200 can be installed in a bathroom, such as a bathroom heater. A user can control the operation of the heater 200 through the electronic device 100. For example, the electronic device 100 can control the heating, ventilation, sterilization, and lighting functions of the heater.
[0032] The electronic device 100 may be a user's terminal device, such as a user's smart phone, smart wearable device, computer, tablet computer, etc. The user controls the heating device 200 through an application installed on the terminal device.
[0033] Optionally, the electronic device 100 can also be an intelligent control panel installed indoors, and the user inputs control operations through buttons on the intelligent control panel or the touch screen of the intelligent control panel, and controls the operation of the heating device 200 based on the control operations.
[0034] In the embodiment of the present application, the heating device 200 is used as the heating device for description, but the solution provided in the embodiment of the present application is not limited to application to heating devices, and can also be used on other heating devices with temperature sensors and light adjustment devices.
[0035] For example, Figure 2A block diagram of a heating device that can be controlled by the method provided in the embodiment of the present application is shown. Figure 2 The heating device may include: a lightning protection / EMI circuit, an AC-DC switching power supply, a 24V-3.3V DC-DC circuit and a heating device main control MCU (Micro Control Unit). The lightning protection / EMI circuit, the AC-DC switching power supply, the 24V-3.3VDC-DC circuit and the heating device main control MCU are connected in sequence, and the lightning protection / EMI circuit is connected to the AC input, wherein the AC input may be an AC power from the power grid. The lightning protection / EMI circuit can prevent the heating device from being struck by lightning. The AC-DC switching power supply is used to convert AC power into DC-24V (i.e., 24V DC) and DC-12V (i.e., 12V DC). The 24V-3.3V DC-DC circuit converts the 24V DC from the AC-DC switching power supply into a DC power between 24V-3.3V. The 24V-3.3V DC-DC circuit inputs the obtained DC power between 24V-3.3V into the heating device main control MCU to power the heating device main control MCU.
[0036] See also Figure 2 The heating device may further include: a constant current dimming lighting circuit, which is respectively connected to the AC-DC switching power supply and the heating device main control MCU, the AC-DC switching power supply supplies power to the constant current dimming lighting circuit, and the heating device main control MCU controls the operation of the constant current dimming lighting circuit.
[0037] The heating device may further include: a relay drive circuit, PCT heating unit 1, and PCT heating unit 2, wherein the relay drive circuit, PCT heating unit 1, and PCT heating unit 2 are connected in sequence, and the relay drive circuit is connected to the main control MCU of the heating device. The relay drive circuit is used for overload protection, such as protecting PCT heating unit 1 and PCT heating unit 2. The main control MCU of the heating device sends control instructions to PCT heating unit 1 and PCT heating unit 2 via the relay drive circuit, controlling PCT heating unit 1 and PCT heating unit 2 to heat, thereby increasing the temperature of the environment in which the heating device is located (e.g., a bathroom). The controllers for controlling PCT heating unit 1 and PCT heating unit 2 can both be waterproof infrared heat wave tubes, and the relay drive circuit can be an intermediate relay, an overload relay, etc.
[0038] The heating device may further include a swing-blade stepper motor connected to a relay drive circuit, the relay drive circuit being configured to provide overload protection for the swing-blade stepper motor. The heating device's main control unit (MCU) transmits control instructions to the swing-blade stepper motor via the relay drive circuit to control the operation of the swing-blade stepper motor.
[0039] The heating equipment can also include: two DC24V brushless blower motors, both of which are connected to the heating equipment main control MCU. The heating equipment main control MCU controls the two DC24V brushless blower motors to provide fresh air (ventilation or exhaust) for the environment where the heating equipment is located.
[0040] The heating device may also include: a Zigbee module, a display panel circuit (including power supply), a panel control MCU and a temperature detection module. The Zigbee module is connected to the main control MCU of the heating device through a communication serial port, and the two communicate through the serial port. The Zigbee module is connected to the electronic device. The main control MCU of the heating device is connected to the panel control MCU through a communication serial port, and the two communicate through the serial port. The main control MCU of the heating device is connected to the display panel circuit and the temperature detection module respectively. The display panel circuit is used to adjust the 24V DC power from the main control MCU of the heating device to 12V DC power to power the panel control MCU. Since the control panel is directly touched by the user, in order to ensure the safety of the user, the panel control MCU is powered by a lower voltage 12V DC power. The Zigbee module is integrated with a micro control unit with information processing capabilities. The temperature detection module can be a temperature sensor. The temperature detection module detects the temperature information in the environment where the heating equipment is located and sends the temperature information to the panel control MCU. The panel control MCU sends the temperature information to the heating equipment main control MCU. In order to alleviate the processing pressure of the heating equipment main control MCU, the heating equipment main control MCU transmits the temperature information to the Zigbee module. The Zigbee module processes the temperature information to obtain the processing result, and sends the processing result to the heating equipment main control MCU. The heating equipment main control MCU controls the operation of other devices.
[0041] The heating device may further include a humidity detection module connected to the panel control MCU. The humidity detection module collects humidity in the environment where the heating device is located and sends the collected humidity information to the panel control MCU.
[0042] Optionally, the heating device may further include an emergency button, a digital display circuit, an RGB logo light, an operating status indicator light, and an RGB ambient light PWM dimming module. The emergency button, digital display circuit, RGB logo light, operating status indicator light, and RGB ambient light PWM dimming module are each connected to the panel control MCU.
[0043] The emergency button can control the heating equipment to be turned off or on.
[0044] The panel control MCU controls the digital display circuit to display the humidity and temperature of the environment in which the heating device is located based on the humidity information collected by the humidity detection module and the temperature information collected by the temperature detection module.
[0045] The RGB LOGO light can display the working status of the heating equipment, such as on or off.
[0046] The working status indicator light is used to indicate the network status of the heating device, whether it is connected to the network or not. If the heating device is in the non-networked state, the user can control the heating device locally. If the heating device is in the networked state, the user can control the heating device locally and remotely.
[0047] The heating device includes multiple working modes, and the atmosphere light RGB PWM dimming module is used to indicate the current working mode of the heating device.
[0048] It should be noted that multiple MCUs are set up in the heating equipment in order to reduce the data processing pressure of the MCU and distribute the data processing pressure to different MCUs.
[0049] Figure 3 A flow chart showing a color temperature adjustment method according to an embodiment of the present application is shown. Figure 3 , the embodiment of the present application provides a color temperature adjustment method, which can be applied to Figure 1 The color temperature adjustment system 10 or electronic device 100 in this embodiment is described by taking the color temperature adjustment method applied to the electronic device 100 as an example. The electronic device is connected to a heating device, and the heating device includes a temperature sensor and a lighting device. Figure 3 The process shown in FIG. 1 is described in detail. Specifically, the color temperature adjustment method may include the following steps:
[0050] Step S110: Acquire the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor.
[0051] When a user needs to use a heating device, such as when taking a shower, the user can control the heating device based on an application on an electronic device, an indoor smart control panel, or a remote control to turn it on. When the heating device is turned on, the lighting device and the heating unit on the heating device both start working, and the lighting device illuminates at the current color temperature value. It can be understood that when the heating device is just turned on, the current color temperature value of the lighting device is the initial color temperature value, and the heating unit (for example, a waterproof infrared heat wave tube) heats the environment where the heating device is located (for example, a bathroom), causing the temperature of the environment to gradually increase. The temperature sensor on the heating device detects the current ambient temperature of the environment where the heating device is located.
[0052] Combine Figure 2 The current ambient temperature collected by the temperature sensor is sent to the panel control MCU, and the panel control MCU sends the current ambient temperature to the heating device main control MCU, and then the heating device main control MCU sends the current ambient temperature to the electronic device through the Zigbee module.
[0053] Step S120: Acquire a target color temperature value corresponding to the current ambient temperature, where the current ambient temperature is positively correlated with the corresponding target color temperature value.
[0054] The target color temperature value corresponding to the current ambient temperature is obtained so that the lighting device displays the target color temperature value. The current ambient temperature is positively correlated with the corresponding target color temperature value. That is, if the current ambient temperature is low, the corresponding target color temperature value is low. If the current ambient temperature is high, the corresponding target color temperature value is also high. Color temperature is exactly the opposite of the "warm" and "cold" felt by the user. For example, people usually feel that red, orange, and yellow are warmer, and white and blue are colder. In fact, red has the lowest color temperature, followed by orange, yellow, white, and blue, with blue being the highest color temperature. Therefore, in an embodiment of the present application, if the current ambient temperature is low, the target color temperature value is low, and the user actually feels warm light. If the current ambient temperature is high, the target color temperature value is high, and the user actually feels cold light. Therefore, to a certain extent, the user's perception of the current ambient temperature can be adjusted by changing the color temperature. That is, warm light is used at the beginning of the bath to create a warm atmosphere, so as to lower the user's psychological threshold for bathing; as the bathing time goes by, the temperature gradually rises, making people feel stuffy and hot. At this time, the light of the heating equipment is also gradually adjusted to a cooler light to alleviate the user's feeling of stuffiness and hotness.
[0055] In some embodiments, see Figure 4 , step S120 may include the following sub-steps:
[0056] Sub-step S121: Based on a preset mapping relationship, obtain the target color temperature value corresponding to the current ambient temperature, wherein the preset mapping relationship includes multiple ambient temperatures and the color temperature value corresponding to each ambient temperature, and the ambient temperature and the target color temperature value in the preset mapping relationship are in a linear mapping relationship.
[0057] A preset mapping relationship is established in advance. When the current ambient temperature is obtained, the target color temperature value corresponding to the current ambient temperature is obtained based on the preset mapping relationship. As a method, the change in ambient temperature in each region is usually fixed each year. Therefore, the lowest temperature in the region in a year is used as the lower temperature limit, and the upper temperature limit is set according to the performance of the heating equipment. For example, the upper temperature limit is set according to the maximum tolerable temperature of the heating unit of the heating equipment. The temperature range is preset based on the upper and lower temperature limits to obtain the preset temperature range. When the current ambient temperature is outside the temperature range, the heating equipment may be abnormal, such as the temperature sensor is damaged, or the heating unit of the heating equipment is abnormal and causes excessive heating, then an alarm prompt will be output, and the user can press Figure 2When the current ambient temperature is within the temperature range, the target color temperature value corresponding to the current ambient temperature is obtained based on the preset mapping relationship.
[0058] In this embodiment, a temperature range is preset. When establishing a preset mapping relationship, the ambient temperature is within the preset temperature range. Taking the ambient temperature and color temperature value as a pair, the logarithm of the ambient temperature and color temperature values in the preset mapping relationship can be reduced. When storing the preset mapping relationship, the storage space occupied by the preset mapping relationship on the electronic device is reduced.
[0059] In other embodiments, a relationship table between ambient temperature and color temperature values is pre-established based on a large amount of experimental data. The relationship table includes multiple ambient temperatures and the color temperature value corresponding to each ambient temperature. After obtaining the current ambient temperature, the relationship table is called to obtain the target color temperature value corresponding to the current ambient temperature. For example, the relationship table is shown in Table 1:
[0060] Table 1
[0061] Ambient temperature T (unit, Celsius) Color temperature value K (unit, Kelvin) a1 b1 a2 b2 …… …… an bn
[0062] For example, when the current ambient temperature is a2, according to Table 1, the color temperature value corresponding to the ambient temperature a2 is b2. For another example, when the current ambient temperature is an, according to Table 1, the color temperature value corresponding to the ambient temperature an is bn.
[0063] In other embodiments, a relationship curve diagram is pre-established based on historical data or user experience, including establishing a T (ambient temperature)-t (time) curve and a corresponding K (color temperature)-t (time) curve. When the current ambient temperature is obtained, the corresponding current time point is obtained through the Tt curve, and the color temperature value corresponding to the current time point is obtained on the Kt curve as the target color temperature value. Figure 5 As shown, within the temperature range of [-9,45], a Tt curve is established, and a corresponding Kt curve is established. When the current ambient temperature collected by the temperature sensor at point tx is Tx, the color temperature corresponding to the same point tx on the Kt curve is Kx.
[0064] Step S130: Adjust the current color temperature value of the lighting device to the target color temperature value.
[0065] Adjust the current color temperature of the lighting device to the target color temperature value, and the lighting device illuminates at the target color temperature value so that the color temperature value of the lighting matches the ambient temperature of the heating equipment to improve the user experience.
[0066] Generally speaking, light with a color temperature less than 3300 Kelvin is considered warm light, and light with a color temperature greater than or equal to 6000 Kelvin is considered cool light. Figure 5 The color temperature value range on the Kt curve shown is [2700, 6000]. That is, the Kt curve trends from warm light to cool light. As the heating unit gradually heats the ambient temperature of the heating device, the lighting device adjusts from warm to cool.
[0067] When the user is bathing, Figure 5 As the heating unit heats up, the lighting device gradually changes from warm to cool tones, and can also change from cool to warm tones. At the beginning of bathing, the temperature in the bathroom is low, and the lighting device turns on cool lights to create a cooler atmosphere in the bathroom. As the heating unit heats the bathroom, the temperature in the bathroom rises, and the lighting device is correspondingly adjusted to warm lights to create a higher temperature atmosphere in the bathroom. Users can judge the time to enter the bathroom based on the light of the lighting device.
[0068] The color temperature adjustment method provided in this embodiment obtains the current ambient temperature of the environment in which the heating device is located, which is collected by a temperature sensor, and then obtains the target color temperature value corresponding to the current ambient temperature. When using a lighting device for lighting, the lighting device is adjusted from the current color temperature value to the target color temperature value. Whether the lighting light source is cold light or warm light, it will give the user a visual sense of cold or warm. The color temperature is adjusted with the temperature so that the temperature of the environment in which the heating device is located is adapted to the lighting light. The user can estimate the temperature of the environment in which the heating device is located based on the lighting conditions of the lighting device to improve the user experience.
[0069] Based on the above embodiment, this embodiment provides a color temperature adjustment method. Figure 6 A flow chart showing a color temperature adjustment method according to another embodiment of the present invention is shown. Figure 6 The color temperature adjustment method may specifically include the following steps:
[0070] Step S210: Display mode selection interface.
[0071] The display screen of the electronic device displays a mode selection interface.
[0072] Optionally, when the electronic device is a user terminal, an application for controlling the heating device is installed on the user terminal. The user clicks on the application logo on the desktop to enter the application, and the terminal device displays a corresponding mode selection interface. The display interface displays logos corresponding to multiple modes, for example, a warm air mode logo, an automatic mode logo, an initial mode logo, and so on.
[0073] Optionally, when the electronic device is a control panel, the display screen of the control panel displays a mode selection interface, and the mode selection interface displays labels corresponding to multiple modes. The user only needs to select a label to enter the mode corresponding to the selected label.
[0074] Step S220: In response to the first touch operation on the mode selection interface, turning on the target mode of the heating device.
[0075] A selection interface is displayed on the display screen of the electronic device, and the selection interface displays labels corresponding to multiple modes. The user performs a first touch operation on the mode selection interface, wherein the first touch operation includes touching, clicking, pressing, sliding, dragging, selecting, and the like. For example, the user clicks on the label of the warm air mode on the mode selection interface. The electronic device responds to the user's first touch operation and turns on the target mode of the heating device. For example, if the first touch operation selects the label corresponding to the warm air mode, the warm air mode becomes the target mode, and the heating device turns on the warm air mode accordingly. Accordingly, the display screen of the electronic device displays the interface of the warm air mode, such as Figure 7 shown.
[0076] Step S230: Control the heating unit to heat the environment in which the heating device is located.
[0077] The heating device enters the target mode and controls the heating unit to operate and generate heat so as to heat the environment in which the heating device is located.
[0078] Optionally, the heating unit can be controlled to heat the ambient temperature of the heating device to a target temperature, wherein the target temperature can be set by the user, or the device can remember the temperature set by the user last time, or it can be a default temperature.
[0079] For example, in the scenario where the warm air mode is the target mode, please refer to Figure 7 , the temperature of the heating equipment is 26℃, the heating unit is controlled to work, and the ambient temperature of the heating equipment is heated to 26℃.
[0080] It is understandable that after the warm air mode is turned on, before controlling the heating unit to heat the environment of the heating device, the lighting device can be turned on first. If the lighting device is already turned on, the heating unit can be directly controlled to heat.
[0081] Step S240: Acquire the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor.
[0082] When the heating device enters target mode, the temperature sensor is activated and starts collecting the current ambient temperature of the heating device. Optionally, the temperature sensor can collect the current ambient temperature of the heating device in real time or quasi-real time. Quasi-real time means collecting the current ambient temperature at preset intervals. The temperature sensor can also stop collecting the ambient temperature if the difference between two consecutive collected temperatures is less than a preset value.
[0083] In some embodiments, the target mode includes a target sub-mode, which is entered by a user operation. In the target sub-mode, the heating device adjusts the color temperature according to the temperature of the environment in which the heating device is located. Figure 8 Shows the application Figure 6 A flow chart of step S240 of the color temperature adjustment method shown in FIG. Figure 8 , step S240 may include the following sub-steps:
[0084] Sub-step S241: When the target mode of the heating device is turned on, a display interface corresponding to the target mode is displayed.
[0085] When the target mode of the target heating device is turned on, the display interface of the electronic device displays the display interface corresponding to the target mode. For example, in the scenario where the warm air mode is the target mode, the display interface corresponding to the target mode is as follows: Figure 7 As shown, the display interface displays a "Lighting Mode" column, and there is an on button and a description of "Intelligently adjust the light color temperature as the temperature changes" in the "Lighting Mode" column.
[0086] Sub-step S242: In response to a second touch operation on the display interface corresponding to the target mode, opening a target sub-mode in the target mode.
[0087] When the heating device is in target mode, the heating unit of the heating device heats the heating device. If the user has not enabled the target sub-mode within the target mode, the temperature sensor is not enabled, reducing the energy consumption of the heating device. Accordingly, the color temperature value of the lighting device used for lighting is not adjusted. When the user needs to enable color temperature adjustment, the user performs a second touch operation on the display screen corresponding to the target mode, where the second touch operation includes touching, clicking, pressing, sliding, dragging, selecting, etc. When the electronic device detects the second touch operation on the display screen corresponding to the target mode, it responds to the second touch operation to enable the target sub-mode within the target mode.
[0088] In other embodiments, when the user is bathing, it is inconvenient to operate the terminal device or the smart control panel, and the user can control the heating device through voice. Specifically, when the heating device is in the target mode, the user's voice control information is obtained; according to the voice control information, the heating device is controlled to turn on the target sub-mode under the target mode. For example, in the target mode, the heating unit heats the environment where the heating device is located, and the user sends a voice control message "turn on the target sub-mode". After receiving the voice control message, the electronic device obtains the semantic information of the voice control message, and controls the heating device to turn on the target sub-mode under the target mode according to the semantic information.
[0089] For example, combined Figure 7 , the user performs a second touch operation on the on button on the "Light Bathing Mode" column on the display interface, and the target sub-mode "Light Bathing Mode" under the target mode "Warm Air Mode" is turned on.
[0090] Sub-step S243: obtaining the current ambient temperature of the environment in which the heating device is located, collected by the temperature sensor.
[0091] When the heating device is in the target sub-mode, the temperature sensor is controlled to be turned on, and the temperature sensor collects the current ambient temperature of the environment in which the heating device is located, so as to obtain the color temperature value for adjusting the lighting device according to the current ambient temperature.
[0092] Step S250: Obtain a target color temperature value corresponding to the current ambient temperature.
[0093] The target color temperature value corresponding to the current ambient temperature is obtained, and the lighting device is adjusted according to the target color temperature value so that the lighting light in the environment where the heating equipment is located is adapted to the ambient temperature value.
[0094] In one embodiment, the user's emotion is obtained based on the voice control information, specifically, the user's sound information is obtained based on the voice control information, wherein the sound information includes semantics, intonation, tone, sound intensity, etc., and the user's emotion is determined based on the sound information, and the user's emotions include negative emotions and positive emotions; the target color temperature value is obtained based on the user's emotion and the current ambient temperature.
[0095] To obtain the target color temperature value, specifically, a preset mapping relationship is pre-established between multiple ambient temperatures and the color temperature values corresponding to each ambient temperature. Based on the preset mapping relationship, a first intermediate color temperature value corresponding to the current ambient temperature is obtained. A first color temperature adjustment value is obtained according to the user's mood. The first intermediate color temperature value is adjusted according to the first color temperature adjustment value to obtain the target color temperature value. For example, combined with Figure 5 For example, when the user's emotion is negative, the first color temperature adjustment value is obtained as a positive value. Based on the first color temperature adjustment value, the first intermediate color temperature value is increased to obtain the target color temperature value. In other words, the first intermediate color temperature value is greater than the target color temperature value. The larger the color temperature value, the closer it is to a cool color. This causes the ambient lighting of the heating device to adjust to cool light more quickly to suit the mood of the user with a negative emotion. When the user's emotion is positive, the first color temperature adjustment value is obtained as a negative value. Based on the first color temperature adjustment value, the first intermediate color temperature value is decreased to obtain the target color temperature value. In other words, the first intermediate color temperature value is less than the target color temperature value. The smaller the color temperature value, the closer it is to a warm color. This causes the ambient lighting of the heating device to adjust to cool light more slowly, allowing more time for bathing to be spent in warm light to suit the mood of the user with a positive emotion, thereby improving the user experience.
[0096] In another embodiment, the temperature change rate collected by the temperature sensor is obtained, wherein the temperature change rate represents the rate of temperature change of the environment in which the heating device is located; and the target color temperature value is obtained based on the temperature change rate and the current ambient temperature.
[0097] When the heating unit heats the environment in which the heating device is located, if the temperature change rate collected by the temperature sensor is greater, it means that the temperature change rate of the environment in which the heating device is located is greater. Correspondingly, it can also reflect that the temperature change rate of the heating device is greater. If the temperature change rate of the heating device is too large, the heating device is at risk of exploding, and the fragments of the exploding heating device may cut the user. Therefore, based on the temperature change rate and the current ambient temperature, the target color temperature value is obtained. Specifically, a correspondence between multiple ambient temperatures and the color temperature values corresponding to each ambient temperature, that is, a preset mapping relationship, is pre-established. Based on the preset mapping relationship, a second intermediate color temperature value corresponding to the current ambient temperature is obtained, a second color temperature adjustment value is obtained according to the temperature change rate, and the second intermediate color temperature value is adjusted according to the second color temperature adjustment value to obtain the target color temperature value. For example, when the temperature change rate is greater than the preset change rate, a larger second color temperature adjustment value is obtained, and the second intermediate color temperature value is quickly adjusted to increase according to the larger second color temperature adjustment value to obtain the target color temperature value. When the temperature change rate is less than the preset change rate, a smaller second color temperature adjustment value is obtained, and the second intermediate color temperature value is increased according to the smaller second color temperature adjustment value to obtain the target color temperature value.
[0098] Step S260: Adjust the current color temperature value of the lighting device to the target color temperature value.
[0099] In this embodiment, the specific description of step S260 can refer to step S130 in the above embodiment, and will not be repeated here.
[0100] Optionally, users can Figure 7 The heating device will exit the target sub-mode "Light Mode", but it will still be in the target mode "Warm Mode". The heating unit will continue to heat the environment where the heating device is located. Figure 7 Operate on the display interface of the target mode and exit the target display mode. When exiting the target display mode "warm air mode", the target sub-mode "light bathing mode" under the target display mode "warm air mode" is automatically exited, and the heating equipment can be restored to the default mode and illuminated with the color temperature value corresponding to the default mode.
[0101] The color temperature adjustment method provided in this embodiment is an electronic device display mode selection interface. When a first touch operation of the user based on the mode selection interface is detected, the target mode of the heating device is turned on. In the target mode, the heating unit is controlled to heat the environment in which the heating device is located. When a second touch operation of the user based on the display interface corresponding to the target mode is detected, the target sub-mode under the target mode is turned on. In the target sub-mode, the temperature sensor is controlled to detect the current ambient temperature of the environment in which the heating device is located, and the target color temperature value is obtained based on the current ambient temperature. Then, the current color temperature value of the lighting device is adjusted to the target color temperature value to adapt to the current ambient temperature, thereby improving the user experience. In addition, the target mode and the target sub-mode are turned on based on the user operation and usage requirements, so that the color temperature value of the environment in which the heating device is located can be freely controlled by the user as the ambient temperature changes, thereby improving the fun and further improving the user experience.
[0102] To implement the above method embodiments, this embodiment provides a color temperature adjustment device, which is applied to an electronic device. The electronic device is connected to a heating device, and the heating device includes a temperature sensor and a lighting device. Figure 9 A block diagram of a color temperature adjustment device according to another embodiment of the present invention is shown. Figure 9 The color temperature adjustment device 300 includes: a temperature acquisition module 310 , a color temperature acquisition module 320 and an adjustment module 330 .
[0103] The temperature acquisition module 310 is used to obtain the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor;
[0104] The color temperature acquisition module 320 is used to acquire a target color temperature value corresponding to the current ambient temperature, wherein the current ambient temperature is positively correlated with the corresponding target color temperature value;
[0105] The adjustment module 330 is configured to adjust the current color temperature value of the lighting device to the target color temperature value.
[0106] Optionally, the color temperature acquisition module 320 includes: a mapping module.
[0107] A mapping module is used to obtain the target color temperature value corresponding to the current ambient temperature based on a preset mapping relationship, wherein the preset mapping relationship includes a correspondence between multiple ambient temperatures and the color temperature value corresponding to each ambient temperature, and the ambient temperature and the target color temperature value in the preset mapping relationship are in a linear mapping relationship.
[0108] Optionally, the color temperature acquisition module 320 includes: an interval acquisition module and a target color temperature value acquisition module.
[0109] The interval acquisition module is used to obtain the preset temperature interval;
[0110] The target color temperature value acquisition module is configured to acquire the target color temperature value corresponding to the current ambient temperature based on the preset mapping relationship when the current ambient temperature is within the temperature range.
[0111] Optionally, the heating device includes a heating unit, and the color temperature adjustment device 300 further includes: a display module, a first touch module and a heating module.
[0112] Display module, used for displaying the mode selection interface;
[0113] a first touch control module, configured to activate a target mode of the heating device when a first touch control operation based on the mode selection interface is detected;
[0114] The heating module is used to control the heating unit to heat the environment in which the heating device is located.
[0115] Optionally, the temperature acquisition module 310 includes: an interface display module, a second touch module and a current ambient temperature acquisition module.
[0116] An interface display module, configured to display a display interface corresponding to the target mode when the target mode of the heating device is turned on;
[0117] a second touch module, configured to activate a target sub-mode under the target mode in response to a second touch operation on the display interface corresponding to the target mode;
[0118] The current ambient temperature acquisition module is used to obtain the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor.
[0119] Optionally, the current ambient temperature acquisition module includes: a sensor starting module and a sensor acquisition module.
[0120] A sensor start module is used to start the temperature sensor;
[0121] The sensor acquisition module is used to obtain the current ambient temperature of the heating device collected by the temperature sensor.
[0122] Optionally, the color temperature adjustment device 300 further includes: a voice control module and a voice activation module.
[0123] a voice control module, configured to obtain user voice control information when the heating device is in the target mode;
[0124] The voice activation module is used to control the heating device to activate the target sub-mode in the target mode according to the voice control information.
[0125] Optionally, the color temperature acquisition module 320 includes: an emotion acquisition module and an emotion control module.
[0126] An emotion acquisition module, configured to acquire the user's emotion according to the voice control information;
[0127] The emotion control module is used to obtain the target color temperature value according to the user's emotion and the current ambient temperature.
[0128] Optionally, the color temperature acquisition module 320 includes: a temperature change module and a temperature control module.
[0129] A temperature change module, configured to obtain a temperature change rate collected by the temperature sensor, wherein the temperature change rate represents a rate of temperature change of the environment in which the heating device is located;
[0130] The temperature control module is configured to obtain the target color temperature value according to the temperature change rate and the current ambient temperature.
[0131] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the modules / units / sub-units / components in the above-described device can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0132] In several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0133] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0134] Those skilled in the art will clearly understand that the color temperature adjustment device provided in the embodiment of the present application can achieve Figures 3 to 8 For the convenience and brevity of description, the various processes implemented by the electronic device in the method embodiment are described above. The specific working processes of the devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0135] In several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0136] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.
[0137] An embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the processor loads and executes the at least one instruction, at least one program, or the code set or instruction set to implement the color temperature adjustment method provided in the above-described method embodiment. In this embodiment, the electronic device may be an electronic device capable of running an application, such as a smart gateway.
[0138] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for the functions, etc.; the data storage area can store data created based on the use of the device, etc. In addition, the memory can include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0139] Figure 10 The block diagram of the structure of the electronic device used to execute the color temperature adjustment method according to the embodiment of the present application is shown. In this embodiment, the electronic device can be an electronic device such as a smart gateway that can run an application. Figure 10As shown, the electronic device 100 may have relatively large differences due to different configurations or performances, and may include one or more processors 710 (the processor 710 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 730 for storing data, and one or more storage media 720 (such as one or more mass storage devices) for storing application programs 723 or data 722. Among them, the memory 730 and the storage medium 720 can be temporary storage or permanent storage. The program stored in the storage medium 720 may include one or more modules, each module may include a series of instruction operations on the electronic device 100. Furthermore, the processor 710 may be configured to communicate with the storage medium 720 to execute a series of instruction operations in the storage medium 720 on the electronic device 100. The electronic device 100 may also include one or more power supplies 760, one or more wired or wireless network interfaces 750, one or more input and output interfaces 740, and / or one or more operating systems 721, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0140] The input / output interface 740 can be used to receive or send data via a network. Specific examples of the aforementioned network may include a wireless network provided by a communications provider of the electronic device 100. In one embodiment, the input / output interface 740 includes a network adapter (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one embodiment, the input / output interface 740 can be a radio frequency (RF) module for wirelessly communicating with the Internet.
[0141] It can be understood by those skilled in the art that Figure 10 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 10 More or fewer components than shown, or with Figure 10 Different configurations shown.
[0142] The embodiment of the present application further provides a computer-readable storage medium 800, Figure 11The following is a block diagram of a computer-readable storage medium used to execute the color temperature adjustment method according to an embodiment of the present application. A computer-readable storage medium 800 stores a computer program 810. This computer program 810 is executed by a processor to implement the various processes of the color temperature adjustment method described above, achieving the same technical effects. To avoid repetition, the details are omitted here. The computer-readable storage medium 800 may be, for example, a read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0143] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be an intelligent gateway, mobile phone, computer, server, air conditioner or network device, etc.) to execute the methods described in each embodiment of the present application.
[0145] To sum up, the present application provides a color temperature adjustment method, device, electronic device and storage medium, which obtains the current ambient temperature of the environment in which the heating equipment is located, collected by a temperature sensor, and then obtains the target color temperature value corresponding to the current ambient temperature. When using a lighting device for lighting, the lighting device is adjusted from the current color temperature value to the target color temperature value, so that the temperature of the environment in which the heating equipment is located is adapted to the lighting light. The user can estimate the temperature of the environment in which the heating equipment is located based on the lighting conditions of the lighting device to improve the user experience.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A color temperature adjustment method, characterized in that: The electronic device is connected to a heating device, wherein the heating device includes a heating unit, a temperature sensor, and a lighting device. The method includes: The electronic device turns on the target mode of the heating device; In the target mode, controlling the heating unit to heat the environment in which the heating device is located, and illuminating the lighting device at an initial color temperature value; The heating device acquires the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor; When the current ambient temperature is within the temperature range, a target color temperature value corresponding to the current ambient temperature is obtained based on a preset mapping relationship, the current ambient temperature is positively correlated with the corresponding target color temperature value, and the target color temperature value ranges from [2700-6000]; Adjusting the current color temperature value of the lighting device to the target color temperature value; In the case of a target mode in which the electronic device turns off the heating device, the current color temperature of the lighting device is adjusted to an initial color temperature value.
2. The method according to claim 1, characterized in that When the current ambient temperature is within the temperature range, obtaining a target color temperature value corresponding to the current ambient temperature based on a preset mapping relationship includes: Get the preset temperature range; When the current ambient temperature is within the temperature range, a target color temperature value corresponding to the current ambient temperature is obtained based on a preset mapping relationship.
3. The method according to claim 1 or 2, characterized in that The preset mapping relationship includes multiple ambient temperatures and a color temperature value corresponding to each ambient temperature. The ambient temperatures and target color temperature values in the preset mapping relationship are in a linear mapping relationship.
4. The method according to claim 1, wherein Before the heating device acquires the current ambient temperature of the environment in which the heating device is located collected by the temperature sensor, the method further includes: Display mode selection interface; In response to a first touch operation on the mode selection interface, turning on a target mode of the heating device; The heating unit is controlled to heat the environment in which the heating device is located.
5. The method according to claim 4, characterized in that The heating device obtains the current ambient temperature of the environment in which the heating device is located, which is collected by the temperature sensor, including: When the target mode of the heating device is turned on, a display interface corresponding to the target mode is displayed; In response to a second touch operation on the display interface corresponding to the target mode, opening a target sub-mode in the target mode; The current ambient temperature of the environment in which the heating device is located, collected by the temperature sensor, is obtained.
6. The method according to claim 5, characterized in that The obtaining of the current ambient temperature of the environment in which the heating device is located, collected by the temperature sensor, includes: Start the temperature sensor; The current ambient temperature of the heating device collected by the temperature sensor is obtained.
7. The method according to claim 4, characterized in that After controlling the heating unit to heat the environment of the heating device, the method further includes: When the heating device is in the target mode, obtaining user voice control information; The heating device is controlled to start a target sub-mode in the target mode according to the voice control information.
8. The method according to claim 7, characterized in that The obtaining of the target color temperature value corresponding to the current ambient temperature includes: Acquiring the user's emotion according to the voice control information; The target color temperature value is obtained according to the user's emotion and the current ambient temperature.
9. The method according to claim 4, characterized in that The obtaining of the target color temperature value corresponding to the current ambient temperature includes: Acquiring a temperature change rate collected by the temperature sensor, wherein the temperature change rate represents a rate of temperature change of an environment in which the heating device is located; The target color temperature value is obtained according to the temperature change rate and the current ambient temperature.
10. A color temperature adjustment device, characterized in that: The electronic device is connected to a heating device, wherein the heating device includes a heating unit, a temperature sensor, and a lighting device, and the device includes: a temperature acquisition module, configured to enable the electronic device to activate a target mode of the heating device; control the heating unit to heat the environment in which the heating device is located in the target mode, and illuminate the lighting device at an initial color temperature value; and enable the heating device to acquire the current ambient temperature of the environment in which the heating device is located, as collected by the temperature sensor; a color temperature acquisition module, configured to acquire, when the current ambient temperature is within a temperature range, a target color temperature value corresponding to the current ambient temperature based on a preset mapping relationship, wherein the current ambient temperature is positively correlated with the corresponding target color temperature value, and the target color temperature value ranges from [2700-6000]; The adjustment module is used to adjust the current color temperature value of the lighting device to the target color temperature value; when the electronic device turns off the target mode of the heating device, the current color temperature of the lighting device is adjusted to the initial color temperature value.
11. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and apparatus for controlling intelligent lighting device
CN105430841A
Bath heater control method, system thereof, bathroom mirror and bath heater
CN106895477A
Lamp control method, device and system
CN110769547A
Method for operating heating / cooling system in vehicle e.g. rail vehicle, involves adjusting heating power and cooling capacity of heating / cooling system to lower values as compared to neutral value relative to neutral color temperature
DE102011004790A1