Intelligent toilet control method, electronic device, intelligent toilet, and storage medium

Through the smart toilet control method, the dynamic mode switching of the controller and the target module is used to solve the problem of poor power consumption control accuracy of the smart toilet module, realize automatic low-power mode switching, and improve operation convenience and power consumption. Control accuracy.

CN117888606BActive Publication Date: 2024-10-11FOSHAN GAOMING ANHUA CERAMIC SANITARY WARE +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311667350.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-10-11
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

The power consumption control accuracy of smart toilet modules is poor, and the existing technology requires manual operation, which is complex and inconvenient.

Method used

Through the smart toilet control method, the controller is used to determine the mode and send notification information, so that the target module enters the low power consumption mode, and dynamically adjusts the RF transmission power according to the connection status and signal strength to achieve automatic power consumption control.

Benefits of technology

It improves the convenience of operation and the accuracy of power consumption control, reduces manual intervention, and improves the stability and energy saving effect of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117888606B_ABST
    Figure CN117888606B_ABST
Patent Text Reader

Abstract

The present application discloses a smart toilet control method and electronic device, a smart toilet, and a storage medium, which belong to the field of energy-saving technology. The smart toilet includes a target module and a controller, the target module is used to send the collected control instructions to the controller, and the method is executed by the controller, and the method includes: determining that the mode of the controller is in the first operating mode, generating a first notification message; sending the first notification message to the target module, so that the target module enters a low power consumption mode in response to the first notification message, and the low power consumption mode is used to instruct the target module to reduce the radio frequency transmission power and collect the control instructions with the reduced radio frequency transmission power. The present application can improve the convenience of operation and improve the accuracy of power consumption control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of energy-saving technology, and in particular to a smart toilet control method and electronic device, a smart toilet, and a storage medium. Background Art

[0002] At present, with the popularity of smart homes, smart toilets have gradually become a part of people's family life. The modules in the smart toilet (such as WiFi modules, Combo modules) are used to connect the smart toilet to the network, thereby realizing functions such as remote control, monitoring and data transmission, but the modules consume high power. At present, the main control board of the smart toilet is triggered by manually pressing a button to send a signal to the MOS tube of the module, thereby controlling the on / off of the module to reduce power consumption. However, this method requires manual control, the operation is more cumbersome, and it is up to people to judge whether to press the button, resulting in poor accuracy in power consumption control. Summary of the invention

[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0004] The embodiments of the present application provide a smart toilet control method and electronic device, a smart toilet, and a storage medium, aiming to improve the convenience of operation and improve the accuracy of power consumption control.

[0005] The embodiment of the first aspect of the present application provides a smart toilet control method, the smart toilet comprising a target module and a controller, the target module is used to send the collected control instructions to the controller, the method is executed by the controller, and the method comprises:

[0006] Determining that the mode of the controller is in a first operating mode, and generating first notification information;

[0007] The first notification information is sent to the target module, so that the target module enters a low power consumption mode in response to the first notification information, wherein the low power consumption mode is used to instruct the target module to reduce the radio frequency transmission power and collect the control instruction with the reduced radio frequency transmission power.

[0008] Optionally, determining that the mode of the controller is in the first operating mode includes:

[0009] Obtaining a continuous non-operating time of the controller;

[0010] When the continuous non-operation time is greater than a preset time threshold, it is determined that the mode of the controller is in the first operation mode.

[0011] Optionally, the target module is used to send the control instruction collected from the router to the controller, and the entering the low power consumption mode in response to the first notification information includes:

[0012] Obtaining the connection status between the target module and the router;

[0013] If the connection status indicates that the module and the router are connected, obtaining the signal strength of the router;

[0014] If the signal strength is greater than a preset strength threshold, the target mode of the target module is determined to be a low power consumption mode.

[0015] Optionally, after obtaining the connection status between the target module and the router, the method further includes:

[0016] If the connection state indicates that the target module and the router are not connected, the target mode of the target module is determined to be an idle mode, and the radio frequency transmission power in the idle mode is less than the radio frequency transmission power in the low power consumption mode;

[0017] If the connection status indicates that the target module and the router are connected, and if the signal strength is less than or equal to a preset strength threshold, the target mode of the target module is determined to be a high power consumption mode, and the RF transmission power in the high power consumption mode is greater than the RF transmission power in the low power consumption mode.

