[go: up one dir, main page]

CN113050514A - Equipment control method and device, electronic equipment and storage medium - Google Patents

Equipment control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113050514A
CN113050514A CN202110335646.5A CN202110335646A CN113050514A CN 113050514 A CN113050514 A CN 113050514A CN 202110335646 A CN202110335646 A CN 202110335646A CN 113050514 A CN113050514 A CN 113050514A
Authority
CN
China
Prior art keywords
water
water quality
determining
target
water outlet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110335646.5A
Other languages
Chinese (zh)
Other versions
CN113050514B (en
Inventor
黄彦植
宋德超
张军
黎尧飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202110335646.5A priority Critical patent/CN113050514B/en
Publication of CN113050514A publication Critical patent/CN113050514A/en
Application granted granted Critical
Publication of CN113050514B publication Critical patent/CN113050514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a device control method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: detecting the water quality of water resource flowing from the water inlet to obtain water quality data; determining the water quality grade corresponding to the water resource according to the water quality data; determining a corresponding target water outlet and a control strategy based on the water quality level; and controlling the target water outlet according to the control strategy. According to the embodiment of the invention, the water quality grades are divided for the water resources, so that the water resources with different water quality grades can be distributed to different target water outlets, and further, a user can obtain the water resources with different purposes from different water outlets, so that the water resources with different water quality grades can be distributed according to the purposes of the water resources, the user can use the water resources with different water quality grades meeting the use requirements, the water resources with different purposes are prevented from being processed by using the same standard, and the cost for processing the water resources can be saved.

Description

Equipment control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of intelligent home appliance technologies, and in particular, to a device control method and apparatus, an electronic device, and a storage medium.
Background
Water is an important resource on which people live. However, with the social development and the over-exploitation of resources, water resources on the earth are gradually deficient, and the drinking water resources of people become more and more precious. The recycling of water resources has to be regarded as important.
At present, water used in life of people is water with optimal water quality, but the water in life has different purposes and corresponding requirements on water quality can be different, such as: the water for irrigating flowers and plants does not need to be purified; the water is used for cleaning human bodies and flushing toilets, and impurities and hardness in the water need to be removed; the drinking water needs deep purification, but all the water treatment is carried out according to the same standard at present, which causes resource waste.
Disclosure of Invention
In order to solve the technical problem that the resource waste is caused because all the water treatment is carried out according to the same standard at present, the application provides an equipment control method, an equipment control device, electronic equipment and a storage medium.
In a first aspect, the present application provides a device control method, including:
detecting the water quality of water resource flowing from the water inlet to obtain water quality data;
determining the water quality grade corresponding to the water resource according to the water quality data;
determining a corresponding target water outlet and a control strategy based on the water quality level;
and controlling the target water outlet according to the control strategy.
Optionally, determining the water quality level corresponding to the water resource according to the water quality data includes:
determining a water quality data range in which the water quality data are located in a corresponding relation between a preset water quality data range and a water quality grade;
and determining the water quality level corresponding to the water quality data range as the water quality level corresponding to the water resource.
Optionally, the determining a corresponding target water outlet and control strategy based on the water quality level includes:
determining whether the water quality level is a usable level;
if the water quality level is an available level, determining a target water outlet corresponding to the water quality level according to a preset corresponding relation between the water quality level and the target water outlet;
and determining the control strategy as opening the target water outlet.
Optionally, the determining a corresponding target water outlet and control strategy based on the water quality level includes:
if the water quality level is an unavailable level, determining that each water outlet of the equipment is a first target water outlet, and determining that the control strategy is to close the first target water outlet;
and determining the water outlet of the equipment as a second target water outlet, and determining the control strategy as opening the second target water outlet.
Optionally, the controlling the target water outlet according to the control strategy includes:
if the control strategy is to open the target water outlet, controlling a valve corresponding to the target water outlet to be opened;
or if the control strategy is to close the target water outlet, controlling a valve corresponding to the target water outlet to be closed.
Optionally, a corresponding target water outlet and control strategy are determined based on the water quality level, and the method includes:
if the water quality level is an available level, acquiring the determination time of the water quality level;
determining the water quality change condition of the water resource which flows into the water inlet successively according to the water quality levels corresponding to any two adjacent determination moments;
if the water quality of the water resource which flows into the water inlet successively is changed from excellent to poor, determining a target water outlet corresponding to the water quality grade according to the corresponding relation between the preset water quality grade and the target water outlet; and determining the control strategy as opening the target water outlet.
Optionally, a corresponding target water outlet and control strategy are determined based on the water quality level, and the method further includes:
if the water quality of the water resource which flows into the water inlet successively becomes better from difference, determining that the water outlet of the equipment is a target water outlet, and determining that the control strategy is to open the target water outlet until the corresponding water quality levels of any two adjacent determination moments are the same;
determining a target water outlet corresponding to the water quality grade according to the corresponding relation between the preset water quality grade and the target water outlet; and determining the control strategy as opening the target water outlet.
In a second aspect, the present application provides an apparatus for controlling a device, the apparatus comprising:
the detection module is used for detecting the water quality of the water resource flowing from the water inlet to obtain water quality data;
the first determining module is used for determining the water quality level corresponding to the water resource according to the water quality data;
the second determination module is used for determining a corresponding target water outlet and a control strategy based on the water quality level;
and the control module is used for controlling the target water outlet according to the control strategy.
Optionally, the first determining module includes:
the first determining unit is used for determining a water quality data range in which the water quality data are positioned in a corresponding relation between a preset water quality data range and a water quality level;
and the second determining unit is used for determining the water quality level corresponding to the water quality data range as the water quality level corresponding to the water resource.
Optionally, the second determining module includes:
a third determination unit for determining whether the water quality level is an available level;
a fourth determining unit, configured to determine, if the water quality level is an available level, a target water outlet corresponding to the water quality level according to a preset correspondence between the water quality level and the target water outlet;
and the fifth determining unit is used for determining that the control strategy is to open the target water outlet.
Optionally, the measurement determining module further includes:
a sixth determining unit, configured to determine that each water outlet of the device is a first target water outlet if the water quality level is an unavailable level, and determine that the control policy is to close the first target water outlet;
and the seventh determining unit is used for determining that the water outlet of the equipment is a second target water outlet and determining that the control strategy is to open the second target water outlet.
Optionally, the control module is further configured to:
if the control strategy is to open the target water outlet, controlling a valve corresponding to the target water outlet to be opened;
or if the control strategy is to close the target water outlet, controlling a valve corresponding to the target water outlet to be closed.
Optionally, the second determining module includes:
the acquisition unit is used for acquiring the determination time of the water quality grade if the water quality grade is an available grade;
the water quality change determining unit is used for determining the water quality change condition of the water resource which flows into the water inlet successively according to the water quality levels corresponding to any two adjacent determining moments;
an eighth determining unit, configured to determine, if the quality of the water resource sequentially flowing from the water inlet is changed from good to bad, a target water outlet corresponding to the water quality level according to a corresponding relationship between a preset water quality level and the target water outlet; and determining the control strategy as opening the target water outlet.
Optionally, the second determining module further includes:
a ninth determining unit, configured to determine that the drain port of the device is a target water outlet if the water quality of the water resource sequentially flowing from the water inlet is changed from poor to good, and determine that the control policy is to open the target water outlet until the water quality levels corresponding to any two adjacent determining moments are the same;
a tenth determining unit, configured to determine, according to a correspondence between a preset water quality level and a target water outlet, a target water outlet corresponding to the water quality level; and determining the control strategy as opening the target water outlet.
In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor configured to implement the apparatus control method according to any one of the first aspect when executing a program stored in the memory.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon a program of an apparatus control method, which when executed by a processor, implements the steps of the apparatus control method of any one of the first aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
according to the embodiment of the invention, the water quality grades are divided for the water resources, so that the water resources with different water quality grades can be distributed to different target water outlets, and further, a user can obtain the water resources with different purposes from different water outlets, so that the water resources with different water quality grades can be distributed according to the purposes of the water resources, the user can use the water resources with different water quality grades meeting the use requirements, the water resources with different purposes are prevented from being processed by using the same standard, and the cost for processing the water resources can be saved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of an apparatus control method according to an embodiment of the present disclosure;
FIG. 2 is a flowchart of step S103 in FIG. 1;
FIG. 3 is another flowchart of step S103 in FIG. 1;
fig. 4 is a structural diagram of an apparatus control device according to an embodiment of the present application;
fig. 5 is a structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, water used in life of people is water with optimal water quality, but the water in life has different purposes and corresponding requirements on water quality can be different, such as: the water for irrigating flowers and plants does not need to be purified; the water is used for cleaning human bodies and flushing toilets, and impurities and hardness in the water need to be removed; the drinking water needs deep purification, but all the water treatment is carried out according to the same standard at present, which causes resource waste. To this end, an embodiment of the present invention provides an apparatus control method, an apparatus, an electronic apparatus, and a storage medium, where the apparatus control method may be applied to an apparatus that distributes water resources to different pipelines, the apparatus includes a water inlet, a water outlet, and a plurality of water outlets, the water inlet is used for accessing water resources that are output after a soft water system processes recovered wastewater, the water outlet is used for communicating with the soft water system so that the soft water system processes the water resources again, and the water outlets are used for communicating with different pipelines in a user's home, such as: drinking water pipe for direct drinking, vegetable washing water pipe, clothes washing water pipe, bathing water pipe, flower watering water pipe, etc.
As shown in fig. 1, the device control method may include the steps of:
step S101, detecting the water quality of water resource flowing from a water inlet to obtain water quality data;
in this step, water quality data can be obtained by detecting information such as the content of metal elements in water, the content of harmful substances in water, and the hardness of water for water quality detection.
Step S102, determining the water quality grade corresponding to the water resource according to the water quality data;
in the embodiment of the invention, a plurality of water quality levels can be set in advance according to national water quality standards, such as: i, II, III, IV and V. Wherein the water quality of the grade I water is good, and the grade I water can be used as drinking water for daily life; the water quality of the grade II water is slightly polluted and can not be directly drunk; for IV-class water quality and the water quality with the following grades, each water quality grade corresponds to one or more groups of water quality data ranges due to serious pollution, such as: data range of metal content, data range of harmful substance content in water or data range of hardness of water quality, etc.
In this step, the water quality data may be compared with a water quality data range corresponding to a water quality level, and when the water quality data is within the water quality data range corresponding to any water quality level, the water quality level corresponding to the water resource may be obtained.
Step S103, determining a corresponding target water outlet and a control strategy based on the water quality level;
in the embodiment of the invention, a first corresponding relation between each water quality grade and each water outlet and a second corresponding relation between each water quality grade and a control strategy of each water outlet can be preset.
Such as: the water outlets corresponding to the water quality level I are a drinking water pipeline and a vegetable washing water pipeline for direct drinking, the water outlets corresponding to the water quality level II are a washing water pipeline and a bathing water pipeline, the water outlets corresponding to the water quality level III are a flower watering water pipeline, and the corresponding control strategy is to open a valve;
the water outlets corresponding to the IV and V water quality levels are all pipelines, and the corresponding control strategies are valve closing and the like.
In this step, the matched water outlet can be searched as a target water outlet in the first corresponding relation and the second corresponding relation according to the water quality level, and the control strategy of the water outlet corresponding to the water quality level is searched.
And step S104, controlling the target water outlet according to the control strategy.
In this step, the opening or closing of the target water outlet may be controlled according to the control strategy.
According to the embodiment of the invention, the water quality grades are divided for the water resources, so that the water resources with different water quality grades can be distributed to different target water outlets, and further, a user can obtain the water resources with different purposes from different water outlets, so that the water resources with different water quality grades can be distributed according to the purposes of the water resources, the user can use the water resources with different water quality grades meeting the use requirements, the water resources with different purposes are prevented from being processed by using the same standard, and the cost for processing the water resources can be saved.
In another embodiment of the present invention, determining the water quality level corresponding to the water resource according to the water quality data includes:
determining a water quality data range in which the water quality data are located in a corresponding relation between a preset water quality data range and a water quality grade;
the embodiment of the invention can compare the water quality data with the smaller threshold and the larger threshold of each water quality data range respectively, and if the water quality data is larger than the smaller threshold of any water quality data range and smaller than the larger threshold of the water quality data range, the water quality data range is determined as the water quality data range in which the water quality data is positioned.
And determining the water quality level corresponding to the water quality data range as the water quality level corresponding to the water resource.
The embodiment of the invention can automatically determine the water quality level corresponding to the water resource, has simple logic and saves system resources.
In another embodiment of the present invention, as shown in fig. 2, the step S103 of determining a corresponding target water outlet and control strategy based on the water quality level includes:
step S201, determining whether the water quality level is an available level;
in the embodiment of the present invention, one or more available levels may be determined in advance in a plurality of water quality levels, by default or according to a user configuration, such as: the water quality grades are I grade, II grade and III grade, and the water quality grades are IV grade and V grade and are unusable grades, etc.
In this step, it may be determined whether the water quality level is one of a plurality of preset available levels, and if so, it may be determined that the water quality level is an available level.
If the water quality level is an available level, step S202, determining a target water outlet corresponding to the water quality level according to a preset corresponding relation between the water quality level and the target water outlet;
in this step, the water quality level may be searched for in a first correspondence relationship between each preset water quality level and a water outlet, and the water outlet corresponding to the water quality level may be determined as a target water outlet.
In step S203, it is determined that the control strategy is to open the target water outlet.
In this step, the water quality class and the water outlet may be searched for in a second correspondence between each preset water quality class and the control strategy of each water outlet, and the searched opening target water outlet is determined as the control strategy for the water outlet corresponding to the water quality class.
According to the embodiment of the invention, when the water quality level is an available level, the target water outlet and the control strategy corresponding to each water quality level can be automatically determined, the water outlets can be automatically distributed according to the water quality level, the control strategy can be determined according to the water quality level and the water outlets, so that users can obtain water resources with different purposes from different water outlets, the water resources with different water quality levels can be distributed according to the purposes of the water resources, the users can use the water resources with different water quality levels meeting the use requirements, the water resources with different purposes are prevented from being processed by using the same standard, and the expenditure of water resource processing can be saved.
In another embodiment of the present invention, as shown in fig. 2, the determining of the corresponding target water outlet and the control strategy based on the water quality level includes:
if the water quality level is an unavailable level, step S204, determining that each water outlet of the device is a first target water outlet, and determining that the control strategy is to close the first target water outlet;
in the embodiment of the invention, whether the water quality level is one of a plurality of preset unavailable levels can be determined, and if so, the water quality level can be determined to be the unavailable level.
As the water quality level is an unavailable level, the water resource entering from the water inlet is forbidden to be conveyed to users, so all water outlets can be closed to avoid the users from using the water resource which affects the health.
Step S205, determining the water outlet of the device as a second target water outlet, and determining the control strategy as opening the second target water outlet.
In this step, since the water resource flowing in from the water inlet cannot be reused, the water outlet may be opened to discharge the water resource flowing in from the water inlet, and the water outlet may be communicated with the soft water system to facilitate the water resource to be treated again.
According to the embodiment of the invention, when the water resource is determined to be unavailable, all water outlets for conveying the water resource to the user are closed, and the water resource flowing in from the water inlet is discharged through the water outlet, so that the problem that the health of the user is influenced by distributing the water resource which cannot be reused to the user is avoided.
In another embodiment of the present invention, the step S104 of controlling the target water outlet according to the control strategy includes:
if the control strategy is to open the target water outlet, controlling a valve corresponding to the target water outlet to be opened;
or if the control strategy is to close the target water outlet, controlling a valve corresponding to the target water outlet to be closed.
According to the embodiment of the invention, the corresponding control instruction can be sent to the valve of the corresponding target water outlet according to the control strategy so as to control the opening or closing of the valve, thereby realizing the opening/closing control of the target water outlet.
In another embodiment of the present invention, as shown in fig. 3, step S103 determines a corresponding target water outlet and a control strategy based on the water quality level, where the water resource flowing into the apparatus from the water inlet enters a designated cavity to wait for detection and distribution, and thus there may be a shared cavity for the water resource, and if the quality of the water resource flowing into the apparatus successively is different, the water resource flowing into the apparatus first may affect the quality of the water resource flowing into the apparatus later, and therefore, in this embodiment of the present invention, the method includes:
step S301, if the water quality level is an available level, acquiring a determination time of the water quality level;
since the water quality level corresponding to the water resource can be determined according to the water quality data in step S102, the determination time is recorded when the water quality level corresponding to the water resource is determined according to the water quality data, and further, in this step, the recorded determination time can be acquired.
Step S302, determining the water quality change condition of water resources flowing into the water inlet successively according to the water quality levels corresponding to any two adjacent determination moments;
in the step, the determination moments can be sequenced according to the time sequence, the water quality levels corresponding to every two adjacent determination moments are compared, and if the two water quality levels are different, the water quality of the water resource which flows into the water inlet in sequence is determined to be unchanged; if the two water quality levels are the same, the water quality of the water resource which flows into the water inlet successively can be determined to change.
The water quality conditions corresponding to different water quality levels are different, so that the water quality change condition can be determined according to the water quality level change condition, and if the water quality is better as the water quality level is higher and the water quality is worse as the water quality level is lower, the water quality of the water resource which flows into the water inlet successively can be considered to be worse from high if the water quality levels corresponding to any two adjacent determination moments are changed from high to low; if the water quality levels corresponding to any two adjacent determined moments are changed from low to high, the water quality of the water resource which flows into the water inlet successively can be considered to be changed from poor to excellent.
Step S303, if the quality of the water resource flowing into the water inlet successively is changed from excellent to poor, determining a target water outlet corresponding to the water quality grade according to the corresponding relation between the preset water quality grade and the target water outlet; and determining the control strategy as opening the target water outlet.
If the water resource with better water quality flows in first and then flows in the water resource with poorer water quality, the influence of the water resource flowing in first on the water quality of the water resource flowing in later is positive, namely, the water quality of the water resource with poorer water quality flowing in later is improved to a certain extent, so that the water outlet can be normally distributed according to the water quality level of the water resource flowing in later and a control strategy is determined.
According to the embodiment of the invention, the corresponding target water outlet can be automatically determined according to the water quality change condition of the water resource which flows into the water inlet in sequence, and the control strategy is determined, so that the water quality grade of the water resource distributed for a user can be accurately controlled, the user can use the water resource meeting the requirement in different purposes, and the water use safety of the user is improved.
In another embodiment of the present invention, step S103 determines a corresponding target water outlet and control strategy based on the water quality level, and the method further includes:
step S304, if the water quality of the water resource which flows into the water inlet successively is changed from poor to excellent, determining the water outlet of the equipment as a target water outlet, and determining the control strategy as opening the target water outlet until the corresponding water quality levels of any two adjacent determination moments are the same;
if the water resource with poor water quality flows in first and then flows in the water resource with better water quality, the influence of the water resource flowing in first on the water quality of the water resource flowing in later is negative, namely, the water quality of the water resource flowing in later with better water quality is reduced to a certain extent, so that the water resource flowing in later can be discharged through the water outlet until the corresponding water quality grades at any two adjacent determined moments are the same.
Step S305, determining a target water outlet corresponding to the water quality grade according to the corresponding relation between the preset water quality grade and the target water outlet; and determining the control strategy as opening the target water outlet.
When the corresponding water quality levels of any two adjacent determination moments are the same, the water quality of the water resource flowing in later can be determined to be stabilized at the corresponding water quality level, and then the water outlet can be normally distributed according to the water quality level of the water resource flowing in later and a control strategy can be determined.
According to the embodiment of the invention, the corresponding target water outlet can be automatically determined according to the water quality change condition of the water resource which flows into the water inlet in sequence, and the control strategy is determined, so that the water quality grade of the water resource distributed for a user can be accurately controlled, the user can use the water resource meeting the requirement in different purposes, and the water use safety of the user is improved.
In still another embodiment of the present invention, there is also provided an apparatus control device, as shown in fig. 4, including:
the detection module 11 is used for detecting the water quality of the water resource flowing from the water inlet to obtain water quality data;
the first determining module 12 is configured to determine a water quality level corresponding to the water resource according to the water quality data;
a second determining module 13, configured to determine a corresponding target water outlet and a control strategy based on the water quality level;
and the control module 14 is used for controlling the target water outlet according to the control strategy.
Optionally, the first determining module includes:
the first determining unit is used for determining the water quality data range in which the water quality data are positioned in the corresponding relation between the preset water quality data range and the water quality level;
and the second determining unit is used for determining the water quality level corresponding to the water quality data range as the water quality level corresponding to the water resource.
Optionally, the second determining module includes:
a third determination unit for determining whether the water quality level is a usable level;
a fourth determining unit, configured to determine, if the water quality level is an available level, a target water outlet corresponding to the water quality level according to a correspondence between a preset water quality level and the target water outlet;
and the fifth determining unit is used for determining that the control strategy is to open the target water outlet.
Optionally, the measurement determining module further includes:
a sixth determining unit, configured to determine that each water outlet of the device is a first target water outlet if the water quality level is an unavailable level, and determine that the control policy is to close the first target water outlet;
and the seventh determining unit is used for determining that the water outlet of the equipment is a second target water outlet and determining that the control strategy is to open the second target water outlet.
Optionally, the control module is further configured to:
if the control strategy is to open the target water outlet, controlling a valve corresponding to the target water outlet to be opened;
or if the control strategy is to close the target water outlet, controlling a valve corresponding to the target water outlet to be closed.
Optionally, the second determining module includes:
the acquisition unit is used for acquiring the determination time of the water quality grade if the water quality grade is an available grade;
the water quality change determining unit is used for determining the water quality change condition of the water resource which flows into the water inlet successively according to the water quality levels corresponding to any two adjacent determining moments;
an eighth determining unit, configured to determine, if the quality of the water resource sequentially flowing into the water inlet is changed from good to bad, a target water outlet corresponding to the water quality level according to a corresponding relationship between a preset water quality level and the target water outlet; and determining the control strategy as opening the target water outlet.
Optionally, the second determining module further includes:
a ninth determining unit, configured to determine that the drain port of the device is a target water outlet if the water quality of the water resource sequentially flowing from the water inlet is changed from poor to good, and determine that the control policy is to open the target water outlet until the water quality levels corresponding to any two adjacent determining moments are the same;
a tenth determining unit, configured to determine, according to a correspondence between a preset water quality level and a target water outlet, a target water outlet corresponding to the water quality level; and determining the control strategy as opening the target water outlet.
In another embodiment of the present invention, an electronic device is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the device control method of any of the preceding method embodiments when executing the program stored in the memory.
According to the electronic equipment provided by the embodiment of the invention, the processor realizes the detection of the water quality of the water resource flowing from the water inlet by executing the program stored in the memory, and water quality data is obtained; determining the water quality grade corresponding to the water resource according to the water quality data; determining a corresponding target water outlet and a control strategy based on the water quality grade; according to the embodiment of the invention, the water quality grades are divided for the water resources, so that the water resources with different water quality grades can be distributed to different target water outlets, and then the user can obtain the water resources with different purposes from different water outlets, so that the water resources with different water quality grades can be distributed according to the purposes of the water resources, the user can use the water resources with different water quality grades meeting the use requirements, the water resources with different purposes are prevented from being processed by using the same standard, and the cost for processing the water resources can be saved.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
In a further embodiment of the present invention, there is also provided a computer-readable storage medium having stored thereon a program of a device control method, which when executed by a processor, implements the steps of the device control method of any of the preceding method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An apparatus control method, characterized in that the method comprises:
detecting the water quality of water resource flowing from the water inlet to obtain water quality data;
determining the water quality grade corresponding to the water resource according to the water quality data;
determining a corresponding target water outlet and a control strategy based on the water quality level;
and controlling the target water outlet according to the control strategy.
2. The equipment control method of claim 1, wherein determining the water quality level corresponding to the water resource based on the water quality data comprises:
determining a water quality data range in which the water quality data are located in a corresponding relation between a preset water quality data range and a water quality grade;
and determining the water quality level corresponding to the water quality data range as the water quality level corresponding to the water resource.
3. The apparatus control method according to claim 1, wherein the determining a corresponding target outlet and control strategy based on the water quality level comprises:
determining whether the water quality level is a usable level;
if the water quality level is an available level, determining a target water outlet corresponding to the water quality level according to a preset corresponding relation between the water quality level and the target water outlet;
and determining the control strategy as opening the target water outlet.
4. The apparatus control method according to claim 3, wherein the determining a corresponding target outlet and control strategy based on the water quality level further comprises:
if the water quality level is an unavailable level, determining that each water outlet of the equipment is a first target water outlet, and determining that the control strategy is to close the first target water outlet;
and determining the water outlet of the equipment as a second target water outlet, and determining the control strategy as opening the second target water outlet.
5. The device control method of claim 1, wherein said controlling said target outlet according to said control strategy comprises:
if the control strategy is to open the target water outlet, controlling a valve corresponding to the target water outlet to be opened;
or if the control strategy is to close the target water outlet, controlling a valve corresponding to the target water outlet to be closed.
6. The apparatus control method according to claim 1, wherein determining a corresponding target outlet and control strategy based on the water quality level comprises:
if the water quality level is an available level, acquiring the determination time of the water quality level;
determining the water quality change condition of the water resource which flows into the water inlet successively according to the water quality levels corresponding to any two adjacent determination moments;
if the water quality of the water resource which flows into the water inlet successively is changed from excellent to poor, determining a target water outlet corresponding to the water quality grade according to the corresponding relation between the preset water quality grade and the target water outlet; and determining the control strategy as opening the target water outlet.
7. The apparatus control method according to claim 6, wherein determining a corresponding target outlet and control strategy based on the water quality level further comprises:
if the water quality of the water resource which flows into the water inlet successively becomes better from difference, determining that a water outlet of the equipment is a target water outlet, and determining the control strategy to open the target water outlet until the corresponding water quality grades of any two adjacent determination moments are the same;
determining a target water outlet corresponding to the water quality grade according to the corresponding relation between the preset water quality grade and the target water outlet; and determining the control strategy as opening the target water outlet.
8. An apparatus control device, characterized in that the device comprises:
the detection module is used for detecting the water quality of the water resource flowing from the water inlet to obtain water quality data;
the first determining module is used for determining the water quality level corresponding to the water resource according to the water quality data;
the second determination module is used for determining a corresponding target water outlet and a control strategy based on the water quality level;
and the control module is used for controlling the target water outlet according to the control strategy.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method of controlling an apparatus according to any one of claims 1 to 7 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a program of a device control method is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the device control method of any one of claims 1 to 7.
CN202110335646.5A 2021-03-29 2021-03-29 Equipment control method and device, electronic equipment and storage medium Active CN113050514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110335646.5A CN113050514B (en) 2021-03-29 2021-03-29 Equipment control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110335646.5A CN113050514B (en) 2021-03-29 2021-03-29 Equipment control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113050514A true CN113050514A (en) 2021-06-29
CN113050514B CN113050514B (en) 2022-05-13

Family

ID=76516103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110335646.5A Active CN113050514B (en) 2021-03-29 2021-03-29 Equipment control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113050514B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923361A (en) * 2009-06-10 2010-12-22 上海轻工业研究所有限公司 Water saving control method
CN104003536A (en) * 2014-06-12 2014-08-27 北京科净源科技股份有限公司 Different-quality water supply method
US20170090440A1 (en) * 2015-09-29 2017-03-30 International Business Machines Corporation Multi-objective scheduling for on/off equipment
CN106587411A (en) * 2016-12-14 2017-04-26 深圳市智水小荷技术有限公司 Effluent monitoring treatment method and system of water purifier
CN207016576U (en) * 2017-07-11 2018-02-16 北京中环碧洋科技有限公司 A kind of concentration water circulation system
CN107991449A (en) * 2017-11-17 2018-05-04 宁波水表股份有限公司 A kind of water supply detecting and controlling system and method
CN109213215A (en) * 2017-07-05 2019-01-15 佛山市顺德区美的饮水机制造有限公司 Water softening device, the water hardness control device of water softening device and method
CN208415400U (en) * 2018-06-26 2019-01-22 浙江大学宁波理工学院 water-saving system
CN111606523A (en) * 2020-07-04 2020-09-01 中科星图(深圳)数字技术产业研发中心有限公司 Water purification device with rain flood diversion function

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923361A (en) * 2009-06-10 2010-12-22 上海轻工业研究所有限公司 Water saving control method
CN104003536A (en) * 2014-06-12 2014-08-27 北京科净源科技股份有限公司 Different-quality water supply method
US20170090440A1 (en) * 2015-09-29 2017-03-30 International Business Machines Corporation Multi-objective scheduling for on/off equipment
CN106587411A (en) * 2016-12-14 2017-04-26 深圳市智水小荷技术有限公司 Effluent monitoring treatment method and system of water purifier
CN109213215A (en) * 2017-07-05 2019-01-15 佛山市顺德区美的饮水机制造有限公司 Water softening device, the water hardness control device of water softening device and method
CN207016576U (en) * 2017-07-11 2018-02-16 北京中环碧洋科技有限公司 A kind of concentration water circulation system
CN107991449A (en) * 2017-11-17 2018-05-04 宁波水表股份有限公司 A kind of water supply detecting and controlling system and method
CN208415400U (en) * 2018-06-26 2019-01-22 浙江大学宁波理工学院 water-saving system
CN111606523A (en) * 2020-07-04 2020-09-01 中科星图(深圳)数字技术产业研发中心有限公司 Water purification device with rain flood diversion function

Also Published As

Publication number Publication date
CN113050514B (en) 2022-05-13

Similar Documents

Publication Publication Date Title
Khanal et al. A review on harvesting and harnessing rainwater: an alternative strategy to cope with drinking water scarcity
Jóźwiakowski et al. The efficiency and technological reliability of biogenic compounds removal during long-term operation of a one-stage subsurface horizontal flow constructed wetland
Guerrini et al. Identifying the performance drivers of wastewater treatment plants through conditional order-m efficiency analysis
CN106226490A (en) A kind of method and device of water quality detection
CN114298242A (en) Intelligence house is with whole room circulation water purification system
CN113050514B (en) Equipment control method and device, electronic equipment and storage medium
Eliyan et al. Factors influencing physicochemical characteristics of faecal sludge in Phnom Penh, Cambodia
Tolksdorf et al. Separating grey-and blackwater in urban water cycles–sensible in the view of misconnections?
Penn et al. Impacts of onsite greywater reuse on wastewater systems
CN118655924B (en) A sewage outlet flow control method, system and storage medium
KR101355866B1 (en) Smart wastewater reusing system using rainwater and graywater
Tolksdorf et al. Semicentralized greywater and blackwater treatment for fast growing cities: how uncertain influent characteristics might affect the treatment processes
CN212612878U (en) Drainage system and equipment based on combined pipe network
CN111424792B (en) Treatment system, treatment device and treatment method for rainwater storage
Meehan Water rights and wrongs: Illegality and informal use in Mexico and the US
CN105988427A (en) Expert system of optimizing technological parameters during sewage processing production process
Chowdhury et al. Will greywater reuse really affect the sewer flow? Experience of a residential complex in Al Ain, UAE
Barbu et al. Fuzzy control applied on a benchmark simulation model for sewer networks
CN117918236A (en) Saline-alkali soil irrigation method and device, intelligent control system and saline-alkali soil treatment system
Jing et al. Wastewater treatment plant network design using a multiscale two-stage mixed integer stochastic model
Patterson Temporal variability of septic tank effluent
Tolksdorf et al. Resource-efficient infrastructure for fast growing cities–realization of a resource recovery center
CN205857345U (en) A kind of municipal drainage system
Migdał et al. Assessment of the reliability of the operation of a sewage treatment plant using Monte Carlo simulation
CN209047117U (en) A kind of water recycling system

Legal Events

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
GR01 Patent grant
GR01 Patent grant