System and method for controlling bath heater through mirror cabinet

By setting up control chips, wireless communication modules and infrared control modules in the mirror cabinet, remote control of the bathroom heater by the user terminal is realized, solving the power waste and security risks caused by forgetting to turn off the bathroom heater.

CN120010334AInactive Publication Date: 2025-05-16XINLING ELECTRONIC TECH DEV (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510111879.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-05-16
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the light strips of the bathroom heater and the mirror cabinet are two independent devices, which lack relevance, resulting in the user may forget to turn off the bathroom heater, causing power waste and safety risks.

Method used

A system for controlling a bathroom heater with mirror cabinet is designed. By setting a control chip, a wireless communication module and a second infrared module in the mirror cabinet, the user terminal can connect to the mirror cabinet through wireless communication. The mirror cabinet communicates with the bathroom heater through infrared control module, thereby realizing remote control of the bathroom heater by the user terminal.

Benefits of technology

The user terminal remotely controls the bathroom heater through the mirror cabinet, avoiding the power waste and safety risks caused by forgetting to turn off the bathroom heater, and at the same time, there is no need to change the structure of the existing bathroom heater.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010334A_ABST
    Figure CN120010334A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent home control, in particular to a system and method for controlling a bath heater through a mirror cabinet, the system comprises the mirror cabinet and the bath heater, a first infrared module is arranged in the bath heater, and the mirror cabinet comprises a cabinet body, a lamp strip, a control chip, a second infrared module, a PWM control module and a wireless communication module. The one or more lamp strips are arranged on the cabinet body, the control chip is connected with the lamp strips, the second infrared control module, the PWM control module and the wireless communication module, and the PWM control module is connected with the lamp strips; wherein the second infrared module is in infrared control signal communication with the first infrared module; and the wireless communication module is used for receiving a wireless communication signal sent by a user terminal so as to send an instruction to the second infrared module and the PWM control module through the control chip. It can be seen that the system for controlling the bath heater through the mirror cabinet can control the bath heater.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of smart home technology, and in particular to a system and method for controlling a bathroom heater with a mirror cabinet. Background Art

[0002] With the development of society, some family bathrooms will install bathroom heater devices with infrared remote control, which are responsible for the heating and cooling of the bathroom, ventilation and dehumidification, etc. Some other families will also install mirror cabinets in the bathroom, and install light strips on the mirror cabinets, which are used for dressing lighting, etc.

[0003] However, the bathroom heater and mirror cabinet light strips are two independent devices, usually supplied by different manufacturers and controlled by their own independent systems, with no correlation between them. In particular, bathroom heaters have high power consumption. If users forget to turn off the bathroom heater when leaving the bathroom, it is easy to waste electricity and pose a safety risk. Summary of the invention

[0004] In order to overcome the above defects of the prior art, the present invention provides a system and method for controlling a bathroom heater with a mirror cabinet to solve the problems raised in the above background technology.

[0005] The technical solution adopted by the present invention to solve the problems in the prior art is as follows: a system for controlling a bathroom heater by a mirror cabinet comprises a mirror cabinet and a bathroom heater, wherein a first infrared module is arranged in the bathroom heater, the mirror cabinet comprises a cabinet body, a light strip, a control chip, a second infrared module, a PWM control module, and a wireless communication module, one or more of the light strips are arranged on the cabinet body, the control chip is respectively connected to the light strip, the second infrared control module, the PWM control module and the wireless communication module, and the PWM control module is connected to the light strip; wherein,

[0006] The second infrared module communicates with the first infrared module through infrared control signals;

[0007] The wireless communication module is used to receive a wireless communication signal sent by a user terminal, so as to send instructions to the second infrared module and the PWM control module through the control chip.

[0008] It can be seen that in a system of a mirror cabinet controlling a bathroom heater in the present application, the bathroom heater with a first infrared module in the prior art is utilized to have an infrared transceiver function, and a control chip, a wireless communication module and a second infrared module are arranged in the mirror cabinet, so that the user terminal can achieve wireless communication connection with the mirror cabinet through the wireless communication module, and the mirror cabinet can achieve infrared control of the bathroom heater through the second infrared module, so that the mirror cabinet can be controlled by the user terminal, and then the mirror cabinet controls the bathroom heater, and finally the user terminal can control the bathroom heater through the direction of wireless remote control.

[0009] As a preferred solution of the present invention, the mirror cabinet further comprises:

[0010] A temperature and humidity sensor connected to the control chip, the temperature and humidity sensor being used to sense the temperature and / or humidity of the environment where the mirror cabinet is located;

[0011] A human presence sensor connected to the control chip, the human presence sensor being used to sense whether there is a human body in the environment where the mirror cabinet is located; and

[0012] An air quality sensor is connected to the control chip, and the air quality sensor is used to sense ammonia or carbon dioxide in the environment where the mirror cabinet is located.

[0013] As a preferred solution of the present invention, the wireless communication module is a LORA transceiver module;

[0014] The mirror cabinet also includes a LORA gateway, the LORA transceiver module is wirelessly connected to the LORA gateway, and the LORA gateway is communicatively connected to a cloud server.

[0015] As a preferred solution of the present invention, the mirror cabinet further includes a DC power supply module and a buck module, the DC power supply is connected to the light strip and the buck module respectively, and the buck module is connected to the control chip.

[0016] A method for controlling a bathroom heater by a mirror cabinet, comprising the system for controlling a bathroom heater by a mirror cabinet, wherein the system for controlling a bathroom heater by a mirror cabinet adopts the following method to control the bathroom heater, and the method comprises:

[0017] Obtain the infrared control code of the bathroom heater, and pre-store the infrared control code in the control chip of the mirror cabinet to form a code library;

[0018] The control chip obtains the control instruction of the user terminal through the wireless communication module; and

[0019] The control chip retrieves the corresponding infrared control code in the code library according to the control instruction, and uses the second infrared module of the mirror cabinet to communicate with the first infrared module of the bathroom heater.

[0020] As a preferred solution of the present invention, the step of obtaining the infrared control code of the bathroom heater includes:

[0021] The control chip obtains the infrared control code of the corresponding model of bathroom heater from the cloud server through the wireless communication module; or

[0022] The control chip matches and learns with the infrared remote controller of the bathroom heater through the second infrared module to obtain the infrared control code of the bathroom heater.

[0023] As a preferred embodiment of the present invention, the method further comprises:

[0024] The human presence sensor is used to sense whether there is a human body in the environment. If the human body is sensed, the control chip controls the PWM control module to control the light strip to emit light;

[0025] The bathroom heater has a ventilation mode, and uses an air quality sensor to sense environmental ammonia or carbon dioxide. When the concentration of the ammonia or carbon dioxide is greater than a preset value, and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the ventilation mode.

[0026] The bathroom heater has a cooling or heating air mode, and uses a temperature and humidity sensor to sense the ambient temperature. When the ambient temperature is greater than a preset value, and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the cooling or heating air mode.

[0027] The bathroom heater has a dehumidification mode, and uses a temperature and humidity sensor to sense the ambient humidity. When the ambient humidity is greater than a preset value and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the dehumidification mode.

[0028] As a preferred embodiment of the present invention, the method further comprises:

[0029] After the second infrared module communicates with the first infrared module and sends a control instruction to turn on or off the bathroom heater to the first infrared module, the temperature and humidity information of the current environment is sensed by the temperature and humidity sensor, and the temperature and humidity information is recorded as information T1;

[0030] After the preset interval time is reached, the temperature and humidity information of the current environment is sensed again by using the temperature and humidity sensor, and the temperature and humidity information is recorded as information T2;

[0031] Compare the information T1 and the information T2. ​​If the difference between the information T1 and the information T2 is smaller than a preset value, it is determined that the bathroom heater does not execute the on or off control instruction sent by the second infrared module.

[0032] As a preferred solution of the present invention, the process of determining that the bathroom heater has not executed the on or off control instruction sent by the second infrared module further includes:

[0033] The second infrared module continues to send a control instruction to turn on or off the bathroom heater to the first infrared module; or

[0034] The wireless communication module is used to send a notification to the user terminal that the bathroom heater has not executed the on or off control instruction sent by the second infrared module.

[0035] As a preferred embodiment of the present invention, the method further comprises:

[0036] Use the Bluetooth module to connect and match the user terminal with the control chip;

[0037] The user terminal obtains the infrared control code of the corresponding model of bathroom heater from the cloud server and transmits it to the control chip through the wireless communication module. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a structural block diagram of a system and method for controlling a bathroom heater by a mirror cabinet of the present invention;

[0039] Figure 2 The invention discloses a principle block diagram of a method for controlling a bathroom heater with a mirror cabinet.

[0040] Numbers in the figure:

[0041] 100, mirror cabinet; 110, light strip; 120, control chip; 130, second infrared module; 140, PWM control module; 150, wireless communication module; 160, humidity sensor; 170, human presence sensor; 180, air quality sensor; 190, DC power supply module; 191, buck module;

[0042] 200. Mobile terminal; 300. LORA gateway; 400. Cloud server. Specific embodiments

[0043] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0044] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.