[0018] Optionally, after determining that the mode of the controller is in the first operating mode, the method further includes:

[0019] receiving second notification information, where the second notification information is generated by the target module in response to a control instruction collected from a router;

[0020] In response to the second notification information, it is determined that the mode of the controller is in the second operating mode, and the target module obtains the target mode of the target module in response to the second operating mode. If the target module determines that the target mode is a low power consumption mode, the low power consumption mode is exited.

[0021] Optionally, after the target module determines that the target mode is a low power consumption mode, the method further includes:

[0022] The target module obtains the connection status between the target module and the cloud server;

[0023] If the target module determines that the connection status between the target module and the cloud server indicates that the target module is offline, the target module starts a low-power Bluetooth broadcast to collect control instructions sent by the router.

[0024] Optionally, the method further comprises:

[0025] When it is determined that the target module is in the low power consumption mode and a control instruction issued by the cloud service end is received, controlling the target module to automatically exit the low power consumption mode;

[0026] and / or;

[0027] When it is determined that the target module is in the low power consumption mode and a status reporting instruction of the smart toilet is received, the target module is controlled to automatically exit the low power consumption mode.

[0028] According to the smart toilet control method of the first aspect embodiment of the present application, at least the following beneficial effects are achieved: when the controller is in the first operating mode, the target module enters the low power consumption mode to achieve the effect of reducing the power consumption of the target module. Compared with manual control, since the switch of the module requires manual control, the object needs to manually turn on or off the module, which increases the complexity of the operation. In summary, the present application can improve the convenience of operation and improve the accuracy of power consumption control.

[0029] The second aspect of the present application provides an electronic device, including a memory and a processor, wherein the memory is used for a computer program that can be run on the processor, and when the computer program is executed, the smart toilet control method as described in the first aspect is implemented.

[0030] The third aspect of the present application provides a smart toilet, which includes a target module and a controller, and the controller is used to execute the smart toilet control method as described in the first aspect.

[0031] The fourth aspect of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the smart toilet control method as described in the first aspect.

[0032] 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 by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 is a schematic diagram of a system architecture platform for executing a smart toilet control method provided in an embodiment of the present application;

[0034] Figure 2 is a schematic diagram of a smart toilet for executing a smart toilet control method provided in an embodiment of the present application;

[0035] Figure 3is a flow chart of the intelligent toilet control method provided in an embodiment of the present application;

[0036] Figure 4 It is a flow chart of determining that the controller is in the first operating mode in the intelligent toilet control method provided in an embodiment of the present application;

[0037] Figure 5 It is a flow chart of determining the target mode of the target module as the low power consumption mode in the intelligent toilet control method provided in an embodiment of the present application;

[0038] Figure 6 This is a flowchart of exiting the low power consumption mode in the smart toilet control method provided in an embodiment of the present application;

[0039] Figure 7 This is a flow chart of starting low-power Bluetooth broadcasting in the smart toilet control method provided in an embodiment of the present application;

[0040] Figure 8 A specific example flow chart of a target module entering a low power consumption mode in a smart toilet control method provided in an embodiment of the present application;

[0041] Fig. 9 It is a specific example flow chart of the target module recovery work in the intelligent toilet control method provided in the embodiment of the present application;

[0042] Fig.10 This is an overall example flow chart of the smart toilet control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the characteristics, operations or features described in the specification can be combined in any appropriate manner to form various implementation methods. At the same time, the steps or actions in the method description can also be replaced or adjusted in order in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the accompanying drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a necessary sequence, unless otherwise specified that a certain sequence must be followed.

[0044] In the description of this application, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed", etc. are understood to exclude the number itself, and "above", "below", "within", etc. are understood to include the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing 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.

[0045] The serial numbers of the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).

[0046] In the description of this application, 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 this application based on the specific content of the technical solution.

[0047] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0048] See also Figure 1 , Figure 1 It is a schematic diagram of a system architecture platform for executing a smart toilet control method provided by an embodiment of the present application.

[0049] The system architecture platform 100 of the embodiment of the present application includes one or more processors 101 and a memory 102. Figure 1 In the figure, a processor 101 and a memory 102 are taken as an example.

[0050] The processor 101 and the memory 102 may be connected via a bus or other means. Figure 1 The example of connecting through bus is taken in the following.

