Ambient temperature detection method, device, smart toilet and storage medium
By using water inlet, water outlet and air outlet temperature sensors in smart toilets, and using the difference calculation method, the problem of additional ambient temperature detectors in the prior art is solved, and ambient temperature detection without increasing costs and space is achieved.
Patent Information
- Application Number
- CN202211122922.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-09-15
AI Technical Summary
Existing smart toilets require additional ambient temperature detectors when detecting ambient temperature, which increases the cost and installation space requirements.
By using the inlet temperature sensor, outlet temperature sensor and outlet temperature sensor in the smart toilet, the ambient temperature is detected without setting up an ambient temperature detector.
It realizes accurate detection of the ambient temperature in the bathroom without increasing costs and space, saving the installation space and cost of the ambient temperature detector.
Smart Images

Figure CN115406560B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent toilets, and in particular to an ambient temperature detection method, device, equipment and storage medium. Background Art
[0002] Bacteria are easy to breed in the bathroom, so it is particularly important to keep the ambient temperature of the bathroom within a comfortable range. However, smart home appliances (such as air conditioners) that usually measure ambient temperature measure the indoor temperature, not the ambient temperature in the bathroom, and the bathroom door is usually closed, resulting in a significant error between the temperature and humidity in the bathroom and the temperature and humidity outside the bathroom. Therefore, in order to measure the accurate ambient temperature in the bathroom, smart home appliances in the bathroom, such as smart toilets, should be used to measure it. However, the current function of detecting ambient temperature in smart toilets requires the setting of an ambient temperature detector, but the additional setting of an ambient temperature detector not only increases the production cost, but also requires additional space to install the ambient temperature sensor. Therefore, how to detect the ambient temperature without setting an ambient temperature detector is a problem that needs to be solved urgently. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an ambient temperature detection method, which can detect the ambient temperature without setting an ambient temperature detector, thereby saving the installation space and cost of the ambient temperature detector.
[0004] The invention also provides an environment temperature detection method.
[0005] The invention also provides a smart toilet.
[0006] The present invention also provides a computer-readable storage medium.
[0007] In a first aspect, an embodiment of the present invention provides an ambient temperature detection method, which is applied to a smart toilet, wherein the smart toilet comprises: a water inlet temperature sensor, a water outlet temperature sensor, and an air outlet temperature sensor, and the method comprises:
[0008] The water inlet temperature sensor is used to detect the temperature at the water inlet to obtain the water inlet temperature value, and the water outlet temperature sensor is used to detect the temperature at the water outlet to obtain the water outlet temperature value;
[0009] The air outlet temperature sensor detects the temperature at the air outlet to obtain the air outlet temperature value;
[0010] Calculate the difference between the water inlet temperature value and the air outlet temperature value to obtain a first temperature difference, and calculate the difference between the water outlet temperature value and the air outlet temperature value to obtain a second temperature difference;
[0011] If the first temperature difference is less than a preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value.
[0012] The ambient temperature detection method of the embodiment of the present invention has at least the following beneficial effects: detecting the temperature at the water inlet by a water inlet temperature sensor to obtain the water inlet temperature value, detecting the temperature at the water outlet by a water outlet temperature sensor to obtain the water outlet temperature value, detecting the temperature at the air outlet by an air outlet temperature sensor to obtain the air outlet temperature value, performing a difference calculation between the air outlet temperature value and the water inlet temperature value to obtain a first temperature difference, performing a difference calculation between the air outlet temperature value and the water outlet temperature value to obtain a second temperature difference, comparing the first temperature difference with a preset temperature threshold, and comparing the second temperature difference with the preset temperature threshold; if the first temperature difference is less than the preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, updating the current ambient temperature to the air outlet temperature value to obtain the ambient temperature value. Therefore, by comparing the first temperature difference between the water inlet temperature at the water inlet and the air outlet temperature at the air outlet with the preset temperature threshold, and comparing the second temperature difference between the water outlet temperature at the water outlet and the air outlet temperature at the air outlet with the preset temperature threshold, if the first temperature difference and the second temperature difference are both smaller than the preset temperature threshold, it is determined that the smart toilet is in a stable state, and the temperature at the air outlet is consistent with the indoor ambient temperature, then the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value, and the ambient temperature can be detected without setting an ambient temperature detector, thereby saving the installation space and cost of the ambient temperature detector.
[0013] According to some other embodiments of the ambient temperature detection method of the present invention, after setting the air outlet temperature value to the current ambient temperature to obtain the ambient temperature value, the method further includes:
[0014] The ambient temperature value is stored in a preset storage area according to a preset time interval.
[0015] According to some other embodiments of the present invention, the ambient temperature detection method further includes:
[0016] Obtaining the current working mode of the smart toilet to obtain the current working mode;
[0017] The current ambient temperature value is updated according to the current working mode and the stored ambient temperature value.
[0018] According to the ambient temperature detection method of some other embodiments of the present invention, the current working mode includes any one of the following: an aging working mode, a drying working mode, and a delay mode, and updating the current ambient temperature value according to the current working mode and the stored ambient temperature value includes:
[0019] If the current working mode is the target working mode, the ambient temperature value stored before the smart toilet enters the target working mode is obtained from the preset storage area to obtain a historical ambient temperature value; wherein the target working mode includes: the aging working mode or the drying working mode;
[0020] The current ambient temperature value is updated to the historical ambient temperature value.
[0021] According to some other embodiments of the ambient temperature detection method of the present invention, the updating of the current ambient temperature value according to the current working mode and the stored ambient temperature value further includes:
[0022] If the current working mode is the delay mode, comparing the current first temperature difference with the preset temperature threshold, and comparing the current second temperature difference with the preset temperature threshold to obtain a comparison result;
[0023] If the comparison result indicates that the first temperature difference is less than the preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the ambient temperature value after the delay mode ends is updated to the current air outlet temperature value.
[0024] According to some other embodiments of the present invention, the ambient temperature detection method further includes:
[0025] If the first temperature difference is greater than the preset temperature threshold, or the second temperature difference is greater than the preset temperature threshold, the current working mode of the smart toilet is switched to the delay mode.
[0026] According to the ambient temperature detection method of some other embodiments of the present invention, the smart toilet includes a display, and after storing the ambient temperature value in a preset storage area according to the preset time interval, the method further includes:
[0027] Acquire the current ambient temperature value from the preset storage area in real time;
[0028] The current ambient temperature value is sent to the display for display.
[0029] In a second aspect, an embodiment of the present invention provides an ambient temperature detection device, which is applied to a smart toilet, wherein the smart toilet comprises: a water inlet temperature sensor, a water outlet temperature sensor and an air outlet temperature sensor, and the device comprises:
[0030] A water temperature acquisition module is used to acquire the temperature at the water inlet detected by the water inlet temperature sensor to obtain the water inlet temperature value, and acquire the temperature at the water outlet detected by the water outlet temperature sensor to obtain the water outlet temperature value;
[0031] The air temperature acquisition module is used to acquire the temperature at the air outlet detected by the air outlet temperature sensor to obtain the air outlet temperature value;
[0032] a difference calculation module, configured to perform a difference calculation on the water inlet temperature value and the air outlet temperature value to obtain a first temperature difference, and perform a difference calculation on the water outlet temperature value and the air outlet temperature value to obtain a second temperature difference;
[0033] The ambient temperature detection module is used to set the air outlet temperature value as the current ambient temperature to obtain the ambient temperature value if the first temperature difference value is less than a preset temperature threshold and the second temperature difference value is less than the preset temperature threshold.
[0034] The ambient temperature detection device of the embodiment of the present invention has at least the following beneficial effects: the water temperature acquisition module detects the temperature at the water inlet through the water inlet temperature sensor to obtain the water inlet temperature value, detects the temperature at the water outlet through the water outlet temperature sensor to obtain the water outlet temperature value, the wind temperature acquisition module detects the temperature at the air outlet through the air outlet temperature sensor to obtain the air outlet temperature value, the difference calculation module performs difference calculation on the air outlet temperature value and the water inlet temperature value to obtain the first temperature difference, performs difference calculation on the air outlet temperature value and the water outlet temperature value to obtain the second temperature difference, the ambient temperature detection module compares the first temperature difference with the preset temperature threshold, and compares the second temperature difference with the preset temperature threshold; if the first temperature difference is less than the preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value. Therefore, by comparing the first temperature difference between the water inlet temperature at the water inlet and the air outlet temperature at the air outlet with the preset temperature threshold, and comparing the second temperature difference between the water outlet temperature at the water outlet and the air outlet temperature at the air outlet with the preset temperature threshold, if the first temperature difference and the second temperature difference are both smaller than the preset temperature threshold, it is determined that the smart toilet is in a stable state, and the temperature at the air outlet is consistent with the indoor ambient temperature, then the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value, and the ambient temperature can be detected without setting an ambient temperature detector, thereby saving the installation space and cost of the ambient temperature detector.
[0035] In a third aspect, an embodiment of the present invention provides a smart toilet, comprising:
[0036] at least one processor, and
[0037] a memory communicatively connected to the at least one processor; wherein,
[0038] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the ambient temperature detection method as described in the first aspect.
[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the ambient temperature detection method as described in the first aspect.
[0040] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic flow chart of a specific embodiment of the ambient temperature detection method in an embodiment of the present invention;
[0042] Figure 2 is a schematic flow chart of another specific embodiment of the ambient temperature detection method in an embodiment of the present invention;
[0043] Figure 3 is a schematic flow chart of another specific embodiment of the ambient temperature detection method in an embodiment of the present invention;
[0044] Figure 4 yes Figure 3 A schematic flow chart of a specific embodiment of step S302;
[0045] Figure 5 yes Figure 3 Another specific embodiment of step S302 is shown in the flowchart;
[0046] Figure 6 is a schematic flow chart of another specific embodiment of the ambient temperature detection method in an embodiment of the present invention;
[0047] Figure 7 is a schematic flow chart of another specific embodiment of the ambient temperature detection method in an embodiment of the present invention;
[0048] Figure 8 is a schematic flow chart of another specific embodiment of the ambient temperature detection method in an embodiment of the present invention;
[0049] Fig. 9 It is a module block diagram of a specific embodiment of the ambient temperature detection device in the embodiment of the present invention. Description of the drawings:
[0051] Water temperature acquisition module 901 , wind temperature acquisition module 902 , difference calculation module 903 , and ambient temperature detection module 904 . DETAILED DESCRIPTION
[0052] The following will be combined with the embodiments to clearly and completely describe the concept of the present invention and the technical effects produced, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without creative work are all within the scope of protection of the present invention.
[0053] In order to make the purpose, technical solution and advantages of 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 used to limit the present invention.
[0054] It should be noted that although the system diagram is divided into functional modules and the flow chart shows a logical order, in some cases, the steps shown or described may be performed in a manner different from the module division in the system or the order in the flow chart.
[0055] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0056] In the description of the embodiments of the present invention, if "several" is involved, it means more than one, if "multiple" is involved, it means more than two, if "greater than", "less than" or "exceed" is involved, it should be understood as not including the number itself, if "above", "below" or "within" is involved, it should be understood as including the number itself. If "first" or "second" is involved, it should be understood as being used to distinguish technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0057] In order to keep the bathroom comfortable and prevent bacteria from growing, the temperature in the bathroom needs to be properly controlled. Therefore, an ambient temperature sensor is needed to monitor the ambient temperature of the bathroom. Existing smart toilets are usually equipped with a display that can display temperatures such as air flow temperature, water outlet temperature and water inlet temperature. An ambient temperature detector is added to the smart toilet to detect the indoor environment of the bathroom and display the ambient temperature on the display. When the ambient temperature in the bathroom is too high or too low, the user can adjust it by controlling the air conditioner or exhaust system to keep the temperature within a comfortable range. At present, most smart toilets do not have a pre-configured installation space for ambient temperature detection sensors. In addition, smart toilets equipped with indoor temperature detection sensors will increase the cost of the entire machine.
[0058] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an ambient temperature detection method, which can detect the ambient temperature without setting an ambient temperature detector.
[0059] Please refer to Figure 1 , Figure 1 The flow chart of the ambient temperature detection method in the embodiment of the present invention is shown. In some embodiments, it is applied to a smart toilet, which includes: a water inlet temperature sensor, a water outlet temperature sensor and an air outlet temperature sensor, which specifically includes but is not limited to steps S101 to S104.
[0060] Step S101, obtaining the temperature at the water inlet detected by the water inlet temperature sensor to obtain the water inlet temperature value, obtaining the temperature at the water outlet detected by the water outlet temperature sensor to obtain the water outlet temperature value;
[0061] Step S102, obtaining the temperature at the air outlet detected by the air outlet temperature sensor to obtain the air outlet temperature value;
[0062] Step S103, performing a difference calculation between the water inlet temperature value and the air outlet temperature value to obtain a first temperature difference, and performing a difference calculation between the water outlet temperature value and the air outlet temperature value to obtain a second temperature difference;
[0063] Step S104: if the first temperature difference is less than the preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value.
[0064] By executing steps S101 to S104, the water inlet temperature sensor is used to detect the temperature at the water inlet to obtain the water inlet temperature voltage value, the water inlet temperature voltage value is converted into analog-to-digital value to obtain the water inlet temperature value, the water outlet temperature sensor is used to detect the temperature at the water outlet to obtain the water outlet temperature voltage value, and the water outlet temperature voltage value is converted into analog-to-digital value to obtain the water outlet temperature value. The air outlet temperature sensor is used to detect the temperature at the air outlet to obtain the air outlet temperature voltage value, and the air outlet temperature voltage value is converted into analog-to-digital value to obtain the air outlet temperature value. The air outlet temperature value and the water inlet temperature value are calculated to obtain the first temperature difference value, and the air outlet temperature value and the water outlet temperature value are calculated to obtain the second temperature difference value. The first temperature difference value is compared with the preset temperature threshold value, and the second temperature difference value is compared with the preset temperature threshold value. If the first temperature difference value is less than the preset temperature threshold value, and the second temperature difference value is less than the preset temperature threshold value, the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value. Therefore, by comparing the first temperature difference between the water inlet temperature at the water inlet and the air outlet temperature at the air outlet with the preset temperature threshold, and comparing the second temperature difference between the water outlet temperature at the water outlet and the air outlet temperature at the air outlet with the preset temperature threshold, if the first temperature difference and the second temperature difference are both less than the preset temperature threshold, it is determined that the smart toilet is in a stable state, the temperature at the air outlet is consistent with the indoor ambient temperature, the current ambient temperature is updated to the air outlet temperature value, and the ambient temperature value is obtained. The ambient temperature can be detected without setting an ambient temperature detector, saving the installation space and cost of the ambient temperature detector. Among them, the smart toilet is in a stable state characterized by the state when the smart toilet is not in use. The air outlet temperature detected by the air outlet temperature sensor is used as the ambient temperature, and there is no need to set up an additional ambient temperature detector, which can save both the installation space of the ambient temperature detector and the hardware cost of setting up an additional ambient temperature detector.
[0065] It should be noted that the water inlet temperature sensor, water outlet temperature sensor and air outlet temperature sensor all use NTC thermistors, and utilize the characteristics of their resistance changing with temperature. Through a hardware sampling circuit, the change in resistance is converted into a change in voltage. The analog-to-digital conversion interface of the microcontroller is used to convert the change in voltage into an ADC value, and finally the corresponding temperature value is obtained by looking up a table. According to the characteristics of the selected temperature sensor, the detected temperature value can achieve an accuracy error of 1%.
[0066] The air outlet temperature sensor is installed at the air outlet of the smart toilet and is used to detect the temperature at the air outlet of the smart toilet in real time. Because the air outlet temperature sensor is closest to the external environment, the detected air outlet temperature value is closest to the ambient temperature value.
[0067] The smart toilet also includes a water temperature instant heating device. The water inlet temperature sensor is installed at the water inlet of the water temperature instant heating device, and is used to detect the water inlet temperature value of the cleaning water when it enters the water temperature instant heating device in real time. The water outlet temperature sensor is installed at the water outlet of the water temperature instant heating device, and is used to detect the water outlet temperature value of the cleaning water when it sprays out of the water temperature instant heating device in real time. The air outlet temperature sensor configured in the smart toilet is used to make a preliminary judgment and identification of the ambient temperature, and the accurate ambient temperature is obtained through the auxiliary judgment of the water inlet temperature sensor and the water outlet temperature sensor.
[0068] Among them, the water inlet temperature sensor, water outlet temperature sensor and air outlet temperature sensor are only used when the smart toilet is in the corresponding mode, and are idle most of the time. After the water inlet temperature sensor, water outlet temperature sensor and air outlet temperature sensor have been out of use for a period of time, the temperature values detected by the three sensors are relatively close, and the air outlet temperature value detected by the air outlet temperature sensor is closest to the ambient temperature value. The air outlet temperature value can be used to update the ambient temperature value first. Therefore, the ambient temperature value can be detected by using the idle time of the water inlet temperature sensor, water outlet temperature sensor and air outlet temperature sensor.
[0069] In step S104 of some embodiments, the preset temperature threshold is preferably 3° C. in this application, and the preset temperature threshold is not specifically limited in this application.
[0070] In some embodiments of the present invention, when the smart toilet loses power unexpectedly, new water inlet temperature value, water outlet temperature value and air outlet temperature value are obtained after the next power-on, and the ambient temperature value is updated according to the new water inlet temperature value, water outlet temperature value and air outlet temperature value.
[0071] Please refer to Figure 2 , Figure 2 The flowchart of the ambient temperature detection method in the embodiment of the present invention is shown. In some embodiments, after step S104, it specifically includes but is not limited to step S201.
[0072] Step S201, storing the ambient temperature value into a preset storage area according to a preset time interval.
[0073] It should be noted that the controller inside the smart toilet is a single-chip microcomputer, which includes random access memory (RAM) and read-only memory (ROM). The random access memory is used to store the programs and data being used by the single-chip microcomputer in real time. The data on the random access memory can be read, written and erased many times. The read-only memory is a memory with pre-recorded data. Even after the single-chip microcomputer is turned off, the data stored in the read-only memory will still be retained.
[0074] In step S201 of some embodiments, after step S104, the current ambient temperature value is obtained, and when the single-chip microcomputer is working, the ambient temperature value is stored in a preset storage area according to a preset time interval, or the ambient temperature value is stored in a preset storage area at irregular intervals, which is not specifically limited in this application. Among them, the preset storage area is located in a read-only memory. By storing the ambient temperature value in the preset storage area, when the smart toilet is in an unstable state, the historically stored ambient temperature value can be used as the ambient temperature value in a short period of time. Among them, the unstable state of the smart toilet is characterized by the state when the smart toilet is in use.
[0075] Please refer to Figure 3 , Figure 3 The flowchart of the ambient temperature detection method in the embodiment of the present invention is shown. In some embodiments, it specifically includes but is not limited to step S301 to step S302.
[0076] Step S301, obtaining the current working mode of the smart toilet to obtain the current working mode;
[0077] Step S302: updating the current ambient temperature value according to the current working mode and the stored ambient temperature value.
[0078] By executing steps S301 to S302, the current working mode of the smart toilet is obtained to obtain the current working mode, and the corresponding update rules are selected according to the current working mode. The current ambient temperature value is updated according to the update rules and the stored ambient temperature value. When the smart toilet is in an unstable state, the current ambient temperature value is updated according to the stored ambient temperature value in a short time, and the current ambient temperature value can be updated in real time.
[0079] Please refer to Figure 4 , Figure 4 The flow chart of the ambient temperature detection method in the embodiment of the present invention is shown. In some embodiments, the current working mode includes any one of the following: aging working mode, drying working mode and delay mode, and step S302 includes but is not limited to steps S401 to S402.
[0080] Step S401, if the current working mode is the target working mode, obtain the ambient temperature value stored before the smart toilet enters the target working mode from the preset storage area to obtain the historical ambient temperature value; wherein the target working mode includes: aging working mode or drying working mode;
[0081] Step S402: Update the current ambient temperature value to the historical ambient temperature value.
[0082] By executing step S401 to step S402, if the current working mode is the aging working mode, the ambient temperature value stored before the smart toilet enters the aging working mode is obtained from the preset storage area to obtain the historical ambient temperature value, and the historical ambient temperature value is used to update the ambient temperature value to update the current ambient temperature value. Therefore, by storing the ambient temperature value before the smart toilet enters the aging working mode in the preset storage area, when the smart toilet is in the aging working mode, the historical ambient temperature value stored in history can be used as the ambient temperature value in the aging working mode to obtain an accurate ambient temperature value. If the current working mode is the drying working mode, the ambient temperature value stored before the smart toilet enters the drying working mode is obtained from the preset storage area to obtain the historical ambient temperature value, and the historical ambient temperature value is used to update the ambient temperature value to update the current ambient temperature value. By storing the ambient temperature value before the smart toilet enters the drying working mode in the preset storage area, when the smart toilet is in the drying working mode, the historical ambient temperature value stored in history can be used as the ambient temperature value in the drying working mode to obtain an accurate ambient temperature value.
[0083] It should be noted that the aging working mode is entered through the remote control. The smart toilet needs to be tested for aging before it leaves the factory. Press the "seat temperature button" on the remote control and the "stop button" on the smart toilet to enter the aging working mode for aging testing. In the aging working mode, all functions will run in a cycle, which will affect the detection of ambient temperature, so the ambient temperature value before entering the aging working mode must be saved. After exiting the aging working mode, directly read the ambient temperature value before entering the aging working mode to update the ambient temperature value when exiting the aging working mode. Similarly, after exiting the drying working mode, directly read the ambient temperature value before entering the drying working mode to update the ambient temperature value when exiting the drying working mode.
[0084] Please refer to Figure 5 , Figure 5 The flowchart of the ambient temperature detection method in the embodiment of the present invention is shown. In some embodiments, step S302 also includes but is not limited to step S501 to step S502.
[0085] Step S501, if the current working mode is the delay mode, compare the current first temperature difference with the preset temperature threshold, and compare the current second temperature difference with the preset temperature threshold to obtain a comparison result;
[0086] Step S502: if the comparison result indicates that the first temperature difference is less than the preset temperature threshold and the second temperature difference is less than the preset temperature threshold, the ambient temperature value after the delay mode ends is updated to the current air outlet temperature value.
[0087] By executing step S501 to step S502, if the current working mode is the delay mode, the current first temperature difference is compared with the preset temperature threshold in real time, and the current second temperature difference is compared with the preset temperature threshold to obtain a comparison result. If the comparison result is characterized by the first temperature difference and the second temperature difference being less than the preset temperature threshold, the current air outlet temperature value is used to update the ambient temperature value after the delay mode ends. When the smart toilet is in the delay mode, the ambient temperature value for updating is obtained in real time by comparing in real time, so that the accurate ambient temperature value can be displayed when the smart toilet exits the delay mode.
[0088] It should be noted that the ambient temperature value stored before the smart toilet enters the delay mode is obtained from the preset storage area, the historical ambient temperature value is obtained, and the historical ambient temperature value is used to update the current ambient temperature value. By storing the ambient temperature value before the smart toilet enters the delay mode in the preset storage area, when the smart toilet is in the delay mode, the historical stored ambient temperature value can be used as the ambient temperature value in the delay mode.
[0089] In step S502 of some embodiments, the latest air outlet temperature value before the smart toilet exits the delay mode is obtained, and the latest air outlet temperature value is used to update the ambient temperature value after the smart toilet exits the delay mode.
[0090] Please refer to Figure 6 , Figure 6 The flowchart of the ambient temperature detection method in the embodiment of the present invention is shown. In some embodiments, it specifically includes but is not limited to step S601.
[0091] Step S601, if the first temperature difference is greater than the preset temperature threshold, or the second temperature difference is greater than the preset temperature threshold, the current working mode of the smart toilet is switched to the delay mode.
[0092] In step S601 of some embodiments, the current first temperature difference is compared with the preset temperature threshold in real time, and the current second temperature difference is compared with the preset temperature threshold. If the first temperature difference is greater than the preset temperature threshold, or the second temperature difference is greater than the preset temperature threshold, the current working mode of the smart toilet is switched to the delay mode. By comparing the first temperature difference with the preset temperature threshold in real time, and comparing the second temperature difference with the preset temperature threshold in real time, it is judged that when the smart toilet is in an unstable state, the working mode of the smart toilet is switched to the delay mode, which can improve the accuracy of the detected ambient temperature value. Among them, the duration of the delay mode is preferably 60 minutes in this application, and the duration of the delay mode is not specifically limited in this application.
[0093] It should be noted that if the first temperature difference is greater than the preset temperature threshold, or the second temperature difference is greater than the preset temperature threshold, it indicates that the smart toilet is in an unstable state.
[0094] Please refer to Figure 7 , Figure 7 The flowchart of the ambient temperature detection method in the embodiment of the present invention is shown. In some embodiments, the smart toilet includes a display, which specifically includes but is not limited to steps S701 to S702.
[0095] Step S701, obtaining the current ambient temperature value from a preset storage area in real time;
[0096] Step S702, sending the current ambient temperature value to the display for display.
[0097] By executing steps S701 to S702, whenever an ambient temperature value is stored in the preset storage area, the smart toilet obtains the current ambient temperature value from the preset storage area in real time, and sends the current ambient temperature value to the display for display. The current ambient temperature value can be displayed in real time on the display. The user can check through the display whether the current ambient temperature in the bathroom is too high or too low, so as to improve the user's experience of using the smart toilet.
[0098] Please refer to Figure 8 , Figure 8 The following is a flow chart of an ambient temperature detection method in an embodiment of the present invention. In some embodiments, the ambient temperature detection method specifically includes:
[0099] After the smart toilet is powered on, the ambient temperature value saved in the preset storage area is read to obtain the ambient temperature value stored for the last time the smart toilet was powered off, and the ambient temperature value is used to update the initial ambient temperature value after the smart toilet is powered on. The difference between the air outlet temperature value and the water inlet temperature value is compared with 3°C in real time, and the difference between the air outlet temperature value and the water outlet temperature value is compared with 3°C in real time. If the difference is less than 3°C, the current air outlet temperature value is updated to the current ambient temperature value, and the ambient temperature value is written into the preset storage area. The display reads and displays the ambient temperature value. If one of the differences is greater than 3°C, the air outlet temperature value is unstable, and the smart toilet is delayed for 60 minutes before comparing the two differences with 3°C.
[0100] In addition, the present application also discloses an ambient temperature detection device, please refer to Fig. 9 , Fig. 9An embodiment of the present invention discloses a module block diagram of an ambient temperature detection device. Moreover, the ambient temperature detection device is applied to a smart toilet, and the above-mentioned ambient temperature detection method can be implemented. The smart toilet includes: an inlet temperature sensor, an outlet temperature sensor, and an outlet air temperature sensor. The ambient temperature detection device includes: a water temperature acquisition module 901, a wind temperature acquisition module 902, a difference calculation module 903, and an ambient temperature detection module 904. The water temperature acquisition module 901, the wind temperature acquisition module 902, the difference calculation module 903, and the ambient temperature detection module 904 are all communication connected.
[0101] The water temperature acquisition module 901 acquires the temperature at the water inlet detected by the water inlet temperature sensor to obtain the water inlet temperature value, and acquires the temperature at the water outlet detected by the water outlet temperature sensor to obtain the water outlet temperature value. The wind temperature acquisition module 902 acquires the temperature at the air outlet detected by the air outlet temperature sensor to obtain the air outlet temperature value. The difference calculation module 903 performs a difference calculation on the water inlet temperature value and the air outlet temperature value to obtain a first temperature difference, and performs a difference calculation on the water outlet temperature value and the air outlet temperature value to obtain a second temperature difference. If the first temperature difference is less than the preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the ambient temperature detection module 904 sets the air outlet temperature value to the current ambient temperature to obtain the ambient temperature value.
[0102] The water temperature acquisition module 901 detects the temperature at the water inlet through the water inlet temperature sensor to obtain the water inlet temperature data, performs analog-to-digital conversion on the water inlet temperature data to obtain the water inlet temperature value, detects the temperature at the water outlet through the water outlet temperature sensor to obtain the water outlet temperature data, and performs analog-to-digital conversion on the water outlet temperature data to obtain the water outlet temperature value. The wind temperature acquisition module 902 detects the temperature at the air outlet through the air outlet temperature sensor to obtain the air outlet temperature data, and performs analog-to-digital conversion on the air outlet temperature data to obtain the air outlet temperature value. The difference calculation module 903 performs difference calculation on the air outlet temperature value and the water inlet temperature value to obtain the first temperature difference, and performs difference calculation on the air outlet temperature value and the water outlet temperature value to obtain the second temperature difference. The ambient temperature detection module 904 compares the first temperature difference with the preset temperature threshold, and compares the second temperature difference with the preset temperature threshold. If the first temperature difference is less than the preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value. Therefore, by comparing the first temperature difference between the water inlet temperature at the water inlet and the air outlet temperature at the air outlet with the preset temperature threshold, and comparing the second temperature difference between the water outlet temperature at the water outlet and the air outlet temperature at the air outlet with the preset temperature threshold, if the first temperature difference and the second temperature difference are both smaller than the preset temperature threshold, it is determined that the smart toilet is in a stable state, and the temperature at the air outlet is consistent with the indoor ambient temperature, then the current ambient temperature is updated to the air outlet temperature value to obtain the ambient temperature value, and the ambient temperature can be detected without setting an ambient temperature detector, thereby saving the installation space and cost of the ambient temperature detector.
[0103] The operation process of the ambient temperature detection device of this embodiment is specifically described as above. Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 and Figure 7 The ambient temperature detection method steps S101 to S104, step S201, step S301 and step S302, step S401 and step S402, step S501 and step S502, step S601 and step S701 and step S702 are not repeated here.
[0104] Another embodiment of the present invention discloses a smart toilet, comprising: at least one processor, and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the following Figure 1 The control method steps S101 to S104, Figure 2 The control method step S201, Figure 3 The control method steps S301 and S302, Figure 4 The control method steps S401 and S402, Figure 5 The control method steps S501 and S502, Figure 6 The control method step S601 and Figure 7 The ambient temperature detection method of step S701 and step S702 in the control method.
[0105] Another embodiment of the present invention discloses a storage medium, the storage medium comprising: the storage medium stores computer executable instructions, the computer executable instructions are used to enable a computer to execute Figure 1 The control method steps S101 to S104, Figure 2 The control method step S201, Figure 3 The control method steps S301 and S302, Figure 4 The control method steps S401 and S402, Figure 5 The control method steps S501 and S502, Figure 6 The control method step S601 and Figure 7 The ambient temperature detection method of step S701 and step S702 in the control method.
[0106] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0108] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made within the knowledge of ordinary technicians in the relevant technical field without departing from the purpose of the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
Claims
1. A method for detecting ambient temperature, applied to a smart toilet, the smart toilet comprising: The water inlet temperature sensor, the water outlet temperature sensor and the air outlet temperature sensor are characterized in that the method comprises: The water inlet temperature sensor is used to detect the temperature at the water inlet to obtain the water inlet temperature value, and the water outlet temperature sensor is used to detect the temperature at the water outlet to obtain the water outlet temperature value; The air outlet temperature sensor detects the temperature at the air outlet to obtain the air outlet temperature value; Calculate the difference between the water inlet temperature value and the air outlet temperature value to obtain a first temperature difference, and calculate the difference between the water outlet temperature value and the air outlet temperature value to obtain a second temperature difference; If the first temperature difference is less than a preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the current ambient temperature is updated to the air outlet temperature value to obtain an ambient temperature value.
2. The method for detecting ambient temperature according to claim 1, characterized in that: After setting the air outlet temperature value to the current ambient temperature to obtain the ambient temperature value, the method further includes: The ambient temperature value is stored in a preset storage area according to a preset time interval.
3. The method for detecting ambient temperature according to claim 2, characterized in that: The method further comprises: Obtaining the current working mode of the smart toilet to obtain the current working mode; The current ambient temperature value is updated according to the current working mode and the stored ambient temperature value.
4. The method for detecting ambient temperature according to claim 3, characterized in that: The current working mode includes any one of the following: an aging working mode, a drying working mode, and a delay mode, and the updating of the current ambient temperature value according to the current working mode and the stored ambient temperature value includes: If the current working mode is the target working mode, the ambient temperature value stored before the smart toilet enters the target working mode is obtained from the preset storage area to obtain a historical ambient temperature value; wherein the target working mode includes: the aging working mode or the drying working mode; The current ambient temperature value is updated to the historical ambient temperature value.
5. The method for detecting ambient temperature according to claim 3, characterized in that: The current working mode includes any one of the following: an aging working mode, a drying working mode, and a delay mode, and the updating of the current ambient temperature value according to the current working mode and the stored ambient temperature value includes: If the current working mode is the delay mode, comparing the current first temperature difference with the preset temperature threshold, and comparing the current second temperature difference with the preset temperature threshold to obtain a comparison result; If the comparison result indicates that the first temperature difference is less than the preset temperature threshold, and the second temperature difference is less than the preset temperature threshold, the ambient temperature value after the delay mode ends is updated to the current air outlet temperature value.
6. The method for detecting ambient temperature according to claim 5, characterized in that: The method further comprises: If the first temperature difference is greater than the preset temperature threshold, or the second temperature difference is greater than the preset temperature threshold, the current working mode of the smart toilet is switched to the delay mode.
7. The method for detecting ambient temperature according to claim 2, wherein the intelligent toilet comprises a display, characterized in that: After storing the ambient temperature value in a preset storage area according to the preset time interval, the method further includes: Acquire the current ambient temperature value from the preset storage area in real time; The current ambient temperature value is sent to the display for display.
8. An ambient temperature detection device, characterized in that: Applied to a smart toilet, the smart toilet comprises: a water inlet temperature sensor, a water outlet temperature sensor and an air outlet temperature sensor, the device comprises: A water temperature acquisition module is used to acquire the temperature at the water inlet detected by the water inlet temperature sensor to obtain the water inlet temperature value, and acquire the temperature at the water outlet detected by the water outlet temperature sensor to obtain the water outlet temperature value; The air temperature acquisition module is used to acquire the temperature at the air outlet detected by the air outlet temperature sensor to obtain the air outlet temperature value; a difference calculation module, configured to perform a difference calculation on the water inlet temperature value and the air outlet temperature value to obtain a first temperature difference, and perform a difference calculation on the water outlet temperature value and the air outlet temperature value to obtain a second temperature difference; The ambient temperature detection module is used to set the air outlet temperature value as the current ambient temperature to obtain the ambient temperature value if the first temperature difference value is less than a preset temperature threshold and the second temperature difference value is less than the preset temperature threshold.
9. A smart toilet, characterized in that: include: at least one processor, and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the ambient temperature detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the ambient temperature detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Fluid flow detection apparatus
CN108700611A
Drying control method and device, intelligent closestool, computer equipment and storage medium
CN114859989A