[0045] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention.

[0046] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of some inventions, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0047] At present, a mirror cabinet and a bathroom heater with an infrared remote control function are generally provided in a bathroom environment. Based on the bathroom heater with an infrared remote control function in the prior art, the present application provides a system for controlling the bathroom heater with a mirror cabinet, so that the mirror cabinet can control the bathroom heater, and the mirror cabinet can be controlled by a user terminal such as a mobile terminal such as a mobile phone, so that the user terminal can remotely control the bathroom heater with an infrared function through the mirror cabinet as a transit medium, that is, the mirror cabinet can be used as an infrared remote control of the bathroom heater to avoid power outage or dangerous situations caused by forgetting to turn off the bathroom heater.

[0048] like Figure 1 As shown: A system for controlling a bathroom heater by a mirror cabinet includes a mirror cabinet 100 and a bathroom heater, wherein a first infrared module is arranged in the bathroom heater. The mirror cabinet 100 can control the bathroom heater by sending an infrared control signal to the first infrared module.

[0049] Furthermore, the mirror cabinet 100 includes a cabinet body, a light strip 110, a control chip 120, a second infrared module 130, a PWM control module 140 and a wireless communication module 150. One or more light strips 110 are arranged on the cabinet body. The control chip 120 is respectively connected to the light strip 110, the second infrared control module, the PWM control module 140 and the wireless communication module 150, and the PWM control module 140 is connected to the light strip 110.