[0051] The memory 102, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory 102 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 102 may optionally include a memory 102 remotely disposed relative to the processor 101, and these remote memories may be connected to the system architecture platform 100 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0052] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation on the system architecture platform 100, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0053] exist Figure 1 In the system architecture platform 100 shown, the processor 101 can be used to call the smart toilet control program stored in the memory 102, so as to implement the smart toilet control method.

[0054] Various embodiments of the present application are proposed based on the hardware structure of the above-mentioned system architecture platform 100.

[0055] See also Figure 2 , Figure 2 Schematic diagram of a smart toilet for executing a smart toilet control method provided in an embodiment of the present application. Smart toilet 200 includes a controller 201 and a target module 202. The target module 202 is used to send the collected control instructions to the controller 201. The smart toilet control method is executed by the controller 201. The controller 201 and the target module 202 are in communication connection.

[0056] See also Figure 3 , Figure 3 Flow chart of a smart toilet control method provided by an embodiment of the present application. The smart toilet control method of the embodiment of the present application is used to control the power consumption mode switching of the target module and the controller. The smart toilet control method includes but is not limited to steps S301 to S302:

[0057] Step S301, determining that the mode of the controller is in the first operating mode, and generating first notification information;

[0058] Step S302, sending the first notification information to the target module, so that the target module enters a low power consumption mode in response to the first notification information, and the low power consumption mode is used to instruct the target module to reduce the RF transmission power and collect control instructions with the reduced RF transmission power.

[0059] In step S301 of some embodiments, the first operating mode is essentially a mode in which the CPU is downclocked and only basic status monitoring is performed. In practice, the first operating mode may be a dormant mode or a sleep mode. The first notification information is used to notify the target module 202 that the controller 201 is in the first operating mode, and the first notification information may be composed of bytes. When it is determined that the mode of the controller 201 is in the first operating mode, the first notification information is generated.

[0060] In step S302 of some embodiments, the low power mode is a working mode of the target module 202, which is used to instruct the target module 202 to reduce the RF transmission power and collect the control instructions with the reduced RF transmission power, and the power consumption of the target module 202 can be reduced by reducing the RF transmission power. The control instruction is an instruction for controlling the smart toilet 200, which can be a flushing instruction, a toilet seat heating instruction, or a spray washing instruction, etc. After generating the first notification information, the controller 201 sends the first notification information to the target module 202, so that the target module 202 enters the low power mode in response to the first notification information.

[0061] Through the above steps S301 to S302, the target module 202 can enter the low power consumption mode when the controller 201 is in the first operation mode, so as to achieve the effect of reducing the power consumption of the target module 202. Compared with manual control, since the switch of the module needs to be manually controlled, the object needs to manually turn on or off the module, which increases the complexity of the operation. Therefore, the embodiment of the present application improves the convenience of operation and the accuracy of power consumption control.

[0062] See also Figure 4 In some embodiments, the step of determining whether the mode of the controller is in the first operating mode may include but is not limited to steps S401 to S402:

[0063] Step S401, obtaining the continuous non-operating time of the controller;

[0064] Step S402: When the continuous non-operation time is greater than a preset time threshold, it is determined that the mode of the controller is in the first operation mode.

[0065] In step S401 of some embodiments, the continuous non-operation time can be in milliseconds, seconds, or minutes. The continuous non-operation time can be counted from the time when the controller 201 completes all tasks until a new task is started. The time is reset and counted again each time a new task is executed. The continuous non-operation time can be obtained by reading the timer inside the controller 201, or by setting an external sensor to obtain the continuous non-operation time of the controller 201.

[0066] In step S402 of some embodiments, the preset duration threshold is used to determine whether the controller 201 enters the first operation mode, and the value of the preset duration threshold is set according to the actual situation. Specifically, the preset duration threshold can be set to 120s. When the continuous non-operation time of the controller 201 is greater than 120s, it is determined that the mode of the controller 201 is in the first operation mode. That is, when the continuous non-operation time of the controller 201 is greater than 120s, the controller 201 automatically enters the first operation mode.

[0067] Through the above steps S401 to S402 , the mode of the controller 201 can be adjusted based on the state of the controller 201 , thereby improving the accuracy of power consumption control and adjusting the controller 201 to a low power consumption mode, thereby reducing the static power consumption of the controller 201 .

