Control Method and Device of Intelligent Device, Storage Medium and Electronic Device
Patent Information
- Application Number
- CN202211064743.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-08-31
AI Technical Summary
[0002]在现有技术中,随着各类智能设备的发展,大多数智能设备都可以采用自动控制技术对设备中的环境进行控制,使得智能设备中的维护对象处于一个相对稳定的生存环境中,但是,现有的智能设备,由于各种复杂的关联因素,在对智能设备的环境进行控制的过程中,常常出现环境的稳定性较低,难以到达调节和控制的预期效果,不稳定的环境状态可能会对智能设备中的维护对象带来不良影响
[0013] According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium storing a computer program, where the computer program is configured to execute the control method of the intelligent device when running.
Smart Images

Figure CN115407674B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart homes, and more specifically, to a control method and device for intelligent devices, a storage medium, and an electronic device. Background Art
[0002] In the prior art, with the development of various intelligent devices, most intelligent devices can use automatic control technology to control the environment in the device, so that the maintenance object in the intelligent device is in a relatively stable living environment. However, due to various complex correlation factors in the existing intelligent devices, during the process of controlling the environment of the intelligent device, the stability of the environment is often low, and it is difficult to achieve the expected effect of adjustment and control. The unstable environmental state may have an adverse impact on the maintenance object in the intelligent device.
[0003] In view of the problems in the prior art, such as low stability of the environmental state during the control process of intelligent devices, no effective solution has been proposed yet. Summary of the Invention
[0004] The embodiments of the present application provide a control method and device for intelligent devices, a storage medium, and an electronic device, so as to at least solve the problems in the prior art, such as low stability of the environmental state during the control process of intelligent devices.
[0005] According to an embodiment of the present application, a control method for an intelligent device is provided, including:
[0006] Matching the current environmental parameters of the intelligent device to be controlled with a target parameter range, where the current environmental parameters are used to indicate the current operating environment in the intelligent device;
[0007] In the case where a first environmental parameter in the current environmental parameters does not fall within a first parameter range, adjusting the first environmental parameter to within the first parameter range, where the target parameter range includes the first parameter range;
[0008] Controlling a second environmental parameter according to the correlation relationship between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within a second parameter range during the process of adjusting the first environmental parameter, where the target parameter range includes the second parameter range.
[0009] According to another embodiment of the embodiments of the present application, a control device for an intelligent device is further provided, including:
[0010] A matching module, configured to match the current environmental parameters of the intelligent device to be controlled with a target parameter range, where the current environmental parameters are used to indicate the current operating environment in the intelligent device;
[0011] The first adjustment module is configured to adjust the first environmental parameter within the first parameter range when the first environmental parameter in the current environmental parameters does not fall within the first parameter range, where the target parameter range includes the first parameter range.
[0012] The control module is configured to control the second environmental parameter according to the correlation between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, where the target parameter range includes the second parameter range.
[0013] According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium storing a computer program, where the computer program is configured to execute the control method of the intelligent device when running.
[0014] According to another aspect of the embodiments of the present application, there is also provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the control method of the intelligent device through the computer program.
[0015] In the embodiments of the present application, the current environmental parameters to be controlled in the intelligent device are matched with their respective target parameter ranges to determine whether the current operating environment indicated by the current environmental parameters is an operating environment allowed by the intelligent device. When it is matched that the first environmental parameter in the current environmental parameters does not fall within the first parameter range corresponding to the first environmental parameter, the first environmental parameter is adjusted within the first parameter range, and during the process of adjusting the first environmental parameter, the second environmental parameter that has a correlation with the first environmental parameter in the current environmental parameters is synchronously controlled to maintain the second environmental parameter within the second parameter range corresponding to the second environmental parameter, so as to avoid affecting the environmental stability of the intelligent device due to the correlation between the first environment and the second environmental parameter during the process of adjusting the first environmental parameter. By adopting the above technical solution, the problems of low environmental state stability in the related art during the control process of the intelligent device are solved, and the technical effect of improving the environmental state stability during the control process of the intelligent device is achieved. Description of the Drawings
[0016] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application and used together with the specification to explain the principles of the present application.
[0017] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0018] Figure 1 It is a schematic diagram of the hardware environment of a control method for an intelligent device according to an embodiment of the present application;
[0019] Figure 2 It is a flowchart of a control method for an intelligent device according to an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of the device composition of an intelligent device according to an embodiment of the present application;
[0021] Figure 4 It is a schematic diagram of the APP interface of an intelligent device according to an embodiment of the present application;
[0022] Figure 5 It is a schematic diagram of the second actuator of an intelligent device according to an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of abnormal adjustment amplitude of an intelligent device according to an embodiment of the present application;
[0024] Figure 7 It is a schematic diagram of the second environmental parameter of an intelligent device according to an embodiment of the present application;
[0025] Figure 8 It is a schematic diagram of the correlation function image of an intelligent device according to an embodiment of the present application;
[0026] Figure 9 It is a schematic diagram of a control method for an intelligent fish tank device according to an embodiment of the present application;
[0027] Figure 10 It is a structural block diagram of a control device for an intelligent device according to an embodiment of the present application. Detailed implementation manners
[0028] To enable those skilled in the art to better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, 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 that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or devices.
[0030] According to one aspect of the embodiments of the present application, a control method for an intelligent device is provided. The control method for the intelligent device is widely applied to whole-house intelligent digital control application scenarios such as Smart Home, smart home, intelligent home appliance ecosystem, Intelligence House ecosystem, etc. Optionally, in this embodiment, Figure 1 is a schematic diagram of the hardware environment of a control method for an intelligent device according to an embodiment of the present application. The above control method for the intelligent device can be applied to, for example, Figure 1 the hardware environment composed of a terminal device 102 and a server 104 as shown. As Figure 1 shown, the server 104 is connected to the terminal device 102 through a network and can be used to provide services (such as application services, etc.) for the terminal or the client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data operation services for the server 104.
[0031] The above network may include, but is not limited to, at least one of the following: a wired network, a wireless network. The above wired network may include, but is not limited to, at least one of the following: a wide area network, a metropolitan area network, a local area network. The above wireless network may include, but is not limited to, at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing device, a smart dishwasher, a smart projection device, a smart TV, a smart clothes hanger, a smart curtain, a smart audio and video device, a smart socket, a smart speaker, a smart sound box, a smart fresh air device, a smart kitchen and bathroom device, a smart bathroom device, a smart floor sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification device, a smart steam box, a smart microwave oven, a smart kitchen water heater, a smart purifier, a smart water dispenser, a smart door lock, etc.
[0032] In this embodiment, a control method for a smart device is provided, which is applied to the above computer terminal. Figure 2 It is a flowchart of a control method for a smart device according to an embodiment of the present application, as Figure 2 shown. The process includes the following steps:
[0033] Step S202: Match the current environmental parameters of the smart device to be controlled with the target parameter range, where the current environmental parameters are used to indicate the current operating environment in the smart device;
[0034] Step S204: In the case where the first environmental parameter in the current environmental parameters does not fall within the first parameter range, adjust the first environmental parameter to within the first parameter range, where the target parameter range includes the first parameter range;
[0035] Step S206: Control the second environmental parameter according to the correlation between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, where the target parameter range includes the second parameter range.
[0036] Through the above steps, the current environmental parameters to be controlled in the intelligent device are matched with their respective corresponding target parameter ranges to determine whether the current operating environment indicated by the current environmental parameters is an operating environment allowed by the intelligent device. In the case where the first environmental parameter in the current environmental parameters does not fall within the first parameter range corresponding to the first environmental parameter, the first environmental parameter is adjusted to within the first parameter range. Moreover, during the process of adjusting the first environmental parameter, the second environmental parameter that has an associated relationship with the first environmental parameter in the current environmental parameters is controlled synchronously to maintain the second environmental parameter within the second parameter range corresponding to the second environmental parameter, so as to avoid affecting the environmental stability of the intelligent device due to the associated relationship between the first environment and the second environmental parameter during the process of adjusting the first environmental parameter. By adopting the above technical solution, the problems of low environmental state stability and the like in the related art during the control process of the intelligent device are solved, and the technical effect of improving the environmental state stability during the control process of the intelligent device is achieved.
[0037] In the technical solution provided in step S202 above, the intelligent device may include, but is not limited to, any device that can adjust the environmental parameters in the device space for maintenance purposes, such as: intelligent fish tanks, intelligent pet cages, intelligent insect boxes, intelligent refrigerators, intelligent storage cabinets, and so on.
[0038] Optionally, in this embodiment, the various modules in the intelligent device may be organized based on the Internet of Things, but are not limited to this. Figure 3 It is a schematic diagram of the device composition of an intelligent device according to an embodiment of the present application. As Figure 3 shown, the intelligent device may include, but is not limited to, an APP (Application), IOT (Internet of Things), display module, IoT module, power module, centralized control system, sensors, and actuators. Among them, the sensors may include, but are not limited to, devices for detecting environmental parameters in the intelligent device, such as: temperature detection modules and oxygen content detection modules, etc.; the actuators may include, but are not limited to, devices for adjusting environmental parameters in the intelligent device, such as: feeders and water change pumps, etc.
[0039] Optionally, in this embodiment, the current environmental parameters may include, but are not limited to, the current parameter values of the relevant environment in the intelligent device. For example, the oxygen content parameter is used to indicate the oxygen concentration in the intelligent device, the temperature parameter is used to indicate the temperature in the intelligent device, and the humidity parameter is used to indicate the air humidity in the intelligent device, and so on.
[0040] Optionally, in this embodiment, the target parameter range is used to indicate the operating environment allowed for the intelligent device. Taking an intelligent fish tank as an example, when it is detected that there is a certain type of tropical fish in the intelligent fish tank, the corresponding target parameter range refers to the environmental parameters that allow the tropical fish to survive. For example, the target parameter range can refer to a water temperature of 25°C to 27°C and an oxygen content of 7 mg / L to 10 mg / L, etc.
[0041] In an exemplary embodiment, before matching the current environmental parameters of the intelligent device to be controlled with the target parameter range, it is possible but not limited to detecting the maintenance information corresponding to the maintenance object in the intelligent device, where the maintenance information includes the object type, object quantity, and object size of the maintenance object, and the intelligent device is used to maintain the environment where the maintenance object is located; generating an initial parameter range that matches the maintenance information; and determining the target parameter range according to the editing operation performed by the target user on the initial parameter range.
[0042] Optionally, in this embodiment, the maintenance object can be but is not limited to an object that matches the intelligent device. For example, the maintenance objects corresponding to an intelligent fish tank can be but are not limited to aquatic animals such as fish, shrimps, and waterweeds; the maintenance objects corresponding to an insect box can be but are not limited to insects such as earthworms, snails, and spiders; the maintenance objects corresponding to an intelligent refrigerator can be but are not limited to foods such as snacks, beverages, and meals; and the maintenance objects corresponding to an intelligent locker can be but are not limited to stored items such as fresh produce, fruits, clothing, and documents.
[0043] Optionally, in this embodiment, the maintenance information can be but is not limited to including the object type, maintenance quantity, and object size of the maintenance object. Taking the intelligent fish tank in the intelligent device as an example, the maintenance information corresponding to the intelligent fish tank can be but is not limited to including the types of fish in the intelligent fish tank. For example, black carp, grass carp, sardines, etc., and the corresponding maintenance quantity and size. For example, the black carp includes large fish (2 pieces) and small fish (4 pieces); the sardines include large fish (3 pieces) and small fish (0 pieces), etc.
[0044] Optionally, in this embodiment, in addition to the intelligent device automatically detecting the maintenance information corresponding to the maintenance object in the intelligent device, the maintenance object and maintenance information can also be input by the user using the APP. Figure 4 is a schematic diagram of the APP interface of an intelligent device according to an embodiment of the present application. As Figure 4 shown, it is possible to add (delete, select all) the types of maintenance objects through the APP interface and input the corresponding physical size and quantity. For example, input 2 black carp (15 cm to 20 cm) and 3 black carp (5 cm to 15 cm); input 6 sardines (5 cm to 8 cm) and 7 black carp (8 cm to 12 cm).
[0045] Optionally, in this embodiment, generating the initial parameter range that matches the maintenance information may, but is not limited to, retrieving the pre-stored initial parameter range in the database according to the maintenance object and the maintenance information. For example, it is detected that there are 6 A fish (5 cm to 8 cm), 7 A fish (8 cm to 12 cm), 2 B fish (15 cm to 20 cm), and 3 B fish (5 cm to 15 cm). The information pre-stored in the database is that the suitable survival temperature for A fish is 18°C to 25°C, and the suitable survival temperature for B fish is 20°C to 30°C. Then the initial parameter range of temperature can take the intersection of A fish and B fish: 20°C to 25°C.
[0046] Optionally, in this embodiment, determining the target parameter range according to the editing operation performed by the target user on the initial parameter range may, but is not limited to, prompting the user to decide by themselves when there is no intersection in the initial parameter ranges of the maintenance objects. For example, the information pre-stored in the database is that the suitable survival temperature for C fish is 18°C to 25°C, and the suitable survival temperature for D fish is 8°C to 10°C. Then it is prompted that there is a contradiction in the parameters and the user is asked to choose and edit by themselves.
[0047] By adopting the above steps, the intelligent device can pre-obtain the target parameter range of the operating environment that indicates the intelligent device is allowed to operate according to the maintenance information in the device, and match the target parameter range with the current environment parameters of the intelligent device, so as to achieve the purpose of detecting whether the current environment parameters meet the operating environment of the intelligent device.
[0048] In the technical solution provided in step S204 above, the first environmental parameter in the current environmental parameters does not fall within the first parameter range corresponding to the first environmental parameter, which may, but is not limited to, the following situation: It is known that the temperature parameter range of the intelligent device is 20°C to 25°C, and the temperature parameter in the current environmental parameters in the intelligent device is 18°C, which does not fall within 20°C to 25°C. Then it is determined that the first environmental parameter (temperature parameter) in the intelligent device does not fall within the first parameter range (temperature parameter range) corresponding to the first environmental parameter.
[0049] In an exemplary embodiment, the first environmental parameter may be adjusted to within the first parameter range by, but not limited to, the following method: determining the first actuator corresponding to the first environmental parameter from one or more actuators included in the intelligent device; controlling the first actuator to adjust the first environmental parameter until the first environmental parameter falls within the first parameter range.
[0050] Optionally, in this embodiment, one or more actuators may, but are not limited to, adjusting the environmental parameters of the intelligent device. For example, an air pump, a temperature control device, a feeder, etc. Among them, the air pump can adjust the oxygen content of the intelligent device, and the temperature control device can adjust the temperature of the intelligent device, etc.
[0051] Optionally, in this embodiment, adjusting the first environmental parameter to within the first parameter range may, but is not limited to, controlling a corresponding actuator to adjust the first environmental parameter. For example, if the first environmental parameter (temperature parameter 18°C) does not fall within the first parameter range (temperature parameter range 20°C to 25°C) corresponding to the first environmental parameter, the heating device may be controlled to raise the temperature parameter to (temperature parameter range 20°C to 25°C).
[0052] In an exemplary embodiment, the second environmental parameter may be controlled, but is not limited to, in the following manner according to the association relationship between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter: determining a second actuator corresponding to the second environmental parameter from the one or more actuators; during the process of controlling the first actuator to adjust the first environmental parameter, simultaneously controlling the second actuator to adjust the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range until the first environmental parameter falls within the first parameter range.
[0053] Optionally, in this embodiment, determining a second actuator corresponding to the second environmental parameter from the one or more actuators Figure 5 is a schematic diagram of a second actuator of an intelligent device according to an embodiment of the present application, as Figure 5 shown. For example, it is detected that the oxygen content in the intelligent fish tank is low, and the user needs to control the air pump to inject more air to increase the oxygen content in the water. At this time, the difference in temperature between the air (18°C) and the water temperature (30°C) causes the water temperature to change according to the controlled temperature due to the increased inflation. Then, the second environmental parameter may be the temperature parameter, and the second actuator may be a temperature control device for adjusting the temperature.
[0054] Optionally, in this embodiment, during the process of controlling the first actuator to adjust the first environmental parameter, simultaneously controlling the second actuator to maintain the second environmental parameter within the second parameter range. Taking the above scenario as an example, it is detected that the oxygen content in the intelligent fish tank is low, and the user needs to control the air pump to inject more air to increase the oxygen content in the water, and simultaneously control the second actuator (temperature control device) to maintain the second environmental parameter (temperature parameter) within the second parameter range.
[0055] In an exemplary embodiment, after controlling the first actuator to adjust the first environmental parameter until the first environmental parameter falls within the first parameter range, it is possible but not limited to continuously detect the relationship between the first environmental parameter and the first parameter range; in the case where it is detected that the first environmental parameter does not fall within the first parameter range again, obtain the time interval between the current moment and the adjustment moment when the first environmental parameter was last adjusted, and the target parameter value by which the first environmental parameter changes within the time interval; update the adjustment amplitude of the first actuator to the target adjustment amplitude according to the target parameter value and the time interval, where the target adjustment amplitude is used to stabilize the first environmental parameter within the first parameter range.
[0056] Optionally, in this embodiment, the case where it is detected that the first environmental parameter does not fall within the first parameter range again may be but not limited to that after the first environmental parameter is adjusted to fall within the first parameter range, it is detected again that the first environmental parameter does not fall within the first parameter range, that is to say, the adjustment amplitude corresponding to the first environmental parameter does not match. Figure 6 It is a schematic diagram of abnormal adjustment amplitude of an intelligent device according to an embodiment of the present application, as Figure 6 shown. Taking the environmental parameter of oxygen content as an example, after the air pump maintains a certain inflation speed for a period of time, the oxygen content in the water continuously decreases to reach the lowest point of the range. After triggering the automatic adjustment function, it returns to the normal value. If this process occurs repeatedly, the IOT can judge according to the oxygen content reported by the intelligent fish tank and the abnormal information that the current set inflation speed of the air pump cannot meet the oxygen consumption of the intelligent fish tank, and calculate the additional inflation volume required according to the oxygen content decrease speed, and send it to the intelligent fish tank for execution.
[0057] Optionally, in this embodiment, the adjustment amplitude may be but not limited to the adjustment amplitude of the actuator for the intelligent device. For example, taking the air pump in the intelligent fish tank as an example: calculate the resource consumption speed according to the types, quantities and sizes of all the fish in the intelligent fish tank. For example, taking the oxygen consumption as an example: 10 milligrams per minute. It is calculated that the air pump used in the intelligent fish tank needs to reach an inflation speed of 1 cubic meter per minute to meet the oxygen consumption of 10 milligrams per minute, that is, an inflation speed of 1 cubic meter per minute is the adjustment amplitude.
[0058] By adopting the above steps, the intelligent device can, in the case where the first environmental parameter does not fall within the first parameter range, call the corresponding actuator to adjust the first environmental parameter back to the first parameter range, and if, after the adjustment, the first environmental parameter still periodically falls out of the first parameter range, it can be judged that the adjustment strength of the first actuator for the first environmental parameter does not match the first environmental parameter, and further adjust the adjustment amplitude of the first actuator to the target amplitude so that the adjustment amplitude of the first actuator matches the first environmental parameter.
[0059] In the technical solution provided in step S206 above, the second environmental parameter may, but is not limited to, include one or more. Figure 7 It is a schematic diagram of the second environmental parameter of an intelligent device according to an embodiment of the present application. As Figure 7 shown, for example, in the process of adjusting parameter A, it may, but is not limited to, affect parameters B and C. That is, there is an association relationship between parameters B and C and parameter A. Then both parameters B and C can be used as the second environmental parameter, where the association relationship can be described by a functional relationship.
[0060] Optionally, in this embodiment, the current state of the second environmental parameter may be that it has fallen within the second parameter range. That is to say, to avoid the adjustment of the first environmental parameter affecting the second environmental parameter, the second environmental parameter needs to be adjusted so that the second environmental parameter is maintained within the second parameter range corresponding to the second environmental parameter.
[0061] In an exemplary embodiment, the second environmental parameter may be controlled according to the association relationship between the first environmental parameter and the second environmental parameter in the following ways, but is not limited to these ways, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter: obtaining the associated environmental parameter corresponding to the first environmental parameter as the second environmental parameter from the environmental parameter and the associated environmental parameter with a corresponding relationship; predicting the expected change data corresponding to the second environmental parameter according to the association relationship between the first environmental parameter and the second environmental parameter, where the expected change data is used to indicate the expected change direction and the expected change amount of the second environmental parameter during the process of adjusting the first environmental parameter to the first parameter range; during the process of adjusting the first environmental parameter, controlling the intelligent device to perform a parameter adjustment operation corresponding to the expected change data on the second environmental parameter, where the parameter adjustment operation is used to adjust the second environmental parameter in the opposite direction of the expected change direction by the expected change amount.
[0062] Optionally, in this embodiment, the expected change parameter may, but is not limited to, be a vector. Taking an intelligent fish tank as an example, when 50L of air is inflated into the intelligent fish tank, the expected change parameter of the corresponding temperature may be +10°C, that is, the temperature rises by 10°C.
[0063] Optionally, in this embodiment, the expected change direction may, but is not limited to, indicate the direction of parameter change, such as: rising ~ falling; increasing ~ decreasing, etc.
[0064] Optionally, in this embodiment, the expected change amount may, but is not limited to, be a scalar. For example, in the expected change parameter of +10°C, 10 is the expected change amount, that is to say, the temperature parameter is expected to change by 10°C.
[0065] Optionally, in this embodiment, the intelligent device is controlled to perform a parameter adjustment operation corresponding to the expected change parameter on the second environmental parameter. For example: the expected change parameter is +10°C, that is to say, the temperature rises by 10°C, then the corresponding parameter adjustment operation may, but is not limited to, be to cool down by 10°C.
[0066] In an exemplary embodiment, the expected change data corresponding to the second environmental parameter may be predicted according to the association relationship between the first environmental parameter and the second environmental parameter in the following ways, but is not limited thereto: obtaining the functional relationship between the change data of the first environmental parameter and the change data of the second environmental parameter, and determining the target change data corresponding to the first environmental parameter, where the target change data is used to indicate the pending change direction and pending change amount for adjusting the first environmental parameter to within the first parameter range, and the association relationship between the first environmental parameter and the second environmental parameter includes the functional relationship; inputting the target change data into the functional relationship to obtain the expected change data.
[0067] Optionally, in this embodiment, the target change parameter may, but is not limited to, refer to the adjustment direction and adjustment amount required to adjust the first environmental parameter to the first parameter range. For example: the first environmental parameter is 10°C, and the corresponding first parameter range is from 15°C to 20°C, then the corresponding target change parameter may be from +5°C to +10°C, that is to say, rising by 5°C to 10°C can adjust the first environmental parameter (10°C) to the first parameter range (15°C to 20°C).
[0068] Optionally, in this embodiment, the functional relationship may, but is not limited to, describe the linear relationship between the change parameter of the first environmental parameter and the change parameter of the second environmental parameter. Figure 8 It is a schematic diagram of the association function image of an intelligent device according to an embodiment of the present application. As Figure 8 shown, it is the function image corresponding to the association relationship between the change parameter A of the first environmental parameter and the change parameter B of the second environmental parameter. When A changes from a1 to a2, it can be predicted through the function image that B associated with A will correspondingly change from b1 to b2.
[0069] By adopting the above steps, during the process of the intelligent device adjusting the first environmental parameter, at the same time, the second environmental parameter is adjusted so that the second environmental parameter is maintained within the second parameter range corresponding to the second environmental parameter, avoiding affecting or even causing abnormalities to the second environmental parameter during the process of adjusting the first environmental parameter.
[0070] To better understand the process of controlling the above-mentioned intelligent device, the following will further illustrate the control process of the above-mentioned intelligent device in combination with optional embodiments, but it is not used to limit the technical solutions of the embodiments of the present application.
[0071] In this embodiment, a control method for an intelligent device is provided. Taking an intelligent fish tank in the intelligent device as an example, Figure 9 is a schematic diagram of a control method for an intelligent fish tank device according to an embodiment of the present application, as Figure 9 shown, including the following steps:
[0072] Step S901: Input fish information: The user can edit and save the information of the fish raised in the intelligent fish tank in the APP, including the type, quantity, and size of the fish, etc.;
[0073] Step S902: Calculate the intelligent fish tank device parameters: When the user saves the fish information, the APP uploads the modified information to the IOT, and the IOT calculates the intelligent fish tank device parameters required to maintain this situation based on this information and sends them to the intelligent fish tank;
[0074] Step S903: Execute the instruction: After receiving the instruction, the centralized control system in the intelligent fish tank saves the device parameters and controls each device to execute according to these parameters;
[0075] Step S904: Abnormal parameter adjustment: When the intelligent fish tank restores abnormal environmental parameters, it can calculate and process in advance considering the impact on other environmental parameters according to the actuator to be controlled, and execute synchronously, avoiding the problem of abnormal other parameters caused by single control of a certain parameter;
[0076] Step S905: Automatic adjustment of the adjustment range: The IOT side automatically calculates whether the current device parameters can meet the requirements according to the environmental parameter changes and abnormal information and makes timely adjustments to ensure the stability of the environmental parameters of the intelligent fish tank.
[0077] By adopting the above steps, on the one hand, when the parameters of the intelligent fish tank are abnormal, it can make corresponding adjustments in a timely manner through the centralized control system of the intelligent fish tank locally, and ensure that no other abnormalities will be caused during the adjustment process. On the other hand, through the user's setting of the fish information in the intelligent fish tank, the parameters of various devices of the intelligent fish tank can be adjusted in a timely manner, and the device parameters can be synchronously adjusted while modifying the fish information, avoiding the change of environmental parameters caused by the change of the fish raised. Finally, using the historical environmental parameters of the intelligent fish tank saved in the IOT system, it is judged whether the current state of the device can maintain the stability of the environmental parameters according to the change law of the environmental parameters and make timely adjustments. The above three points provide a strong guarantee for the stability of the environmental parameters of the intelligent fish tank.
[0078] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.
[0079] Figure 10 is a structural block diagram of a control device for an intelligent device according to an embodiment of the present application; as Figure 10 shown, it includes:
[0080] A matching module 1002, configured to match the current environmental parameters of the intelligent device to be controlled with a target parameter range, where the current environmental parameters are used to indicate the current operating environment in the intelligent device;
[0081] A first adjustment module 1004, configured to adjust the first environmental parameter to within the first parameter range when the first environmental parameter in the current environmental parameters does not fall within the first parameter range, where the target parameter range includes the first parameter range;
[0082] A control module 1006, configured to control the second environmental parameter according to the correlation between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, where the target parameter range includes the second parameter range.
[0083] Through the above embodiments, the current environmental parameters to be controlled in the intelligent device are matched with their respective corresponding target parameter ranges to determine whether the current operating environment indicated by the current environmental parameters is an operating environment allowed by the intelligent device. In the case where the first environmental parameter among the current environmental parameters does not fall within the first parameter range corresponding to the first environmental parameter, the first environmental parameter is adjusted to within the first parameter range. Moreover, during the process of adjusting the first environmental parameter, the second environmental parameter that has an associated relationship with the first environmental parameter among the current environmental parameters is synchronously controlled to maintain the second environmental parameter within the second parameter range corresponding to the second environmental parameter, so as to avoid affecting the environmental stability of the intelligent device due to the associated relationship between the first environment and the second environmental parameter during the process of adjusting the first environmental parameter. By adopting the above technical solution, the problems of low environmental state stability in the related art during the control process of the intelligent device are solved, and the technical effect of improving the environmental state stability during the control process of the intelligent device is achieved.
[0084] In an exemplary embodiment, the control module includes:
[0085] An acquisition unit, configured to acquire the associated environmental parameter corresponding to the first environmental parameter as the second environmental parameter from the environmental parameters with a corresponding relationship and the associated environmental parameters;
[0086] A prediction unit, configured to predict the predicted change data corresponding to the second environmental parameter according to the associated relationship between the first environmental parameter and the second environmental parameter, where the predicted change data is used to indicate the predicted change direction and the predicted change amount of the second environmental parameter during the process of adjusting the first environmental parameter to the first parameter range;
[0087] A control unit, configured to control the intelligent device to perform a parameter adjustment operation corresponding to the predicted change data on the second environmental parameter during the process of adjusting the first environmental parameter, where the parameter adjustment operation is used to adjust the second environmental parameter in the opposite direction of the predicted change direction by the predicted change amount.
[0088] In an exemplary embodiment, the prediction unit is configured to: acquire the functional relationship between the change data of the first environmental parameter and the change data of the second environmental parameter, and determine the target change data corresponding to the first environmental parameter, where the target change data is used to indicate the to-be-changed direction and the to-be-changed amount of adjusting the first environmental parameter to within the first parameter range, and the associated relationship between the first environmental parameter and the second environmental parameter includes the functional relationship; input the target change data into the functional relationship to obtain the predicted change data.
[0089] In an exemplary embodiment, the adjustment module includes:
[0090] A determination unit configured to determine a first actuator corresponding to the first environmental parameter from one or more actuators included in the smart device;
[0091] An adjustment unit configured to control the first actuator to adjust the first environmental parameter until the first environmental parameter falls within the first parameter range.
[0092] In an exemplary embodiment, the adjustment unit is configured to: determine a second actuator corresponding to the second environmental parameter from the one or more actuators; and during the process of controlling the first actuator to adjust the first environmental parameter, simultaneously control the second actuator to adjust the second environmental parameter so that the second environmental parameter is maintained within a second parameter range until the first environmental parameter falls within the first parameter range.
[0093] In an exemplary embodiment, the device further includes:
[0094] A first detection module configured to continuously detect the relationship between the first environmental parameter and the first parameter range after controlling the first actuator to adjust the first environmental parameter until the first environmental parameter falls within the first parameter range;
[0095] An acquisition module configured to, when it is detected that the first environmental parameter does not fall within the first parameter range again, acquire a time interval between the current moment and the adjustment moment when the first environmental parameter was last adjusted, and a target parameter value by which the first environmental parameter has changed during the time interval;
[0096] A second adjustment module configured to update an adjustment amplitude of the first actuator to a target adjustment amplitude according to the target parameter value and the time interval, where the target adjustment amplitude is used to stabilize the first environmental parameter within the first parameter range.
[0097] In an exemplary embodiment, the device further includes:
[0098] A second detection module configured to detect maintenance information corresponding to a maintenance object in the smart device before matching a current environmental parameter of the smart device to be controlled with a target parameter range, where the maintenance information includes an object type, an object quantity, and an object size of the maintenance object, and the smart device is used to maintain an environment where the maintenance object is located;
[0099] A generation module configured to generate an initial parameter range matching the maintenance information;
[0100] A determination module, configured to determine the target parameter range according to an editing operation performed by a target user on the initial parameter range.
[0101] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the above program, when running, executes the method of any one of the above.
[0102] Optionally, in this embodiment, the above storage medium may be set to store program code for performing the following steps:
[0103] S1, matching the current environment parameters of the intelligent device to be controlled with the target parameter range, wherein the current environment parameters are used to indicate the current operating environment in the intelligent device;
[0104] S2, when a first environment parameter in the current environment parameters does not fall within a first parameter range, adjusting the first environment parameter to within the first parameter range, wherein the target parameter range includes the first parameter range;
[0105] S3, controlling the second environment parameter according to the association relationship between the first environment parameter and the second environment parameter, so that the second environment parameter is maintained within a second parameter range during the process of adjusting the first environment parameter, wherein the target parameter range includes the second parameter range.
[0106] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0107] Optionally, the above electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0108] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0109] S1, matching the current environment parameters of the intelligent device to be controlled with the target parameter range, wherein the current environment parameters are used to indicate the current operating environment in the intelligent device;
[0110] S2, when a first environment parameter in the current environment parameters does not fall within a first parameter range, adjusting the first environment parameter to within the first parameter range, wherein the target parameter range includes the first parameter range;
[0111] S3. According to the correlation relationship between the first environmental parameter and the second environmental parameter, control the second environmental parameter so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, where the target parameter range includes the second parameter range.
[0112] Optionally, in this embodiment, the above storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM), random access memories (RAM), mobile hard disks, magnetic disks, or optical discs that can store program codes.
[0113] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated herein.
[0114] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by the computing device, so that they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order from here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present application is not limited to any specific combination of hardware and software.
[0115] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A control method for an intelligent device, characterized in that, Including: Matching the current environmental parameters of the intelligent device to be controlled with the target parameter range, where the current environmental parameters are used to indicate the current operating environment in the intelligent device; In the case where the first environmental parameter among the current environmental parameters does not fall within the first parameter range, adjusting the first environmental parameter to within the first parameter range, where the target parameter range includes the first parameter range; Controlling the second environmental parameter according to the correlation relationship between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, where the target parameter range includes the second parameter range; Wherein, the controlling the second environmental parameter according to the correlation relationship between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, includes: Obtaining the associated environmental parameter corresponding to the first environmental parameter from the environmental parameters with corresponding relationships as the second environmental parameter; Predicting the predicted change data corresponding to the second environmental parameter according to the correlation relationship between the first environmental parameter and the second environmental parameter, where the predicted change data is used to indicate the predicted change direction and predicted change amount of the second environmental parameter during the process of adjusting the first environmental parameter to the first parameter range; During the process of adjusting the first environmental parameter, controlling the intelligent device to perform a parameter adjustment operation corresponding to the predicted change data on the second environmental parameter, where the parameter adjustment operation is used to adjust the second environmental parameter in the opposite direction of the predicted change direction by the predicted change amount.
2. The method according to claim 1, wherein The predicting the predicted change data corresponding to the second environmental parameter according to the correlation relationship between the first environmental parameter and the second environmental parameter, includes: Obtaining the functional relationship between the change data of the first environmental parameter and the change data of the second environmental parameter, and determining the target change data corresponding to the first environmental parameter, where the target change data is used to indicate the pending change direction and pending change amount for adjusting the first environmental parameter to the first parameter range, and the correlation relationship between the first environmental parameter and the second environmental parameter includes the functional relationship; Inputting the target change data into the functional relationship to obtain the predicted change data.
3. The method according to claim 1, characterized in that, The adjusting the first environmental parameter to within the first parameter range, includes: Determining the first actuator corresponding to the first environmental parameter from one or more actuators included in the intelligent device; Controlling the first actuator to adjust the first environmental parameter until the first environmental parameter falls within the first parameter range.
4. The method according to claim 3, wherein The controlling the second environmental parameter according to the correlation relationship between the first environmental parameter and the second environmental parameter, so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, includes: Determine the second actuator corresponding to the second environmental parameter from the one or more actuators; during the process of controlling the first actuator to adjust the first environmental parameter, simultaneously control the second actuator to adjust the second environmental parameter so that the second environmental parameter is maintained within the second parameter range until the first environmental parameter falls within the first parameter range.
5. The method according to claim 3, characterized in that, After controlling the first actuator to adjust the first environmental parameter until the first environmental parameter falls within the first parameter range, the method further includes: Continuously detect the relationship between the first environmental parameter and the first parameter range; In the case where it is detected that the first environmental parameter does not fall within the first parameter range again, obtain the time interval between the current moment and the adjustment moment when the first environmental parameter was last adjusted, and the target parameter value by which the first environmental parameter changes within the time interval; Update the adjustment amplitude of the first actuator to the target adjustment amplitude according to the target parameter value and the time interval, where the target adjustment amplitude is used to stabilize the first environmental parameter within the first parameter range.
6. The method according to any one of claims 1-5, characterized in that, Before matching the current environmental parameter of the intelligent device to be controlled with the target parameter range, the method further includes: Detect the maintenance information corresponding to the maintenance object in the intelligent device, where the maintenance information includes the object type, object quantity, and object size of the maintenance object, and the intelligent device is used to maintain the environment where the maintenance object is located; Generate an initial parameter range matching the maintenance information; Determine the target parameter range according to the editing operation performed by the target user on the initial parameter range.
7. A control device for an intelligent device, characterized in that, Includes: A matching module for matching the current environmental parameter of the intelligent device to be controlled with the target parameter range, where the current environmental parameter is used to indicate the current operating environment in the intelligent device; A first adjustment module for adjusting the first environmental parameter to within the first parameter range in the case where the first environmental parameter in the current environmental parameter does not fall within the first parameter range, where the target parameter range includes the first parameter range; A control module for controlling the second environmental parameter according to the association relationship between the first environmental parameter and the second environmental parameter so that the second environmental parameter is maintained within the second parameter range during the process of adjusting the first environmental parameter, where the target parameter range includes the second parameter range; Among them, the control module includes: an acquisition unit, configured to acquire the associated environmental parameter corresponding to the first environmental parameter from the environmental parameters and the associated environmental parameters with a corresponding relationship as the second environmental parameter; a prediction unit, configured to predict the predicted change data corresponding to the second environmental parameter according to the association relationship between the first environmental parameter and the second environmental parameter, wherein the predicted change data is used to indicate the predicted change direction and the predicted change amount of the second environmental parameter during the process of adjusting the first environmental parameter to the first parameter range; a control unit, configured to control the intelligent device to perform a parameter adjustment operation corresponding to the predicted change data on the second environmental parameter during the process of adjusting the first environmental parameter, wherein the parameter adjustment operation is used to adjust the second environmental parameter in the opposite direction of the predicted change direction by the predicted change amount.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when running, executes the method according to any one of claims 1 to 6.
9. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 6 through the computer program.
Citation Information
Patent Citations
Intelligent fish tank cloud hosting system and water quality adjustment method
CN107211938A