[0050] The second infrared module 130 communicates with the first infrared module via infrared control signals.

[0051] The wireless communication module 150 is used to receive a wireless communication signal sent by a user terminal, so as to send instructions to the second infrared module 130 and the PWM control module 140 through the control chip 120 .

[0052] It is understandable that the light strip 110 of a conventional mirror cabinet 100 is generally turned on and off by a power switch, so when the power switch is turned off, the entire mirror cabinet 100 will be in a power-off state. In the present application, the control chip 120 can use the PWM control module 140 to control the operation of the light strip 110 through pulse width modulation (PWM), such as turning the light strip 110 on, off, adjusting the brightness and color temperature. Compared with the power on-off switch to control the operation of the light strip 110, this method can keep the entire mirror cabinet 100 in a normal working state. Even if the light strip 110 is turned off or the brightness becomes 0, the entire mirror cabinet 100 can still be in a normal working state. In this way, it can always ensure that the mirror cabinet 100 and the bathroom heater can communicate.

[0053] Specifically, in one embodiment, the user terminal can establish wireless communication with the mirror cabinet 100 through the wireless communication module 150. The user terminal, such as a mobile phone, can send a control instruction to the control chip 120 through the wireless communication module 150, and the control chip 120 can control the second infrared module 130 to communicate with the first infrared module according to the instruction, thereby controlling the switch or shutdown of the bathroom heater or the adjustment of the mode state.