[0068] See also Figure 5 In some embodiments, the target module is used to send the control instructions collected from the router to the controller, and the steps of entering the low power consumption mode in response to the first notification information may include but are not limited to steps S501 to S503:

[0069] Step S501, obtaining the connection status between the target module and the router;

[0070] Step S502, if the connection status indicates that the target module and the router are connected, the signal strength of the router is obtained;

[0071] Step S503: if the signal strength is greater than a preset strength threshold, the target mode of the target module is determined to be a low power consumption mode.

[0072] In step S501 of some embodiments, the connection status between the target module 202 and the router includes connected or not connected. In response to the first notification information, the target module 202 obtains the connection status between itself and the router. Specifically, the connection status can be obtained by the target module 202 sending a query command to the router and waiting for the router to respond; the connection status can also be obtained by the target module 202 monitoring the network connection status; the target module 202 can also obtain the status of the indicator light indicating the connection status with the router; it can also be obtained by querying the current network parameters of the target module 202, such as IP address, subnet mask, gateway and other information, so as to determine whether it is successfully connected to the router.

[0073] It should be noted that the router used in the embodiment of the present application does not need to be a dedicated router. Therefore, it has the following advantages: low cost, easy acquisition, good compatibility, etc.

[0074] In step S502 of some embodiments, the signal strength is usually expressed in the form of RSSI, with the unit of dBm. If the connection status between the target module 202 and the router indicates that the target module 202 and the router are connected, the target module 202 obtains the signal strength of the router. Specifically, assuming that the target module 202 is a Combo module, the Combo module sends a query signal command to the WiFi module in the Combo module, and the WiFi module feeds back the signal strength information to the Combo module, and the Combo module parses the signal strength information to obtain the signal strength. Among them, the query signal command can be an "AT+CSQ" command.

[0075] In step S503 of some embodiments, the preset strength threshold is used to determine whether the target module 202 should enter the low power consumption mode, and the value of the preset strength threshold is set according to the actual situation. The high power consumption mode is essentially a mode in which the CPU is in a high-frequency working state and the hardware components in the smart toilet 200 are all in a working state. In practice, the high power consumption mode can be a normal mode or a normal mode. The target mode of the target module 202 is a variable used to indicate the real-time operation mode of the target module 202. If the signal strength is greater than the preset strength threshold, the target mode of the target module 202 is determined to be a low power consumption mode. Specifically, the preset strength threshold can be -65dBm. When the signal strength is greater than -65dBm, the target mode of the target module 202 is determined to be a low power consumption mode. That is, when the signal strength is greater than -65dBm, the target module 202 enters the low power consumption mode to reduce energy consumption and achieve energy saving. If the connection status indicates that the target module 202 and the router are connected, and if the signal strength is less than or equal to the preset strength threshold, the target mode of the target module 202 is determined to be a high power mode, and the RF transmission power in the high power mode is greater than the RF transmission power in the low power mode. That is, when the connection status indicates that the target module 202 and the router are connected, and the signal strength is less than or equal to the preset strength threshold, the original mode is maintained and the mode is not switched. This is because if the signal strength does not meet the conditions, the module will lose the network connection when entering the low power mode, so that the control instructions issued by the object cannot be collected.

[0076] Furthermore, if the connection status indicates that the target module 202 is not connected to the router, the target mode of the target module 202 is determined to be an idle mode, and the RF transmission power in the idle mode is less than the RF transmission power in the low power mode. This method allows the target module to enter a lower power consumption mode when it is not connected, thereby further reducing static power consumption, achieving a deeper energy saving effect, and improving the accuracy of power consumption control.

[0077] Through the above steps S501 to S503, environmental parameters can be dynamically acquired, and mode judgment can be performed in combination with the connection status between the module and the router and the signal strength of the router, so as to achieve more accurate setting of the mode of the target module, thereby improving the accuracy of power consumption control and the stability of the system.

[0078] See also Figure 6 In some embodiments, after determining that the mode of the controller is in the first operating mode, the intelligent toilet control method may also include but is not limited to steps S601 to S602:

[0079] Step S601, receiving second notification information, where the second notification information is generated by the target module in response to a control instruction collected from a router;

