




技术领域technical field
本发明涉及智能家居/智慧家庭技术领域,具体而言,涉及一种设备控制方法、存储介质和电子装置。The present invention relates to the technical field of smart home/smart home, and in particular, to a device control method, a storage medium and an electronic device.
背景技术Background technique
目前市面上涌现了大量带有烘干功能的洗衣机产品,支持用户设定在洗衣结束后自动进入烘干程序。但是现有的烘干技术的耗电成本较高,同时对设备本身的损耗也比较大。也就是说,现有的衣物清洗控制方法存在设备使用成本较高的技术问题。At present, there are a large number of washing machine products with drying function on the market, which support users to set to automatically enter the drying program after washing. However, the power consumption cost of the existing drying technology is relatively high, and the loss to the equipment itself is also relatively large. That is to say, the existing laundry washing control method has the technical problem of high equipment use cost.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种设备控制方法、存储介质和电子装置,以至少解决现有洗涤方法存在设备使用成本较高的技术问题。Embodiments of the present invention provide a device control method, a storage medium, and an electronic device, so as to at least solve the technical problem of high device use cost in the existing washing methods.
根据本发明实施例的一个方面,提供了一种设备控制方法,包括:接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作。According to an aspect of the embodiments of the present invention, a device control method is provided, comprising: receiving a washing trigger instruction, wherein the washing trigger instruction is used to indicate that a target object is to be washed with a target washing device; and in response to the washing trigger instruction, acquiring the target washing The current weather environment parameters of the geographic location of the device; according to the current weather environment parameters and the type of the identified target object, the target washing device and/or the target drying device are controlled to perform drying and/or drying operations on the target object.
根据本发明实施例的又一方面,还提供了一种设备控制装置,包括:接收单元,用于接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;获取单元,用于响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;控制单元,用于根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作。According to yet another aspect of the embodiments of the present invention, there is also provided an apparatus control apparatus, comprising: a receiving unit configured to receive a washing trigger instruction, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment; an obtaining unit is used to obtain the current weather environment parameters of the geographical location of the target washing equipment in response to the washing trigger instruction; the control unit is used to control the target washing equipment and/or the target drying according to the current weather environment parameters and the type of the identified target object The device performs drying and/or drying operations on the target object.
根据本发明实施例的又一方面,还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述设备控制方法。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above-mentioned device control method when running .
根据本发明实施例的又一方面,还提供了一种电子装置,包括存储器和处理器,上述存储器中存储有计算机程序,上述处理器被设置为通过所述计算机程序执行上述的设备控制方法。According to another aspect of the embodiments of the present invention, an electronic device is further provided, including a memory and a processor, the memory stores a computer program, and the processor is configured to execute the above-mentioned device control method through the computer program.
在本发明实施例中,接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作,从而在天气环境适合晾晒衣物的情况下,控制执行晾晒程序,在天气环境不适合洗涤衣物的情况下,启动正常的洗涤烘干程序,进而避免直接使用设备烘干程序,进而解决了现有洗涤方法存在设备使用成本较高的技术问题。In the embodiment of the present invention, a washing trigger instruction is received, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment; in response to the washing trigger instruction, the current weather environment parameters of the geographical location of the target washing equipment are acquired; Weather environment parameters, and the type of the identified target object, control the target washing equipment and/or target drying equipment to perform drying and/or drying operations on the target object, so as to control the execution of the drying program when the weather environment is suitable for drying clothes , when the weather environment is not suitable for washing clothes, the normal washing and drying program is started, thereby avoiding the direct use of the equipment drying program, thereby solving the technical problem of high equipment use cost in the existing washing method.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1是根据本发明实施例的一种可选的设备控制方法的硬件环境的示意图;1 is a schematic diagram of a hardware environment of an optional device control method according to an embodiment of the present invention;
图2是根据本发明实施例的一种可选的设备控制方法的流程图;2 is a flowchart of an optional device control method according to an embodiment of the present invention;
图3是根据本发明实施例的另一种可选的设备控制方法的流程图;3 is a flowchart of another optional device control method according to an embodiment of the present invention;
图4是根据本发明实施例的一种可选的设备控制装置的结构示意图;4 is a schematic structural diagram of an optional device control apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的一种可选的电子装置的结构示意图。FIG. 5 is a schematic structural diagram of an optional electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
根据本申请实施例的一个方面,提供了一种智能家居设备的交互方法。该智能家居设备的交互方法广泛应用于智慧家庭(Smart Home)、智能家居、智能家用设备生态、智慧住宅(Intelligence House)生态等全屋智能数字化控制应用场景。可选地,在本实施例中,上述智能家居设备的交互方法可以应用于如图1所示的由终端设备102和服务器104所构成的硬件环境中。如图1所示,服务器104通过网络与终端设备102进行连接,可用于为终端或终端上安装的客户端提供服务(如应用服务等),可在服务器上或独立于服务器设置数据库,用于为服务器104提供数据存储服务,可在服务器上或独立于服务器配置云计算和/或边缘计算服务,用于为服务器104提供数据运算服务。According to an aspect of the embodiments of the present application, an interaction method of a smart home device is provided. The interaction method of the smart home device is widely used in smart home (Smart Home), smart home, smart home device ecology, smart house (Intelligence House) ecology and other whole-house intelligent digital control application scenarios. Optionally, in this embodiment, the above-mentioned interaction method of a smart home device may be applied to a hardware environment composed of a
上述网络可以包括但不限于以下至少之一:有线网络,无线网络。上述有线网络可以包括但不限于以下至少之一:广域网,城域网,局域网,上述无线网络可以包括但不限于以下至少之一:WIFI(Wireless Fidelity,无线保真),蓝牙。终端设备102可以并不限定于为PC、手机、平板电脑、智能空调、智能烟机、智能冰箱、智能烤箱、智能炉灶、智能洗衣机、智能热水器、智能洗涤设备、智能洗碗机、智能投影设备、智能电视、智能晾衣架、智能窗帘、智能影音、智能插座、智能音响、智能音箱、智能新风设备、智能厨卫设备、智能卫浴设备、智能扫地机器人、智能擦窗机器人、智能拖地机器人、智能空气净化设备、智能蒸箱、智能微波炉、智能厨宝、智能净化器、智能饮水机、智能门锁等。The above network may include, but is not limited to, at least one of the following: wired network, wireless network. The wired network may include but is not limited to at least one of the following: a wide area network, a metropolitan area network, and a local area network, and the wireless network may include but not limited to at least one of the following: WIFI (Wireless Fidelity, wireless fidelity), Bluetooth. The
作为一种可选的实施方式,如图2所示,上述设备控制方法包括以下步骤:As an optional implementation manner, as shown in FIG. 2 , the above-mentioned device control method includes the following steps:
S202,接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;S202, receiving a washing trigger instruction, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment;
可以理解的是,上述接收清洗触发指令的方式可以是在移动终端上接收到触发清洗任务的控制指令,具体方式可以是接收到用户在移动终端上的触控操作,以指示清洗设备开始清洗任务;还可以是在清洗设备上接收到触发清洗任务的控制指令,具体方式可以是接收到用户在清洗设备上的触控面板的触控操作,或接收到用户在清洗设备上的物理控件的触控操作,以指示清洗设备开始清洗任务;在另一种可选的方式中,还可以根据在移动终端或者清洗设备接收到的语音指令,以触发清洗任务,比如,通过清洗设备的音频接收单位接收到用户的语音指令“开始清洗”。此处不对具体接收清洗触发指令的方式进行限定。It can be understood that the above method of receiving the cleaning trigger instruction may be receiving a control instruction to trigger the cleaning task on the mobile terminal, and the specific method may be receiving a touch operation by the user on the mobile terminal to instruct the cleaning device to start the cleaning task. ; It can also be a control instruction that triggers a cleaning task is received on the cleaning device. The specific method can be receiving a touch operation on the touch panel of the cleaning device from the user, or receiving a touch operation on the physical control on the cleaning device from the user. control operation to instruct the cleaning device to start the cleaning task; in another optional way, the cleaning task can also be triggered according to the voice command received on the mobile terminal or the cleaning device, for example, through the audio receiving unit of the cleaning device The user's voice command "start cleaning" is received. The specific manner of receiving the cleaning trigger instruction is not limited here.
S204,响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;S204, in response to the washing trigger instruction, obtain the current weather environment parameters of the geographical location where the target washing equipment is located;
需要说明的是,本实施例中的目标清洗设备可以包括但不限于是用于执行清洗任务的智能家居设备,如智能洗衣机、智能洗碗机、智能洗菜机、智能洗地机等,对应于不同的智能设备,本实施例中的目标对象可以为清洗任务中用于清洁的对象。如,对应于智能洗衣机,目标对象可以是衣物、纺织品、床上用品等;对应于智能洗碗机,目标对象可以是碗筷、餐具、炊具等;对应于智能洗地机,目标对象可以是智能洗地机的耗材如拖布。此处不对目标清洗设备以及对应的目标清洗对象进行限定。It should be noted that the target cleaning equipment in this embodiment may include, but is not limited to, smart home equipment used to perform cleaning tasks, such as smart washing machines, smart dishwashers, smart vegetable washing machines, and smart floor washing machines. For different smart devices, the target object in this embodiment may be the object used for cleaning in the cleaning task. For example, corresponding to a smart washing machine, the target object can be clothes, textiles, bedding, etc.; corresponding to a smart dishwasher, the target object can be tableware, tableware, cooking utensils, etc.; corresponding to a smart washing machine, the target object can be smart The consumables of the washing machine are like mops. The target cleaning equipment and the corresponding target cleaning objects are not limited here.
进一步地,在接收到清洗触发指令的情况下,可以获取目标清洗设备所在地理位置的天气环境参数。本实施例中的天气环境参数可以包括但不限于晾晒指数、气温、空气湿度、紫外线强度等参数。获取目标清洗设备所在地理位置的天气环境参数的方式可以是根据目标清洗设备中内置的天气感应传感器获取,如内置的温度检测单元,以获取当前环境的气温数值、又如内置的空气干湿度检测单元,以获取当前环境中的空气湿度数值、又如内置的紫外线检测单元,以获取当前环境中的紫外线强度。在另一种可选的方式中,在获取上述气温、湿度、紫外线强度等参数的情况下,可以根据清洗设备内置的计算单元以综合上述天气参数计算确定出晾晒指数,以确定当前环境中对目标对象进行晾晒处理的适合程度。可选地,还可以通过网络直接获取上述参数,如内置某天气app的接口,在接收到清洗触发指令的情况下,通过调用天气app的接口以获取上述天气环境参数。在本实施例中,不对获取天气环境参数的具体方式进行限定。Further, in the case of receiving the cleaning trigger instruction, the weather environment parameters of the geographical location where the target cleaning device is located can be acquired. The weather environment parameters in this embodiment may include, but are not limited to, parameters such as drying index, air temperature, air humidity, and ultraviolet intensity. The way to obtain the weather environment parameters of the geographical location of the target cleaning equipment can be obtained according to the built-in weather sensing sensor in the target cleaning equipment, such as the built-in temperature detection unit to obtain the temperature value of the current environment, or the built-in air dry humidity detection unit to obtain the air humidity value in the current environment, or a built-in ultraviolet detection unit to obtain the ultraviolet intensity in the current environment. In another optional way, in the case of obtaining the above parameters such as temperature, humidity, ultraviolet intensity, etc., the drying index can be calculated and determined according to the built-in calculation unit of the cleaning device by synthesizing the above weather parameters, so as to determine the relative humidity in the current environment. The suitability of the target object for drying treatment. Optionally, the above parameters can also be obtained directly through the network, such as the interface of a built-in weather app, in the case of receiving a cleaning trigger instruction, the above weather environment parameters can be obtained by calling the interface of the weather app. In this embodiment, the specific manner of acquiring the weather environment parameter is not limited.
S206,根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作。S206: Control the target washing device and/or the target drying device to perform drying and/or drying operations on the target object according to the current weather environment parameters and the identified type of the target object.
需要说明的是,上述目标对象的类型可以是对图像采集装置获取的目标对象的图像进行识别得到,还可以是根据用户输入的信息进行识别得到。比如,在开启洗涤触发流程之前,通过洗涤设备自带的图像采集装置获取待洗涤的目标对象的图像,以确定目标对象的类型,如衣物、床被、碗筷、拖布等对象。在另一种方式中,可以根据用户输入的信息以确定目标对象的对象类型。It should be noted that, the type of the above-mentioned target object may be obtained by recognizing the image of the target object obtained by the image acquisition device, or may be obtained by recognizing the information input by the user. For example, before starting the washing triggering process, an image of the target object to be washed is acquired through the image acquisition device provided with the washing device to determine the type of the target object, such as clothing, bed quilt, tableware, mop and other objects. In another way, the object type of the target object can be determined according to the information input by the user.
作为一种可选的方式,在确定目标对象为衣物的情况下,可以进一步对目标衣物的水洗标识进行识别,以判断目标衣物的材质,以及进行水洗、烘干等操作的操作类型。比如,在对目标衣物的水洗标识进行识别后,确定当前衣物的材质为聚酯纤维,指示当前衣物适合暴晒速干,进而可以在后续操作中优先启动晾晒操作;又比如,在对目标衣物的水洗标识进行识别后,确定当前衣物的材质为羊毛,指示当前衣物不适于暴晒速干,且不适于高温烘干,进而可以根据目标衣物的识别结果在后续操作中采用短时间烘干操作和晾晒操作结合的方式进行处理。As an optional method, when the target object is determined to be clothing, the washing identifier of the target clothing may be further identified to determine the material of the target clothing and the operation type of washing, drying and other operations. For example, after identifying the washing mark of the target clothes, it is determined that the material of the current clothes is polyester fiber, indicating that the current clothes are suitable for quick drying in the sun, and then the drying operation can be preferentially started in subsequent operations; After the washing mark is identified, it is determined that the material of the current clothing is wool, indicating that the current clothing is not suitable for quick drying in the sun, and is not suitable for high temperature drying, and then short-term drying operation and drying can be used in subsequent operations according to the identification result of the target clothing. The operations are processed in a combined manner.
以下对天气环境参数对后续操作的影响关系进行说明。在天气环境参数为一个数值的情况下,可以根据需要晾晒的对象的类型确定出对象晾晒条件对应的阈值,在天气环境参数达到对象晾晒条件或者超过对象晾晒条件对应的阈值的情况下,确定控制晾晒目标对象的目标晾晒设备进入运行状态。可选地,在天气环境参数为晾晒指数的情况下,晾晒指数可以分为1级至5级,级别越高指示当前天气越适合进行晾晒。进一步地,根据晾晒的对象设置晾晒条件,在晾晒对象为容易晾干的衣物的情况下,可以设备晾晒条件为3级,即在获取的天气环境参数为3级或者3级以上的晾晒指数的情况下,则控制晾晒设备(如智能晾衣架)进入运行状态;在晾晒对象为不容易晾干的纺织品如棉被的情况下,可以设定晾晒条件为5级,即在获取的天气环境参数为5级晾晒指数的情况下,则控制晾晒设备进入运行状态。在本实施例中不对晾晒条件的具体设定方式进行限定。The following describes the influence relationship of weather environment parameters on subsequent operations. When the weather environment parameter is a numerical value, the threshold value corresponding to the object drying condition can be determined according to the type of the object to be dried. When the weather environment parameter reaches the object drying condition or exceeds the threshold value corresponding to the object drying condition, the control is determined. The target drying equipment for drying the target object enters the running state. Optionally, in the case where the weather environment parameter is the drying index, the drying index can be divided into grades 1 to 5, and a higher level indicates that the current weather is more suitable for drying. Further, the drying conditions are set according to the objects to be dried. In the case where the objects to be dried are clothes that are easy to dry, the drying conditions of the equipment can be set to level 3, that is, the obtained weather environment parameters are level 3 or above the drying index. In this case, control the drying equipment (such as a smart drying rack) to enter the running state; in the case where the drying object is a textile that is not easy to dry, such as a quilt, the drying condition can be set to level 5, that is, the obtained weather environment parameters In the case of a 5-level drying index, the drying equipment is controlled to enter the running state. The specific setting manner of the drying conditions is not limited in this embodiment.
以下对一个具体的实施方式进行说明:在获取到洗涤触发指令的情况下,首先获取洗涤触发指令指示的目标洗涤设备所在的地理位置的当前天气环境参数。假设上述目标洗涤设备为一台衣物洗烘一体机,当前地理位置的天气环境参数为2级,指示当前天气状况无法快速晒干衣物。接着,获取待洗涤的目标衣物的类型,具体可以通过用户输入的衣物类型进行识别,确定当前待洗涤的目标衣物为“羊毛衫”,指示当前待洗涤的衣物既不适合高温烘干,也不适合暴晒晾干。结合当前天气环境参数以及目标衣物的类型,确定后续执行的操作流程为:先控制执行中低温烘干操作,再控制晾晒设备调整为运行状态,并提示用户进行晾晒操作,从而既满足了衣物类型的烘干/晾晒的要求,又节省了洗烘一体机的能耗。A specific embodiment will be described below: in the case of obtaining the washing trigger instruction, first obtain the current weather environment parameters of the geographical location where the target washing equipment indicated by the washing trigger instruction is located. Assuming that the above-mentioned target washing device is an all-in-one clothes washing and drying machine, the weather environment parameter of the current geographical location is level 2, indicating that the current weather conditions cannot quickly dry the clothes. Next, the type of the target clothing to be washed is acquired, which can be specifically identified by the clothing type input by the user, and the current target clothing to be washed is determined to be a "wool sweater", indicating that the current clothing to be washed is neither suitable for high-temperature drying, nor is it suitable for high-temperature drying. Not suitable for drying in the sun. Combined with the current weather environment parameters and the type of the target clothes, the subsequent operation process is determined as: first control the execution of the medium and low temperature drying operation, then control the drying equipment to adjust to the running state, and prompt the user to perform the drying operation, so as to satisfy the clothes type. It also saves the energy consumption of the washer-drying machine.
通过本申请的上述实施例,接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作,从而在确定当前天气条件适合晾晒的情况下,控制晾晒设备运行,提示用户采用自然晾晒的方式实现洗涤对象的干燥操作,进而避免直接在洗涤设备中使用烘干模式,从而减少洗涤设备的用电量,且减少洗涤设备的设备损耗。Through the above-mentioned embodiment of the present application, a washing trigger instruction is received, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment; in response to the washing trigger instruction, the current weather environment parameters of the geographical location of the target washing equipment are obtained; The current weather environment parameters, and the type of the identified target object, control the target washing equipment and/or the target drying equipment to perform drying and/or drying operations on the target object, so as to control the drying under the condition that the current weather conditions are suitable for drying When the equipment is running, the user is reminded to use the natural drying method to realize the drying operation of the washing object, so as to avoid using the drying mode directly in the washing equipment, thereby reducing the power consumption of the washing equipment and reducing the equipment loss of the washing equipment.
作为一种可选的实施方式,上述控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作包括:控制进入运行状态下的目标晾晒设备将晾晒高度调整至目标高度,其中,目标高度与当前使用目标晾晒设备来晾晒目标对象的用户角色的身高相适配。As an optional implementation manner, the above-mentioned controlling the target washing device and/or the target drying device to perform the drying and/or drying operation of the target object includes: controlling the target drying device in the running state to adjust the drying height to the target height , wherein the target height is adapted to the height of the user character currently using the target drying device to dry the target object.
需要说明的是,在本实施例中的晾晒设备在常规状态下会运行至较高的位置,以提升晾晒效果。在控制用于晾晒目标对象的目标晾晒设备进入运行状态的情况下,由于待晾晒的对象需要用户手动移动至晾晒设备上,因此需要调整运行至与用户身高匹配的高度,以便于用户将晾晒对象从洗涤设备中转移至晾晒设备上。It should be noted that the drying equipment in this embodiment will run to a higher position in a normal state to improve the drying effect. In the case of controlling the target drying device for drying the target object to enter the running state, since the object to be dried needs to be manually moved to the drying device by the user, it is necessary to adjust the operation to a height that matches the user's height, so that the user can place the object to be dried on the drying device. Transfer from washing equipment to drying equipment.
进一步地,确定与用户角色身高匹配的方式可以是:在接收到用户的语音指令的情况下,根据语音分析确定用户角色的年龄,身高,进而控制晾晒设备调整至与用户角色身高匹配的高度。在另一种方式中,可以是根据当前晾晒设备的运行模式以确定运行高度,比如,在确定当前晾晒设备为成人模式的情况下,控制运行至与成人身高匹配的高度;在确定当前晾晒设备为未成人模式的情况下,控制控制晾晒设备运行至与当前家庭中为成年的用户角色身高匹配的高度。Further, the method of determining the height matching with the user character may be: in the case of receiving a voice command from the user, determining the age and height of the user character according to the voice analysis, and then controlling the drying device to adjust to a height matching the height of the user character. In another way, the operating height may be determined according to the current operating mode of the drying equipment. For example, in the case of determining that the current drying equipment is in the adult mode, the operation is controlled to a height that matches the height of an adult; after determining the current drying equipment In the case of the underage mode, the control controls the drying device to run to a height that matches the height of the adult user character in the current family.
在一个具体的实施方式中,在接收到用户的语音指令,以指示洗涤设备执行洗涤任务的情况下,对用户的语音控制指令进行分析,以确定当前用户为当前家庭的具体角色,并根据当前用户匹配的身高数值,确定晾晒设备匹配的运行高度,并控制晾晒设备运行至与当前用户角色的身高适配的目标高度,从而便于当前用户角色将洗涤对象转移至晾晒设备上。In a specific implementation, when a user's voice command is received to instruct the washing device to perform a washing task, the user's voice control command is analyzed to determine that the current user is the specific role of the current family, and based on the current The height value matched by the user determines the matching running height of the drying equipment, and controls the drying equipment to run to the target height that matches the height of the current user role, so that the current user role can transfer the washing objects to the drying equipment.
作为一种可选的实施方式,控制进入运行状态下的目标晾晒设备将晾晒高度调整至目标高度包括:As an optional implementation manner, controlling the target drying equipment in the running state to adjust the drying height to the target height includes:
S1,播放对目标晾晒设备的使用提示语音;S1, play a voice prompt for the use of the target drying equipment;
S2,在收到使用确认指令的情况下,控制目标晾晒设备调整至目标高度。S2, in the case of receiving the use confirmation instruction, control the target drying equipment to adjust to the target height.
在本实施例中,在检测到存在可用的晾晒设备的情况下,播放对目标晾晒设备的使用提示音,以获取用户角色的控制指令。如播放提示音:“是否开启洗晾联动?”,在接收到用户的确定指令“确定开启”的情况下,在控制晾晒设备调整至目标高度。In this embodiment, when it is detected that there is an available drying device, a prompt sound for the use of the target drying device is played to obtain a control instruction for the user role. For example, the prompt tone is played: "Do you want to open the washing and drying linkage?", in the case of receiving the user's confirmation instruction "OK to open", the drying equipment is controlled to adjust to the target height.
在本实施例中,通过播放对目标晾晒设备的使用提示语音;在收到使用确认指令的情况下,控制目标晾晒设备调整至目标高度,实现了根据用户指令精确控制晾晒设备的运行,从而提高了洗晾联动模式的控制效率。In this embodiment, by playing the voice prompting the use of the target drying equipment; in the case of receiving the use confirmation instruction, the target drying equipment is controlled to be adjusted to the target height, so that the operation of the drying equipment can be accurately controlled according to the user's instructions, thereby improving the performance of the drying equipment. The control efficiency of the washing and drying linkage mode is improved.
作为一种可选的实施方式,在控制进入运行状态下的目标晾晒设备将晾晒高度调整至目标高度时,还包括:提示目标晾晒设备正在调整晾晒高度的预警信息。As an optional implementation manner, when controlling the target drying equipment in the running state to adjust the drying height to the target height, the method further includes: warning information indicating that the target drying equipment is adjusting the drying height.
可以理解的是,在本实施例中,设备与用户交互过程中会进行人性化互动。如在调整晾晒设备高度的情况下,播放提示音“晾衣架已经下来啦,小心碰头哦”。It can be understood that, in this embodiment, humanized interaction will be performed during the interaction between the device and the user. For example, in the case of adjusting the height of the drying equipment, the prompt sound "The drying rack has come down, be careful to meet each other".
通过本申请上述实施例,通过在控制进入运行状态下的目标晾晒设备将晾晒高度调整至目标高度时,提示目标晾晒设备正在调整晾晒高度的预警信息,从而实现晾晒设备与用户角色的人性化互动。Through the above-mentioned embodiments of the present application, when the target drying equipment in the running state is controlled to adjust the drying height to the target height, the warning information prompting the target drying equipment to adjust the drying height, thereby realizing the humanized interaction between the drying equipment and the user role .
作为一种可选的实施方式,在控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作之前,还包括:As an optional implementation manner, before controlling the target washing device and/or the target drying device to perform drying and/or drying operations on the target object, the method further includes:
S1,获取当前处于在线模式下的候选晾晒设备的占用状态;S1, obtain the occupancy status of the candidate drying equipment currently in the online mode;
S2,将占用状态指示为未被占用的晾晒设备确定为目标晾晒设备。S2: Determine the drying equipment whose occupation state is indicated as being unoccupied as the target drying equipment.
可以理解的是,在本实施例中,首先检测是否存在可用的晾晒设备,可用的晾晒设备包括处在联网控制状态下且当前运行状态为空闲状态的晾晒设备。进而,在确定存在可用的晾晒设备即未被占用的晾晒设备的情况下,确定出目标晾晒设备。It can be understood that, in this embodiment, it is first detected whether there is available drying equipment, and the available drying equipment includes drying equipment that is in a networked control state and whose current operating state is idle. Further, when it is determined that there is an available drying device, that is, an unoccupied drying device, a target drying device is determined.
在本申请的上述实施例中,通过获取当前处于在线模式下的候选晾晒设备的占用状态;将占用状态指示为未被占用的晾晒设备确定为目标晾晒设备,从而精确确定出需要控制运行的晾晒设备,进而实现对晾晒设备的精准控制。In the above-mentioned embodiment of the present application, by acquiring the occupancy status of the candidate drying equipment currently in the online mode; and determining the drying equipment whose occupation status is indicated as not being occupied as the target drying equipment, so as to accurately determine the drying equipment that needs to be controlled and operated. equipment, so as to achieve precise control of drying equipment.
作为一种可选的实施方式,上述控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作,还包括:As an optional implementation manner, the above-mentioned controlling the target washing device and/or the target drying device to perform the drying and/or drying operation of the target object further includes:
S1,获取计划运行时长;S1, get the planned running time;
S2,根据当前天气环境参数、目标对象的类型以及计划运行时长,确定所述目标洗涤设备对所述目标对象执行的烘干操作的第一运行时长,以及所述目标晾晒设备对所述目标对象执行的晾晒操作的第二运行时长,其中,第一运行时长与第二运行时长之和小于或等于计划运行时长;S2: Determine the first running duration of the drying operation performed by the target washing equipment on the target object, and determine the first running duration of the drying operation performed by the target drying device on the target object, according to the current weather environment parameters, the type of the target object, and the planned running duration. the second running duration of the executed drying operation, wherein the sum of the first running duration and the second running duration is less than or equal to the planned running duration;
S3,根据第一运行时长以及第二运行时长,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作。S3: Control the target washing device and/or the target drying device to perform drying and/or drying operations on the target object according to the first running duration and the second running duration.
需要说明的是,上述计划运行时长可以是用户角色确定的设备总运行时长,也可以是目标设备的设置条件中预设的总运行时长。It should be noted that the above-mentioned planned running duration may be the total running duration of the device determined by the user role, or may be the total running duration preset in the setting conditions of the target device.
进一步地,在获取目标设备的总运行时长的情况下,可以进一步根据天气环境参数计算将目标对象进行晾晒至完全干燥所需要的时长,如果计算得到的时长大于所述设备总运行时长,则确定无法在预设时间内完成晾晒操作,进而确定需要控制洗涤设备先对目标对象执行第一时长的烘干操作,再控制晾晒设备对目标对象执行第二时长的晾晒操作。可以理解的是,上述第一时长与第二时长的和小于或等于上述总运行时长。Further, in the case of obtaining the total operating time of the target equipment, the time required for drying the target object to be completely dry can be further calculated according to the weather environment parameters, and if the calculated time is greater than the total operating time of the equipment, then determine. The drying operation cannot be completed within the preset time, and it is further determined that the washing device needs to be controlled to perform the drying operation for the first duration on the target object, and then the drying device is controlled to perform the drying operation for the target object for the second duration. It can be understood that the sum of the foregoing first duration and the second duration is less than or equal to the foregoing total running duration.
也就是说,基于天气环境参数计算确定无法实现在预设时长内将目标对象晾晒至干燥的情况下,确定控制目标洗涤设备先对目标对象进行一段时间烘干,再控制晾晒设备对目标对象进行晾晒,进而减少洗涤设备的烘干模式的运行时长,实现节约能耗的技术效果。That is to say, if it is determined based on the calculation of weather environment parameters that it is impossible to dry the target object within a preset period of time, it is determined to control the target washing equipment to first dry the target object for a period of time, and then control the drying equipment to dry the target object. Drying, thereby reducing the running time of the drying mode of the washing equipment, and achieving the technical effect of saving energy.
具体地,在上述目标设备为洗衣机的情况下,上述计划运行时长可以是接收的用户设置的“预计干衣时长”为8小时。结合当前天气环境参数进行计算,确定仅经过8小时晾晒无法将洗涤的衣物晾干。进一步计算确定烘干程序运行10分钟(即第一运行时长),并结合7小时50分(即第二运行时长)的晾晒,可以将洗涤后的衣服晾干。Specifically, in the case where the target device is a washing machine, the above-mentioned planned running duration may be that the received "expected drying duration" set by the user is 8 hours. Based on the calculation of the current weather and environmental parameters, it is determined that the washed clothes cannot be dried after only 8 hours of drying. It is further calculated and determined that the drying program runs for 10 minutes (ie, the first running duration), and combined with drying for 7 hours and 50 minutes (ie, the second running duration), the washed clothes can be dried.
进一步地,在确定烘干程序的运行时长以及晾晒设备的运行时长的情况下,控制洗衣机在完成洗涤程序后,自动执行10分钟烘干程序,并提示用户角色进行晾晒,同时控制晾晒设备调整为运行状态。进而,可以实现在预设的8小时内将洗涤的衣物晾干,且耗能最少。Further, in the case of determining the running time of the drying program and the running time of the drying equipment, the washing machine is controlled to automatically execute the drying program for 10 minutes after the washing program is completed, and the user role is prompted to dry, and the drying equipment is controlled to be adjusted to Operating status. Furthermore, the laundry can be dried within a preset 8 hours with minimal energy consumption.
在另一种情况中,在上述目标设备为洗衣机的情况下,上述计划运行时长可以是设备的预先设置的“预计干衣时长”8小时。结合当前天气环境参数进行计算,确定仅经过7小时晾晒可以将洗涤的衣物晾干,进而确定上述烘干程序的运行时长为0小时(第一运行时长),晾晒设备的运行时长为7小时(第二运行时长)。In another case, in the case where the target device is a washing machine, the planned operation time may be a preset "expected drying time" of the device of 8 hours. Based on the calculation of the current weather and environmental parameters, it is determined that the laundry can be dried after only 7 hours of drying, and then it is determined that the running duration of the above drying program is 0 hours (the first running duration), and the running duration of the drying equipment is 7 hours ( second runtime).
进一步地,在确定烘干程序的运行时长以及晾晒设备的运行时长的情况下,控制洗衣机在完成洗涤程序后,直接提示用户角色进行晾晒,同时控制晾晒设备调整为运行状态。进而,可以实现在预设的8小时内将洗涤的衣物晾干,且不产生烘干程序的能耗。Further, when the running duration of the drying program and the running duration of the drying equipment are determined, the washing machine is controlled to directly prompt the user role to dry after completing the washing program, and at the same time, the drying equipment is controlled to be adjusted to the running state. Furthermore, it is possible to dry the washed clothes within a preset 8 hours without generating the energy consumption of the drying procedure.
在又一种情况中,在上述目标设备为洗衣机的情况下,上述计划运行时长仍为“预计干衣时长”8小时。结合当前天气环境参数进行计算,确定当前天气不适合晾晒。进而确定上述烘干程序的运行时长为0.5小时(第一运行时长),晾晒设备的运行时长为0小时。可以理解的是,在本实施例中,预设的0.5小时烘干程序可以实现将刚洗涤好的衣物完全烘干的效果。In yet another situation, in the case where the target device is a washing machine, the planned operation time is still 8 hours as the "expected drying time". Combined with the current weather and environmental parameters, it is determined that the current weather is not suitable for drying. Further, it is determined that the running duration of the above drying program is 0.5 hours (the first running duration), and the running duration of the drying equipment is 0 hours. It can be understood that, in this embodiment, the preset 0.5-hour drying program can achieve the effect of completely drying the freshly washed clothes.
进一步地,在确定烘干程序的运行时长以及晾晒设备的运行时长的情况下,控制洗衣机在完成洗涤程序后,运行0.5小时烘干程序,并在程序结束后,提示用户收纳衣物。Further, when the running duration of the drying procedure and the running duration of the drying equipment are determined, the washing machine is controlled to run the drying procedure for 0.5 hours after the washing procedure is completed, and after the procedure ends, the user is prompted to store the clothes.
通过本申请的上述实施方式,通过获取计划运行时长;根据当前天气环境参数、目标对象的类型以及目标时长,确定所述目标洗涤设备对所述目标对象执行的烘干操作的第一运行时长,以及所述目标晾晒设备对所述目标对象执行的晾晒操作的第二运行时长,其中,第一运行时长与第二运行时长之和小于或等于计划运行时长;根据第一运行时长以及第二运行时长,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作,从而在判断预设时间段内无法完全通过晾晒实现目标对象的干燥操作的情况下,通过烘干/晾晒结合的方式进行控制操作,从而实现节约能耗的技术效果。Through the above-mentioned embodiments of the present application, by obtaining the planned running duration; according to the current weather environment parameters, the type of the target object and the target duration, the first running duration of the drying operation performed by the target washing device on the target object is determined, and the second running duration of the drying operation performed by the target drying device on the target object, wherein the sum of the first running duration and the second running duration is less than or equal to the planned running duration; according to the first running duration and the second running duration duration, control the target washing equipment and/or the target drying equipment to perform the drying and/or drying operation of the target object, so that when it is judged that the drying operation of the target object cannot be completely achieved by drying within the preset time period, the drying operation The control operation is carried out in a combined way of drying and drying, so as to achieve the technical effect of saving energy.
作为一种可选的实施方式,在获取目标洗涤设备所在地理位置当前的天气环境参数之后,还包括:在天气环境参数指示地理位置当前的天气状态并未达到对象晾晒条件的情况下,控制目标洗涤设备进入自动烘干模式。As an optional implementation manner, after obtaining the current weather environment parameters of the geographic location where the target washing equipment is located, the method further includes: if the weather environment parameters indicate that the current weather state of the geographic location does not reach the object drying conditions, controlling the target The washing machine enters the automatic drying mode.
可以理解的是,在本实施例中,当前天气环境参数指示当前环境不适合晾晒目标对象的情况下,控制自动运行洗涤设备进入洗涤—烘干模式(洗烘联动),从而避免了用户在未对后续操作进行设定的情况下,洗涤后的对象无法干燥的问题。It can be understood that, in this embodiment, when the current weather environment parameter indicates that the current environment is not suitable for drying the target object, the automatic operation of the washing device is controlled to enter the washing-drying mode (washing-drying linkage), thereby preventing the user from When setting the subsequent operation, the object after washing cannot be dried.
作为一种可选的实施方式,上述方法还包括:As an optional embodiment, the above method also includes:
S1,从临时数据库中获取目标操作参数,其中,所述临时数据库用于缓存历史获取的多个操作参数,所述操作参数包括:所述当前天气环境参数、所述目标对象的类型参数、所述目标对象的用户角色的身高参数;S1. Acquire target operation parameters from a temporary database, wherein the temporary database is used to cache multiple operation parameters obtained in history, and the operation parameters include: the current weather environment parameter, the type parameter of the target object, the Describe the height parameter of the user character of the target object;
S2,从指令队列中获取目标设备控制指令,其中,所述指令队列用于缓存历史接收的多条设备控制指令;S2, obtain the target device control instruction from the instruction queue, wherein, the instruction queue is used for buffering a plurality of equipment control instructions received in the history;
S3,基于所述目标操作参数以及所述目标设备控制指令,控制所述目标洗涤设备和/或目标晾晒设备执行对所述目标对象的烘干和/或晾晒操作。S3, based on the target operation parameter and the target device control instruction, control the target washing device and/or the target drying device to perform drying and/or drying operations on the target object.
可选地,上述方法可以通过以下步骤实现:Optionally, the above method can be implemented by the following steps:
S1,在目标洗涤设备处于指令空闲状态的情况下,从指令队列中获取目标设备控制指令,其中,所述指令空闲状态指示目标洗涤设备当前并未处理其他控制指令的状态;S1, when the target washing equipment is in an instruction idle state, obtain a control instruction of the target equipment from the instruction queue, wherein the instruction idle state indicates a state in which the target washing equipment does not currently process other control instructions;
S2,在获取的目标设备控制指令为洗涤触发指令的情况下,从临时数据库中获取当前天气环境参数以及目标对象的类型参数,其中,当前天气环境参数以及目标对象的类型参数为预先存储于临时数据库中的数据;S2, in the case that the acquired control instruction of the target device is a washing trigger instruction, acquire the current weather environment parameter and the type parameter of the target object from the temporary database, wherein the current weather environment parameter and the type parameter of the target object are stored in the temporary database in advance. data in the database;
S3,基于天气环境参数以及目标对象的类型参数,确定目标洗涤设备的运行模式以及目标晾晒设备的运行模式;S3, determining the operation mode of the target washing equipment and the operation mode of the target drying equipment based on the weather environment parameters and the type parameters of the target object;
S4,根据目标洗涤设备以及目标晾晒设备的运行模式,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作,包括:从临时数据库中获取目标对象的用户角色的身高参数,根据身高参数调整处于运行状态的晾晒设备的晾晒高度。S4, controlling the target washing equipment and/or the target drying equipment to perform drying and/or drying operations on the target object according to the operation modes of the target washing equipment and the target drying equipment, including: obtaining the user role of the target object from a temporary database Height parameter, adjust the drying height of the drying equipment in the running state according to the height parameter.
具体地,上述临时数据库可以采用redis数据库。并使用redis数据库对首次获取的操作参数进行缓存,在需要再次获取操作参数的情况下,从redis数据库中直接获取相关操作参数。比如,在接收洗涤触发指令之前,可以预先从网络获取当前天气环境参数,并缓存至redis数据库中。在接收到洗涤触发指令的情况下,直接从redis数据库中获取当前天气环境参数,进而避免在响应用户的洗涤触发指令的过程中,临时从网络中获取天气环境参数而带来的响应缓慢的技术问题。可以理解的是,在洗涤流程中的其他相关操作参数,均可在redis数据库中进行缓存,并在需要的时候从redis数据库中获取,从而利用redis数据库中的快速响应的特性提升对用户指令进行响应的速度。又如,可以通过redis数据库实时保存当前晾晒设备的占用状态参数,在需要获取当前处于在线模式下的候选晾晒设备的占用状态的情况下,从redis数据库中直接获取当前晾晒设备的占用状态参数,进而快速确定当前晾晒设备的占用状态。Specifically, the above temporary database may use a redis database. And use the redis database to cache the operation parameters obtained for the first time, and directly obtain the relevant operation parameters from the redis database when the operation parameters need to be obtained again. For example, before receiving the washing trigger instruction, the current weather environment parameters can be obtained from the network in advance and cached in the redis database. In the case of receiving the washing trigger command, the current weather environment parameters are directly obtained from the redis database, thereby avoiding the slow response technology caused by temporarily obtaining the weather environment parameters from the network in the process of responding to the user's washing trigger command. question. It is understandable that other related operation parameters in the washing process can be cached in the redis database and obtained from the redis database when needed, so as to utilize the fast response feature in the redis database to improve the user instructions. speed of response. For another example, the occupancy status parameters of the current drying equipment can be saved in real time through the redis database, and the occupancy status parameters of the current drying equipment can be directly obtained from the redis database when the occupancy status of the candidate drying equipment currently in the online mode needs to be obtained. Then, the occupancy status of the current drying equipment can be quickly determined.
在执行上述洗涤-烘干-晾晒相关操作的过程中,可以将获取的用户指令或其他设备发送的信息缓存于roketmq队列中,再从roketmq队列中获取上述指令和信息。roketmq为一种消息中间件,消息发送者按照自己的发送节奏将消息发送至消息队列中;消息队列存储发送者发送的消息;消息获取方按照自己的节奏从消息队列中获取消息,从而实现消息发送方和消息获取方之间的消息异步通讯。也就是说,消息中间件用于对消息进行缓存,起到缓冲、削峰填谷的作用,避免了消息堆积,提高了设备响应速率。In the process of performing the above washing-drying-airing related operations, the obtained user instructions or information sent by other devices may be cached in the roketmq queue, and then the above instructions and information can be obtained from the roketmq queue. roketmq is a kind of message middleware. The message sender sends the message to the message queue according to its own sending rhythm; the message queue stores the message sent by the sender; the message acquirer obtains the message from the message queue according to its own rhythm, so as to realize the message Asynchronous communication of messages between sender and message getter. That is to say, the message middleware is used to cache messages, which plays the role of buffering, cutting peaks and filling valleys, avoiding message accumulation and improving the response rate of devices.
通过本申请的上述实施方式,采用redis数据库和roketmq消息中间件结合的方式,提高响应速度。Through the above-mentioned embodiments of the present application, the combination of the redis database and the roketmq message middleware is adopted to improve the response speed.
以下结合图3对一个具体的实施例进行说明。A specific embodiment will be described below with reference to FIG. 3 .
首先,如步骤S1,接收洗衣指令;First, as in step S1, receive a laundry instruction;
具体地,可以在接收到用户的语音指令“洗衣服啦”或“我要洗衣服了”等语料指令的情况下,确定接收到洗衣指令。Specifically, it may be determined that a laundry instruction is received when a corpus instruction such as "I'm doing laundry" or "I want to do laundry" from the user is received.
步骤S2,检测天气是否适合晾晒;Step S2, detecting whether the weather is suitable for drying;
具体地,在确定用户的洗衣指令的情况下下,根据网络从联动的天气app中获取当前的晾晒指数,在获取的晾晒指数指示当前适合晾晒衣物的情况下,执行步骤S3;在在获取的晾晒指数指示当前适合晾晒衣物的情况下,执行步骤S9,执行洗烘联动程序。Specifically, in the case of determining the user's laundry instruction, the current drying index is obtained from the linked weather app according to the network, and if the obtained drying index indicates that the clothes are currently suitable for drying, step S3 is performed; When the drying index indicates that the clothes are currently suitable for drying, step S9 is executed to execute the washing and drying linkage program.
步骤S3,判断是否选择智能洗;Step S3, judging whether to select intelligent washing;
具体地,在获取的晾晒指数指示当前适合晾晒衣物的情况下,播放提示音“是否开启智能洗模式?”在获取用户的肯定回答的情况下,执行步骤S4,在在获取用户的否定回答的情况下,确定洗衣结束后,即结束整个流程。Specifically, when the obtained drying index indicates that the clothes are currently suitable for drying, the prompt sound "Do you want to enable the smart washing mode?" is played. When a positive answer from the user is obtained, step S4 is performed, and when a negative answer from the user is obtained In this case, after it is determined that the laundry is over, the entire process is ended.
步骤S4,提示洗衣结束;Step S4, prompting the end of washing;
具体地,在洗衣结束后,播放提语音“洗衣结束啦,记得晾衣服哦!”Specifically, after the laundry is over, play the voice "Laundry is over, remember to dry your clothes!"
步骤S5,判断晾衣架是否可用,在确定存在可用的晾衣架的情况下,执行步骤S6;在不存在可用的晾衣架的情况下,跳转至步骤S8,执行正常逻辑。In step S5, it is judged whether the drying rack is available, and if it is determined that there is an available drying rack, step S6 is performed; if there is no available drying rack, it jumps to step S8 and executes normal logic.
具体地,首先检测是否存在可用的晾衣架,可用的晾衣架包括处在联网控制状态下且当前运行状态为空闲状态的晾衣架。进而,在确定存在可用的晾衣架即未被占用的晾衣架的情况下,确定出目标晾衣架。Specifically, it is first detected whether there is an available clothes drying rack, and the available clothes drying racks include the clothes drying racks that are in a networked control state and whose current running state is an idle state. Further, in the case where it is determined that there is an available clothes drying rack, that is, an unoccupied clothes drying rack, a target clothes drying rack is determined.
S6,判断是否开启洗晾联动,在开启洗晾联动的情况下,执行步骤S7,在不开启洗晾联动的情况下,执行步骤S8;S6, determine whether to enable the washing and drying linkage, in the case of enabling the washing and drying linkage, execute step S7, and in the case of not enabling the washing and drying linkage, execute step S8;
具体地,可以播放语音提示音“是否开启洗晾联动?”,在接收到用户的肯定回答的情况下,执行后续洗晾联动程序,在未接收到用户的肯定回答的情况下,执行后续正常的逻辑。Specifically, the voice prompt "Do you want to enable washing and drying linkage?" can be played, and the subsequent washing and drying linkage program is executed when an affirmative answer from the user is received, and the subsequent normal operation is executed when no affirmative answer is received from the user. logic.
S7,晾衣架下降;S7, the drying rack descends;
具体地,在确定出目标晾衣架的情况下,根据用户语音指令确定出用户角色身高,并控制目标晾衣架下降至与用户角色身高匹配的高度,并播放提示音“晾衣架已经放下啦,小心碰头哦”。Specifically, when the target clothes drying rack is determined, the height of the user character is determined according to the user's voice command, and the target clothes drying rack is controlled to descend to a height that matches the height of the user character, and a prompt sound "The clothes drying rack has been put down, be careful meet up."
S8,执行正常逻辑。S8, execute normal logic.
可以理解的是,此处的正常逻辑即正常的洗衣程序以及烘干程序后续的逻辑程序。在本实施例中,基于redis做缓存,比如缓存在线设备信息、用户角色的身高数据等,以提升设备响应速率。It can be understood that the normal logic here is the normal washing program and the logic program subsequent to the drying program. In this embodiment, caching is performed based on redis, such as caching online device information, height data of user roles, etc., so as to improve the response rate of the device.
最后结束。Finally finished.
通过本申请的上述实施例,以接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;响应于洗涤触发指令,获取目标清洗设备所在地理位置的当前天气环境参数;根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作,从而在确定当前天气条件适合晾晒的情况下,控制晾晒设备运行,提示用户采用自然晾晒的方式实现清洗对象的干燥操作,进而避免直接在清洗设备中使用烘干模式,从而减少清洗设备的用电量,且减少清洗设备的设备损耗。Through the above-mentioned embodiment of the present application, a washing trigger instruction is received, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment; in response to the washing trigger instruction, the current weather environment parameter of the geographical location of the target washing equipment is obtained; Control the target washing equipment and/or the target drying equipment to perform drying and/or drying operations on the target object according to the current weather environment parameters and the identified type of the target object, so that when it is determined that the current weather conditions are suitable for drying, control the When the drying equipment is running, the user is reminded to use the natural drying method to realize the drying operation of the cleaning object, so as to avoid using the drying mode directly in the cleaning equipment, thereby reducing the power consumption of the cleaning equipment and reducing the equipment loss of the cleaning equipment.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. As in accordance with the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
根据本发明实施例的另一个方面,还提供了一种用于实施上述设备控制方法的设备控制装置。如图4所示,该装置包括:According to another aspect of the embodiments of the present invention, a device control apparatus for implementing the above-mentioned device control method is also provided. As shown in Figure 4, the device includes:
接收单元402,用于接收单元,用于接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;a receiving unit 402, configured to receive a washing trigger instruction, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment;
获取单元404,用于响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;The obtaining unit 404 is configured to obtain the current weather environment parameters of the geographical location where the target washing equipment is located in response to the washing trigger instruction;
控制单元406,用于根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作。The control unit 406 is configured to control the target washing equipment and/or the target drying equipment to perform drying and/or drying operations on the target object according to the current weather environment parameters and the identified type of the target object.
可选地,在本实施例中,上述各个单元模块所要实现的实施例,可以参考上述各个方法实施例,这里不再赘述。Optionally, in this embodiment, for the embodiments to be implemented by the foregoing unit modules, reference may be made to the foregoing respective method embodiments, and details are not described herein again.
根据本发明实施例的又一个方面,还提供了一种用于实施上述设备控制方法的电子装置,该电子装置可以是图5所示的终端设备或服务器。本实施例以该电子装置为终端设备为例来说明。如图5所示,该电子装置包括存储器502和处理器504,该存储器502中存储有计算机程序,该处理器504被设置为通过计算机程序执行上述任一项方法实施例中的步骤。According to yet another aspect of the embodiments of the present invention, an electronic device for implementing the above-mentioned device control method is also provided, and the electronic device may be the terminal device or the server shown in FIG. 5 . This embodiment is described by taking the electronic device as a terminal device as an example. As shown in FIG. 5 , the electronic device includes a
可选地,在本实施例中,上述电子装置可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the above-mentioned electronic apparatus may be located in at least one network device among multiple network devices of a computer network.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to execute the following steps through a computer program:
S1,接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;S1, receiving a washing trigger instruction, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment;
S2,响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;S2, in response to the washing trigger instruction, obtain the current weather environment parameters of the geographic location where the target washing equipment is located;
S3,根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作。S3, control the target washing equipment and/or the target drying equipment to perform drying and/or drying operations on the target object according to the current weather environment parameters and the identified type of the target object.
可选地,本领域普通技术人员可以理解,图5所示的结构仅为示意,电子装置也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(MobileInternetDevices,MID)、PAD等终端设备。图5其并不对上述电子装置的结构造成限定。例如,电子装置还可包括比图5中所示更多或者更少的组件(如网络接口等),或者具有与图5所示不同的配置。Optionally, those of ordinary skill in the art can understand that the structure shown in FIG. 5 is only a schematic diagram, and the electronic device can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a handheld computer, and a mobile Internet device (Mobile Internet Devices). , MID), PAD and other terminal equipment. FIG. 5 does not limit the structure of the above electronic device. For example, the electronic device may also include more or less components than those shown in FIG. 5 (eg, network interfaces, etc.), or have a different configuration than that shown in FIG. 5 .
其中,存储器502可用于存储软件程序以及模块,如本发明实施例中的设备控制方法和装置对应的程序指令/模块,处理器504通过运行存储在存储器502内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的设备控制方法。存储器502可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器502可进一步包括相对于处理器504远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。其中,存储器502具体可以但不限于用于存储虚拟角色的属性信息、设备控制信息等信息。作为一种示例,如图5所示,上述存储器502中可以但不限于包括上述设备控制装置中的接收单元402、获取单元404、以及控制单元406。此外,还可以包括但不限于上述设备控制装置中的其他模块单元,本示例中不再赘述。The
可选地,上述的传输装置506用于经由一个网络接收或者发送数据。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置506包括一个网络适配器(NetworkInterfaceController,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置506为射频(RadioFrequency,RF)模块,其用于通过无线方式与互联网进行通讯。Optionally, the above-mentioned
此外,上述电子装置还包括:显示器508,用于在显示界面设备控制操作界面;和连接总线510,用于连接上述电子装置中的各个模块部件。In addition, the above-mentioned electronic device further includes: a
在其他实施例中,上述终端设备或者服务器可以是一个分布式系统中的一个节点,其中,该分布式系统可以为区块链系统,该区块链系统可以是由该多个节点通过网络通信的形式连接形成的分布式系统。其中,节点之间可以组成点对点(P2P,PeerToPeer)网络,任意形式的计算设备,比如服务器、终端等电子装置都可以通过加入该点对点网络而成为该区块链系统中的一个节点。In other embodiments, the above-mentioned terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be communicated by the multiple nodes through a network A distributed system formed by connection in the form of. Among them, a peer-to-peer (P2P, PeerToPeer) network can be formed between nodes, and any form of computing equipment, such as servers, terminals and other electronic devices can become a node in the blockchain system by joining the peer-to-peer network.
根据本申请的一个方面,提供了一种计算机程序产品,该计算机程序产品包括计算机程序/指令,该计算机程序/指令包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分从网络上被下载和安装,和/或从可拆卸介质被安装。在该计算机程序被中央处理器执行时,执行本申请实施例提供的各种功能。According to one aspect of the present application, there is provided a computer program product comprising a computer program/instructions containing program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion, and/or installed from a removable medium. When the computer program is executed by the central processing unit, various functions provided by the embodiments of the present application are performed.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
根据本申请的一个方面,提供了一种计算机可读存储介质,计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述设备控制方方法。According to an aspect of the present application, a computer-readable storage medium is provided, a processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above-mentioned device control method method.
可选地,在本实施例中,上述计算机可读存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the following steps:
S1,接收洗涤触发指令,其中,洗涤触发指令用于指示将使用目标洗涤设备洗涤目标对象;S1, receiving a washing trigger instruction, wherein the washing trigger instruction is used to indicate that the target object will be washed with the target washing equipment;
S2,响应于洗涤触发指令,获取目标洗涤设备所在地理位置的当前天气环境参数;S2, in response to the washing trigger instruction, obtain the current weather environment parameters of the geographic location where the target washing equipment is located;
S3,根据当前天气环境参数,以及识别到目标对象的类型,控制目标洗涤设备和/或目标晾晒设备执行对目标对象的烘干和/或晾晒操作。S3, control the target washing equipment and/or the target drying equipment to perform drying and/or drying operations on the target object according to the current weather environment parameters and the identified type of the target object.
可选地,在本实施例中,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-OnlyMemory,ROM)、随机存取器(RandomAccessMemory,RAM)、磁盘或光盘等。Optionally, in this embodiment, those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a In the computer-readable storage medium, the storage medium may include: a flash disk, a read-only memory (Read-Only Memory, ROM), a random access device (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例上述方法的全部或部分步骤。If the integrated units in the above-mentioned embodiments are implemented in the form of software functional units and sold or used as independent products, they may be stored in the above-mentioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention 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, Several instructions are included to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the above-mentioned methods of various embodiments of the present invention.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed client terminal may be implemented in other manners. The device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210453731.6ACN114911170A (en) | 2022-04-27 | 2022-04-27 | Device control method, storage medium and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210453731.6ACN114911170A (en) | 2022-04-27 | 2022-04-27 | Device control method, storage medium and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN114911170Atrue CN114911170A (en) | 2022-08-16 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210453731.6APendingCN114911170A (en) | 2022-04-27 | 2022-04-27 | Device control method, storage medium and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN114911170A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115793473A (en)* | 2022-08-25 | 2023-03-14 | 广东好太太科技集团股份有限公司 | Control method of household equipment and related equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008194153A (en)* | 2007-02-09 | 2008-08-28 | Fujitsu Ltd | Clothes dry state prediction program and washing machine |
| CN112176665A (en)* | 2019-06-13 | 2021-01-05 | 青岛海尔洗衣机有限公司 | A kind of control method of clothes drying device |
| CN112386207A (en)* | 2019-08-12 | 2021-02-23 | 青岛海尔洗衣机有限公司 | Control method for shoe washing machine |
| CN112941802A (en)* | 2019-12-11 | 2021-06-11 | 合肥海尔洗衣机有限公司 | Control method of washing machine and washing machine |
| CN113802325A (en)* | 2020-06-11 | 2021-12-17 | 青岛海尔洗衣机有限公司 | Clothes airing reminding method and device in washing machine, server and storage medium |
| CN113820981A (en)* | 2021-09-15 | 2021-12-21 | 珠海格力电器股份有限公司 | Control method, system, device, equipment and storage medium of clothes hanger |
| CN113849002A (en)* | 2021-10-09 | 2021-12-28 | 珠海格力电器股份有限公司 | Clothes hanger control method, device, equipment and storage medium |
| CN113960935A (en)* | 2021-09-15 | 2022-01-21 | 珠海格力电器股份有限公司 | Control method and device of intelligent clothes hanger and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008194153A (en)* | 2007-02-09 | 2008-08-28 | Fujitsu Ltd | Clothes dry state prediction program and washing machine |
| CN112176665A (en)* | 2019-06-13 | 2021-01-05 | 青岛海尔洗衣机有限公司 | A kind of control method of clothes drying device |
| CN112386207A (en)* | 2019-08-12 | 2021-02-23 | 青岛海尔洗衣机有限公司 | Control method for shoe washing machine |
| CN112941802A (en)* | 2019-12-11 | 2021-06-11 | 合肥海尔洗衣机有限公司 | Control method of washing machine and washing machine |
| CN113802325A (en)* | 2020-06-11 | 2021-12-17 | 青岛海尔洗衣机有限公司 | Clothes airing reminding method and device in washing machine, server and storage medium |
| CN113820981A (en)* | 2021-09-15 | 2021-12-21 | 珠海格力电器股份有限公司 | Control method, system, device, equipment and storage medium of clothes hanger |
| CN113960935A (en)* | 2021-09-15 | 2022-01-21 | 珠海格力电器股份有限公司 | Control method and device of intelligent clothes hanger and storage medium |
| CN113849002A (en)* | 2021-10-09 | 2021-12-28 | 珠海格力电器股份有限公司 | Clothes hanger control method, device, equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115793473A (en)* | 2022-08-25 | 2023-03-14 | 广东好太太科技集团股份有限公司 | Control method of household equipment and related equipment |
| Publication | Publication Date | Title |
|---|---|---|
| CN110592881B (en) | Clothes washing control method and device based on Internet of Things operating system | |
| CN115167164B (en) | Device scene determination method and device, storage medium and electronic device | |
| CN115327934B (en) | Smart home scene recommendation method, system, storage medium and electronic device | |
| JP2003047796A (en) | Cleaning equipment | |
| CN115482820A (en) | Device control method and apparatus, storage medium, and electronic apparatus | |
| CN113265830B (en) | Smart washing machine washing mode push method and device and electronic device | |
| EP4079955A1 (en) | Control method for smart clothes treatment system | |
| CN114911170A (en) | Device control method, storage medium and electronic device | |
| CN114882882B (en) | A method and device for executing voice commands, household appliance and storage medium | |
| CN111442537A (en) | Bath state determination method, device, water heater and storage medium | |
| WO2023207170A1 (en) | Washing program recommendation method and apparatus, storage medium, and electronic apparatus | |
| CN114745214A (en) | Control method of intelligent clothes treatment system | |
| CN113243873A (en) | Control method of washing equipment and washing equipment | |
| KR102193055B1 (en) | Device and server of providing feedback on user's trait based on artificial intelligence | |
| CN115993784B (en) | Home appliance setting method, storage medium and electronic device | |
| CN115404685B (en) | Drying mode prompt method and device, storage medium and electronic device | |
| CN117872780A (en) | Remote linkage control method and device for smart home equipment | |
| CN115314332B (en) | Equipment theme setting method and device, storage medium and electronic device | |
| CN111676654B (en) | Control method of household appliances | |
| CN110856639A (en) | Partitioned washing method and device for dish washing machine and computer readable storage medium | |
| CN116736731A (en) | A home appliance related control method, device and storage medium | |
| CN115312049B (en) | Instruction response method, storage medium and electronic device | |
| CN113512846A (en) | Intelligent household electrical appliance control method | |
| CN114839901B (en) | Control method and device of intelligent device, storage medium and electronic device | |
| CN116092498B (en) | Voice command response method and device, storage medium and electronic device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20220816 | |
| RJ01 | Rejection of invention patent application after publication |