[0054] It can be seen that in a system of a mirror cabinet 100 controlling a bathroom heater of the present application, the bathroom heater with a first infrared module in the prior art is utilized to have an infrared transceiver function, and a control chip 120, a wireless communication module 150 and a second infrared module 130 are arranged in the mirror cabinet 100, so that the user terminal can realize wireless communication connection with the mirror cabinet 100 through the wireless communication module 150, and the mirror cabinet 100 can realize infrared control of the bathroom heater through the second infrared module 130, so that the mirror cabinet 100 can be controlled by the user terminal, and then the mirror cabinet 100 controls the bathroom heater, and finally the user terminal can control the bathroom heater through the direction of wireless remote control.

[0055] In addition, the above system can be implemented without changing the structure of the bathroom heater in the prior art.

[0056] Furthermore, in one embodiment, the wireless communication module 150 may adopt a LORA transceiver module, and the mirror cabinet 100 may also include a LORA gateway 300. The LORA transceiver module is wirelessly connected to the LORA gateway 300, and the LORA gateway 300 realizes wireless communication with the cloud server 400. The cloud server 400 can communicate with the user terminal of the user through the mobile communication network.

[0057] It can be understood that the LORA transceiver module and the LORA gateway 300 are mature communication devices, so the communication method using the LORA transceiver module and the LORA gateway 300 can facilitate wireless communication between the user terminal and the mirror cabinet 100, and then facilitate the user's wireless control of the bathroom heater.

[0058] See also Figure 1 In one embodiment, the mirror cabinet 100 may further include a humidity sensor 160 . The temperature and humidity sensor 160 is connected to the control chip 120 . The temperature and humidity sensor 160 is used to sense the temperature and / or humidity of the environment where the mirror cabinet 100 is located.

[0059] In addition, since the user terminal can realize wireless communication with the mirror cabinet 100 , the user can determine whether the bathroom heater in the bathroom is turned off through the temperature and humidity detected by the temperature and humidity sensor 160 .

[0060] For example, when the air humidity detected by the temperature and humidity sensor 160 is significantly lower than the normal value when the bathroom heater is not turned on, and the temperature is significantly higher than the normal value when the bathroom heater is not turned on, the user can judge that the bathroom heater is not turned off. At this time, the user can send a control instruction to make the second infrared module 130 in the mirror cabinet 100 send a closing instruction to the first infrared module of the bathroom heater to turn off the bathroom heater.

[0061] In one embodiment, the mirror cabinet 100 may further include a human presence sensor 170, which is connected to the control chip 120 and is used to sense whether there is a human presence in the environment of the mirror cabinet 100. The human presence sensor 170 may be a millimeter wave radar.

[0062] Specifically, when the human presence sensor 170 detects the presence of a human body, the control chip 120 can control the light strip 110 to turn on. In one embodiment, when the presence of a human body is detected, the control chip 120 can communicate with the first infrared module through the second infrared module 130, thereby controlling the bathroom heater to turn on.

[0063] In one embodiment, the mirror cabinet 100 may further include an air quality sensor 180 . The air quality sensor 180 is connected to the control chip 120 . The air quality sensor 180 is used to sense ammonia or carbon dioxide in the environment where the mirror cabinet 100 is located.

[0064] For example, when the human presence sensor 170 detects the presence of a human body, and the air quality sensor 180 is used to sense that the value of ammonia or carbon dioxide in the environment where the mirror cabinet 100 is located is higher than a preset value, the control chip 120 can communicate with the first infrared module through the second infrared module 130, thereby controlling the bathroom heater to turn on the ventilation mode.

[0065] See also Figure 1 In one embodiment, the mirror cabinet 100 may further include a DC power supply module 190 and a buck module 191 , the DC power supply is connected to the light strip 110 and the buck module 191 respectively, and the buck module 191 is connected to the control chip 120 .