[0080] Step S602, in response to the second notification information, determining that the mode of the controller is in the second operating mode, the target module responds to the second operating mode, obtains the target mode of the target module, and if the target module determines that the target mode is the low power consumption mode, exits the low power consumption mode.

[0081] In step S601 of some embodiments, the control instruction is issued by a person through an application on a mobile terminal, and then the router receives the control instruction, which is then transmitted to the target module 202 by the router. The second notification information is used to instruct the controller 201 to exit the first operating mode, and the second notification information may be composed of bytes. Specifically, the target module 202 generates the second notification information in response to the control instruction collected from the router, and sends the second notification information to the controller 201.

[0082] In step S602 of some embodiments, the second operating mode is essentially a mode in which the CPU is in a high-frequency working state and the hardware components in the smart toilet 200 are all in a working state. In practice, the second operating mode can be a normal mode or a normal mode. In response to the received second notification information, it is determined that the mode of the controller 201 is in the second operating mode, that is, the controller 201 exits the first operating mode and switches the mode to the second operating mode. At the same time, the controller 201 sends its current mode to the target module 202. The target module 202 responds to the second operating mode and obtains its own target mode. If the target mode is a low power mode, it exits the low power mode. If the target mode is not a low power mode, the target module 202 will maintain the original mode and will not switch the mode.

[0083] Through the above steps S601 to S602, when receiving the control instruction, the controller 201 can enter the second operation mode and the target module 202 can exit the low power consumption mode, so as to achieve the effect of automatically adjusting the power consumption of the target module 202, thereby improving the accuracy of power consumption control. At the same time, when high performance or emergency situations are required, the router can send instructions to the target module to exit the low power consumption mode to improve the response capability and realize intelligent linkage.

[0084] See also Figure 7 In some embodiments, after the target module determines that the target mode is the low power consumption mode, the smart toilet control method may further include but is not limited to steps S701 to S702:

[0085] Step S701, the target module obtains the connection status between the target module and the cloud server;

[0086] Step S702: If the target module determines that the connection status between the target module and the cloud server indicates that the target module is offline, the target module starts a low-power Bluetooth broadcast to collect control instructions sent by the router.

[0087] In step S701 of some embodiments, if it is determined that the target mode of the target module 202 is a low power mode, the connection status of the target module 202 and the cloud service end is obtained. Among them, the connection status of the target module 202 and the cloud service end includes connected or disconnected. The connection status of the target module 202 and the cloud service end can be obtained by the target module 202 regularly sending a heartbeat packet to the cloud service end. If the cloud service end successfully receives the heartbeat packet and responds, it can be confirmed that the connection status is connected. If the heartbeat packet is not received for a period of time, it may indicate that the connection is abnormal or disconnected. The connection status of the target module 202 and the cloud service end can also be obtained by calling the API interface provided by the cloud service end. The cloud service end can provide an API for querying the connection status, and the target module 202 can obtain the latest connection status information by sending a request. The connection status of the target module 202 and the cloud service end can also be obtained by building a remote monitoring platform.

[0088] In step S702 of some embodiments, if the connection status is connected, it means that the target module 202 is online, and if the connection status is disconnected, it means that the target module 202 is offline. If the connection status between the target module 202 and the cloud service end indicates that the target module 202 is online, the target module 202 is controlled to exit the low power mode. If the connection status between the target module 202 and the cloud service end indicates that the target module 202 is offline, the target module 202 turns on the low-power Bluetooth broadcast to collect the control instructions issued by the router. At the same time, when the subject opens the application to enter the smart toilet 200 control page, when the target module 202 is offline, the application will automatically search and connect to Bluetooth.

[0089] Through the above steps S701 to S702, the Bluetooth broadcast can be turned on when the target module 202 is offline. Compared with setting the Bluetooth to be always online, turning on the low-power Bluetooth broadcast only when it is offline can save energy more efficiently. At the same time, this method enables the system to perform remote management and control when the target module is offline, thereby improving the flexibility and adaptability of the system.

[0090] It should be noted that the low-power Bluetooth service is not used to notify the target module 202 to exit the low-power mode. In low-power mode, the low-power Bluetooth service is in a closed state. Secondly, the low-power Bluetooth service is an emergency measure. When the target module 202 is in low-power mode, the connection stability is reduced due to the decrease in anti-interference ability, and it takes longer to reconnect when offline. If the object needs to use the smart toilet 200 at this time, the smart toilet 200 needs to notify the target module 202 to exit the low-power mode. At this time, it takes 3-5s for the target module 202 to restore the WiFi connection to connect to the network and log in to the server. During this time, the target module 202 can immediately turn on the low-power Bluetooth service, and the application can achieve second control through the low-power Bluetooth service, which improves the experience fluency of the object. Through the smart toilet 200 and the application, a Bluetooth direct connection channel is established. Since the instruction occupies a small number of bytes, it is not necessary to transfer through the server, thereby saving the response time of the instruction control.

[0091] In some other embodiments, after determining that the mode of the controller is in the first operating mode, the smart toilet control method further includes:

[0092] In response to a usage signal of the smart toilet, it is determined that the mode of the controller is in the second operating mode.

[0093] Among them, the use signal refers to the signal generated by the smart toilet 200 by sensing the action, operation or other external input of the object. The smart toilet 200 can sense the use signal of the object in a variety of ways, such as through a touch screen, a button, an infrared sensor, a sound sensor, etc. When the object uses the smart toilet 200, the corresponding sensing device will be triggered to generate a use signal. Secondly, in response to the use signal, the mode of the controller 201 will switch from the first operating mode to the second operating mode. For example, when the automatic flip function of the controller 201 is triggered, it means that the object is approaching and preparing to use the toilet. At this time, the controller 201 will exit the first operating mode and notify the target module 202 to exit the low power mode. This method realizes the automatic adjustment of the target module 202 by sensing the use status of the object, thereby achieving the effect of energy saving and emission reduction.

[0094] In some other embodiments, the target module also exits the low power consumption mode in the following manners:

[0095] When it is determined that the target module is in the low power consumption mode and a control instruction sent by the cloud service end is received, the target module is controlled to automatically exit the low power consumption mode; and / or;

[0096] When it is determined that the target module is in the low power consumption mode and a status reporting instruction of the smart toilet is received, the target module is controlled to automatically exit the low power consumption mode.

[0097] It should be noted that when the target module 202 is in low power consumption mode, the smart toilet 200 is in a dormant state. At this time, the smart toilet 200 has lower requirements for the timeliness of reporting data. The target module 202 can report the status by resending data every 3 seconds and resending it 3 times to ensure successful data transmission, thereby improving the reliability and stability of data transmission.

[0098] See also Figure 8 , Figure 8 This is a specific example flow chart of the target module entering the low power consumption mode in the smart toilet control method provided in an embodiment of the present application. First, obtain the continuous non-working time of the controller 201. If the continuous non-working time is less than or equal to 120s, the controller 201 maintains the original working mode; otherwise, the controller 201 enters the sleep mode. Secondly, when the controller 201 enters the sleep mode, obtain the connection status between the target module 202 and the router. When the connection status indicates that it is not connected, the target module 202 enters the idle mode; otherwise, the router signal strength is obtained. When the router signal strength is greater than -65dBm, the target module 202 enters low power consumption; otherwise, the target module 202 maintains the original working mode. The specific implementation process of the above steps is similar to the specific implementation process of the above steps S301-S302, steps S401-S402, and steps S501-S503. In order to save space, they are not repeated here.

[0099] See also Fig. 9 , Fig. 9 It is a specific example flow chart of the target module resuming work in the smart toilet control method provided in the embodiment of the present application. First, the controller 201 exits the sleep mode after sensing the action of the object, or notifies the controller 201 to exit the sleep mode when the target module 202 receives the control instruction. When the controller 201 exits the sleep mode, it will send a notification message to the target module 202, and the notification message is used to indicate that the controller has exited the sleep mode. Then the target mode of the target module 202 is judged. When the target module 202 is in a non-low power mode, the target module 202 maintains the original working mode; otherwise, the connection status of the target module 202 and the cloud service end is obtained, and whether the target module 202 is online is judged. When the target module 202 is online, the target module 202 exits the low power mode; when the target module 202 is offline, the target module 202 turns on the low-power Bluetooth broadcast. The specific implementation process of the above steps is similar to the specific implementation process of the above steps S601-S602 and steps S701-S702, and will not be repeated here to save space.