[0066] For example, the DC power supply module 190 can convert AC220V voltage into DC24V voltage, and DC24V can directly supply power to the light strip 110 , while the step-down module 191 can convert DC24V voltage into DC3.3V voltage to supply power to the control chip 120 .

[0067] See also Figure 2 The present application also provides a method for a mirror cabinet to control a bathroom heater, including a system for a mirror cabinet to control a bathroom heater according to an embodiment of the present application. The system for a mirror cabinet to control a bathroom heater adopts the following method to control the bathroom heater, and the method includes:

[0068] Step S100, obtaining the infrared control code of the bathroom heater, and pre-storing the infrared control code in the control chip of the mirror cabinet to form a code library.

[0069] In some embodiments, the control chip can obtain the infrared control code of the corresponding model of the bathroom heater from the cloud server through the wireless communication module.

[0070] For example, the cloud server can store infrared control codes of bathroom heaters of various brands to form a control code database. Users can obtain the infrared control code of the corresponding model of bathroom heater from the cloud server through the wireless communication module, and then store the infrared control code in the control chip.

[0071] In other embodiments, if the cloud server does not have the infrared control code of the user's bathroom heater, the control chip can match and learn with the infrared remote control of the bathroom heater through the second infrared module to obtain the infrared control code of the bathroom heater.

[0072] It should be noted that the infrared remote controller of the bathroom heater is also equipped with an infrared module, so matching and learning between infrared modules is a conventional technical means and will not be described in detail here. For example, the infrared remote controller of the bathroom heater purchased by a third party can be matched and learned with the bathroom heater, so that the infrared remote controller of the bathroom heater purchased by the third party can control the bathroom heater.

[0073] Step S300: The control chip obtains a control instruction from the user terminal through the wireless communication module.

[0074] Specifically, the user terminal can establish wireless communication with the wireless communication module of the mirror cabinet, and the user terminal can send control instructions to the control chip in the mirror cabinet by means of wireless communication.

[0075] In one embodiment, a Bluetooth module may be used to connect and match the user terminal with the control chip to achieve pairing and binding between the user terminal and the mirror cabinet.

[0076] Specifically, the mirror cabinet may further include a Bluetooth module, and the Bluetooth module is connected to the control chip.

[0077] In addition, after the user terminal is bound to the mirror cabinet via Bluetooth communication, the user terminal may also send control instructions to the mirror cabinet via Bluetooth communication.

[0078] In addition, the user's control instructions may include the operation commands and operation parameters of the mirror cabinet and the operation commands and operation parameters of the bathroom heater. The operation commands of the mirror cabinet may include opening and closing the mirror cabinet, and the operation parameters of the mirror cabinet may include the brightness and color temperature of the light strip. The operation commands of the bathroom heater may include opening and closing the bathroom heater, and the operation parameters of the bathroom heater may include the operation mode of the bathroom heater, such as ventilation mode, heating and cooling mode, dehumidification mode, air volume, temperature, etc.

[0079] Step S500, the control chip retrieves the corresponding infrared control code in the code library according to the control instruction, and uses the second infrared module of the mirror cabinet to communicate with the first infrared module of the bathroom heater.

[0080] For example, when the user terminal sends a control instruction to turn off the bathroom heater to the control chip, the main control chip can retrieve the infrared control code for turning off the air conditioner in the code library, and then enable the second infrared module to send an infrared control code to the first infrared module of the bathroom heater to stop the bathroom heater from working.

[0081] That is to say, in the method of controlling the bathroom heater by the mirror cabinet of the present application, the mirror cabinet installed in the bathroom is used as the infrared remote controller of the bathroom heater with infrared remote control function. It is only necessary to set a second infrared module in the mirror cabinet to realize infrared control with the first infrared module of the bathroom heater. The method does not require modification of the bathroom heater. In addition, by setting a wireless communication module in the mirror cabinet, the user terminal can realize wireless communication with the mirror cabinet, and then remote control of the mirror cabinet can be realized, and remote control of the bathroom heater can be realized.