[0100] See also Fig.10 , Fig.10It is an overall example flow chart of the intelligent toilet control method provided by the embodiment of the present application. The intelligent toilet 200 can be directly controlled by the mobile terminal. The control instruction can also be issued by the application, which is received by the router and sent to the target module 202 to control the intelligent toilet 200. First, the controller 201 sends a first notification message to the target module 202, and its specific implementation process is similar to the specific implementation process of the above step S301. Secondly, in response to the first notification message, the target module 202 obtains the router signal strength and makes a judgment based on the signal strength. When the signal meets the standard, it enters the low power mode, and its specific implementation process is similar to the specific implementation process of the above step S302. When the target module 202 is in the low power mode, the target module 202 generates a second notification message and sends it to the controller 201 through the control instruction collected from the router, and its specific implementation process is similar to the specific implementation process of the above step S601. Subsequently, the controller 201 generates a third notification message and sends it to the target module 202 to cause the target module 202 to exit the low power mode. The third notification information is used to notify the target module 202 that the controller 201 exits the sleep mode. When the target module 202 is offline, the target module 202 is connected to the application of the mobile terminal via Bluetooth to achieve local control of the smart toilet 200.

[0101] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned smart toilet control method is implemented.

[0102] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0103] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0104] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0105] The system 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 present embodiment.

[0106] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0107] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0108] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0109] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

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

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

[0112] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

Claims

1. A smart toilet control method, characterized in that: The smart toilet includes a target module and a controller, the target module is used to send the collected control instructions to the controller, and the method is executed by the controller, and the method includes: Determining that the mode of the controller is in a first operating mode, and generating first notification information; Sending the first notification information to the target module, so that the target module enters a low power consumption mode in response to the first notification information, wherein the low power consumption mode is used to instruct the target module to reduce the radio frequency transmission power and collect the control instruction with the reduced radio frequency transmission power; The target module is used to send the control instruction collected from the router to the controller, and the low power consumption mode is entered in response to the first notification information, including: Obtaining the connection status between the target module and the router; If the connection status indicates that the module and the router are connected, obtaining the signal strength of the router; If the signal strength is greater than a preset strength threshold, determining the target mode of the target module to be a low power consumption mode; Wherein, the method further comprises: If the connection state indicates that the target module and the router are not connected, the target mode of the target module is determined to be an idle mode, and the radio frequency transmission power in the idle mode is less than the radio frequency transmission power in the low power consumption mode; If the connection status indicates that the target module and the router are connected, and if the signal strength is less than or equal to a preset strength threshold, the target mode of the target module is determined to be a high power consumption mode, and the RF transmission power in the high power consumption mode is greater than the RF transmission power in the low power consumption mode.

2. The intelligent toilet control method according to claim 1, characterized in that: Determining that the mode of the controller is in the first operating mode includes: Obtaining the continuous non-operating time of the controller; When the continuous non-operation time is greater than a preset time threshold, it is determined that the mode of the controller is in the first operation mode.

3. The intelligent toilet control method according to claim 1, characterized in that: After determining that the mode of the controller is in the first operating mode, the method further includes: receiving second notification information, where the second notification information is generated by the target module in response to a control instruction collected from a router; In response to the second notification information, it is determined that the mode of the controller is in the second operating mode, and the target module obtains the target mode of the target module in response to the second operating mode. If the target module determines that the target mode is a low power consumption mode, the low power consumption mode is exited.

4. The intelligent toilet control method according to claim 3, characterized in that: After the target module determines that the target mode is a low power consumption mode, the method further includes: The target module obtains the connection status between the target module and the cloud server; If the target module determines that the connection status between the target module and the cloud server indicates that the target module is offline, the target module starts a low-power Bluetooth broadcast to collect control instructions sent by the router.

5. The intelligent toilet control method according to claim 1, characterized in that: The method further comprises: When it is determined that the target module is in the low power consumption mode and a control instruction issued by the cloud service end is received, controlling the target module to automatically exit the low power consumption mode; and / or; When it is determined that the target module is in the low power consumption mode and a status reporting instruction of the smart toilet is received, the target module is controlled to automatically exit the low power consumption mode.

6. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory is used for a computer program that can be run on the processor, and when the computer program is executed, the intelligent toilet control method as described in any one of claims 1 to 5 is implemented.

7. A smart toilet, characterized in that: The smart toilet includes a target module and a controller, and the controller is used to execute the smart toilet control method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the intelligent toilet control method as described in any one of claims 1 to 5.