[0082] In some embodiments, in order to facilitate wireless communication between the user terminal and the mirror cabinet, the wireless communication module provided in the mirror cabinet may be a LORA transceiver module, and the LORA transceiver module communicates wirelessly with the cloud server through a LoRa gateway.

[0083] When the built-in wireless communication module of the mirror cabinet is a LORA transceiver module, you only need to set up a LoRa gateway near the mirror cabinet to realize the communication between the mirror cabinet and the cloud server.

[0084] The user terminal can communicate with the cloud server through the mobile communication network, thereby realizing wireless communication between the user terminal and the mirror cabinet.

[0085] In one embodiment, the method for the mirror cabinet to control the bathroom heater also includes using a human presence sensor to sense whether there is a human body in the environment. If the presence of a human body is sensed, the control chip can control the PWM control module to control the light strip to emit light.

[0086] Specifically, when the human presence sensor senses the presence of a human body in the environment, the sensing signal can be sent to the control chip, and the control signal can control the PWM control module to control the light strip to emit light according to the signal fed back by the human presence sensor.

[0087] In one embodiment, when the bathroom heater has a ventilation mode, an air quality sensor is used to sense the ambient ammonia or carbon dioxide. When the concentration of ammonia or carbon dioxide is greater than a preset value, and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the ventilation mode.

[0088] Specifically, the air quality sensor senses the ammonia or carbon dioxide in the environment and transmits the detection data to the control chip. The control chip determines whether the numerical concentration is greater than the preset value. If the numerical concentration is greater than the preset value and the control chip receives the human presence signal transmitted by the human presence sensor, the control chip can control the bathroom heater to turn on the ventilation mode through the second infrared module.

[0089] In one embodiment, when the bathroom heater has a cold or warm air mode, a temperature and humidity sensor is used to sense the ambient temperature. When the ambient temperature is greater than a preset value and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the cold or warm air mode.

[0090] Specifically, the temperature and humidity sensor senses the temperature of the environment and transmits the detection data to the control chip. The control chip determines whether the sensed temperature value is greater than a preset value or less than a preset value. If the temperature value is greater than the preset value or less than the preset value and the control chip receives the human presence signal transmitted by the human presence sensor, the control chip can control the bathroom heater to turn on the cold air or warm air mode through the second infrared module.

[0091] For example, when the temperature value is greater than a preset value and the control chip receives a human presence signal transmitted by the human presence sensor, the control chip can control the bathroom heater to turn on the cold air mode through the second infrared module.

[0092] When the temperature value is lower than the preset value and the control chip receives the human presence signal transmitted by the human presence sensor, the control chip can control the bathroom heater to turn on the warm air mode through the second infrared module.

[0093] In one embodiment, when the bathroom heater has a dehumidification mode, the ambient humidity is sensed by a temperature and humidity sensor. When the ambient humidity is greater than a preset value and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the dehumidification mode.

[0094] Specifically, the temperature and humidity sensor senses the humidity of the environment and transmits the detection data to the control chip. The control chip determines whether the sensed humidity value is greater than the preset value. If the temperature value is greater than the preset value and the control chip receives the human presence signal transmitted by the human presence sensor, the control chip can control the bathroom heater to turn on the dehumidification mode through the second infrared module.

[0095] Of course, in other implementations, the method for the mirror cabinet to control the bathroom heater also includes:

[0096] The human presence sensor, air quality sensor and temperature and humidity sensor are used to continuously sense the environment, and the sensing data are transmitted to the control chip for storage.

[0097] Of course, the interval time for each environmental sensing by the human presence sensor, the air quality sensor, and the temperature and humidity sensor can be preset.

[0098] The user terminal obtains the sensing data stored in the control chip through the wireless communication module, and sends a control instruction to the control chip through the wireless communication module according to the sensing data.

[0099] In order to accurately judge and ensure that the mirror cabinet controls the opening or closing of the bathroom heater, the method of the mirror cabinet controlling the bathroom heater also includes:

[0100] After the second infrared module communicates with the first infrared module and sends a control instruction to turn on or off the bathroom heater to the first infrared module, the temperature and humidity sensor is used to sense the temperature and humidity information of the current environment, and the temperature and humidity information is recorded as information T1.

[0101] After the preset interval time is reached, the temperature and humidity information of the current environment is sensed again by the temperature and humidity sensor, and the temperature and humidity information is recorded as information T2.

[0102] For example, the preset interval time is 900S. After the temperature and humidity sensor detects the temperature and humidity of the current surrounding environment for the first time, the temperature and humidity sensor detects the temperature and humidity of the current surrounding environment again after 900S.

[0103] Compare information T1 and information T2. ​​If the difference between information T1 and information T2 is smaller than a preset value, it is determined that the bathroom heater does not execute the on or off control instruction sent by the second infrared module.

[0104] Specifically, in order to facilitate the comparison of information T1 and information T2, after using the temperature and humidity sensor to sense the temperature and humidity information of the current environment, the temperature and humidity information is transmitted to the control chip, and the control chip records the temperature and humidity information as information T1 and stores it. After reaching the preset interval time, the temperature and humidity sensor is used again to sense the temperature and humidity information of the current environment, and the temperature and humidity information is transmitted to the control chip. The control chip records the temperature and humidity information as information T2 and stores it. The control chip compares the stored information T1 and information T2 to determine the difference between information T1 and information T2.

[0105] Further, it is determined that the bathroom heater does not execute the on or off control instruction sent by the second infrared module, and then the second infrared module continues to send the bathroom heater on or off control instruction to the first infrared module, or uses the wireless communication module to send a notification to the user terminal that the bathroom heater does not execute the on or off control instruction sent by the second infrared module.

[0106] That is to say, in one embodiment, when it is determined that the bathroom heater has not executed the control instruction for opening or closing sent by the second infrared module, the second infrared module continues to send the control instruction for opening or closing the bathroom heater to the first infrared module, and after the control instruction is sent, the above method for determining whether the mirror cabinet successfully controls the bathroom heater to open or close can be repeatedly executed until the bathroom heater executes the control instruction for opening or closing sent by the second infrared module. In other embodiments, when it is determined that the bathroom heater has not executed the control instruction for opening or closing sent by the second infrared module, the control chip can send a notification to the user terminal through the wireless communication module that the bathroom heater has not executed the control instruction for opening or closing sent by the second infrared module. The user terminal can send the control instruction for opening or closing the bathroom heater to the control chip through the wireless communication module based on the notification. The control chip sends the control instruction for opening or closing to the bathroom heater through the second infrared module based on the control instruction. After the control instruction is sent, the above method for determining whether the mirror cabinet successfully controls the bathroom heater to open or close can be repeatedly executed until the bathroom heater executes the control instruction for opening or closing sent by the second infrared module.

[0107] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A system for controlling a bathroom heater by a mirror cabinet, comprising a mirror cabinet and a bathroom heater, wherein a first infrared module is arranged in the bathroom heater, characterized in that: The mirror cabinet comprises a cabinet body, a light strip, a control chip, a second infrared module, a PWM control module, and a wireless communication module. One or more light strips are arranged on the cabinet body. The control chip is respectively connected to the light strip, the second infrared control module, the PWM control module, and the wireless communication module. The PWM control module is connected to the light strip; wherein, The second infrared module communicates with the first infrared module through infrared control signals; The wireless communication module is used to receive a wireless communication signal sent by a user terminal, so as to send instructions to the second infrared module and the PWM control module through the control chip.

2. According to claim 1, the system for controlling a bathroom heater in a mirror cabinet is characterized by: The mirror cabinet also includes: A temperature and humidity sensor connected to the control chip, the temperature and humidity sensor being used to sense the temperature and / or humidity of the environment where the mirror cabinet is located; A human presence sensor connected to the control chip, the human presence sensor being used to sense whether there is a human body in the environment where the mirror cabinet is located; and An air quality sensor is connected to the control chip, and the air quality sensor is used to sense ammonia or carbon dioxide in the environment where the mirror cabinet is located.

3. According to claim 1, the system for controlling a bathroom heater in a mirror cabinet is characterized in that: The wireless communication module is a LORA transceiver module; The mirror cabinet also includes a LORA gateway, the LORA transceiver module is wirelessly connected to the LORA gateway, and the LORA gateway is communicatively connected to a cloud server.

4. A system for controlling a bathroom heater using a mirror cabinet according to any one of claims 1 to 3, characterized in that: The mirror cabinet further comprises a DC power supply module and a buck module, wherein the DC power supply is connected to the light strip and the buck module respectively, and the buck module is connected to the control chip.

5. A method for controlling a bathroom heater with a mirror cabinet, characterized in that: The system for controlling a bathroom heater with a mirror cabinet as claimed in any one of claims 1 to 4 is provided, wherein the system for controlling a bathroom heater with a mirror cabinet adopts the following method to control the bathroom heater, and the method comprises: Obtain the infrared control code of the bathroom heater, and pre-store the infrared control code in the control chip of the mirror cabinet to form a code library; The control chip obtains the control instruction of the user terminal through the wireless communication module; and The control chip retrieves the corresponding infrared control code in the code library according to the control instruction, and uses the second infrared module of the mirror cabinet to communicate with the first infrared module of the bathroom heater.

6. The method for controlling a bathroom heater with a mirror cabinet according to claim 5, characterized in that: The method of obtaining the infrared control code of the bathroom heater includes: The control chip obtains the infrared control code of the corresponding model of bathroom heater from the cloud server through the wireless communication module; or The control chip matches and learns with the infrared remote controller of the bathroom heater through the second infrared module to obtain the infrared control code of the bathroom heater.

7. The method for controlling a bathroom heater with a mirror cabinet according to claim 5, characterized in that: The method further comprises: The human presence sensor is used to sense whether there is a human body in the environment. If the human body is sensed, the control chip controls the PWM control module to control the light strip to emit light; The bathroom heater has a ventilation mode, and uses an air quality sensor to sense environmental ammonia or carbon dioxide. When the concentration of the ammonia or carbon dioxide is greater than a preset value, and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the ventilation mode. The bathroom heater has a cooling or heating air mode, and uses a temperature and humidity sensor to sense the ambient temperature. When the ambient temperature is greater than a preset value, and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the cooling or heating air mode. The bathroom heater has a dehumidification mode, and uses a temperature and humidity sensor to sense the ambient humidity. When the ambient humidity is greater than a preset value and the human presence sensor senses the presence of a human body, the control chip communicates with the first infrared module through the second infrared module to control the bathroom heater to turn on the dehumidification mode.

8. The method for controlling a bathroom heater with a mirror cabinet according to claim 5, characterized in that: The method further comprises: After the second infrared module communicates with the first infrared module and sends a control instruction to turn on or off the bathroom heater to the first infrared module, the temperature and humidity information of the current environment is sensed by the temperature and humidity sensor, and the temperature and humidity information is recorded as information T1; After the preset interval time is reached, the temperature and humidity information of the current environment is sensed again by using the temperature and humidity sensor, and the temperature and humidity information is recorded as information T2; Compare the information T1 and the information T2. ​​If the difference between the information T1 and the information T2 is smaller than a preset value, it is determined that the bathroom heater does not execute the on or off control instruction sent by the second infrared module.

9. The method for controlling a bathroom heater with a mirror cabinet according to claim 8, characterized in that: The step of determining whether the bathroom heater has not executed the on or off control instruction sent by the second infrared module further includes: The second infrared module continues to send a control instruction to turn on or off the bathroom heater to the first infrared module; or The wireless communication module is used to send a notification to the user terminal that the bathroom heater has not executed the on or off control instruction sent by the second infrared module.

10. The method for controlling a bathroom heater with a mirror cabinet according to claim 6, characterized in that: The method further comprises: Use the Bluetooth module to connect and match the user terminal with the control chip; The user terminal obtains the infrared control code of the corresponding model of bathroom heater from the cloud server and transmits it to the control chip through the wireless communication module.