Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In an embodiment, fig. 1 is a schematic flow chart of a control method for releasing a salt sol according to an embodiment of the present application. As shown in fig. 1, a control method for releasing a salt sol is provided. The present embodiment is mainly exemplified by the application of the method to the target device. In the embodiment, a control method for releasing a salt sol will be described taking a target device as an example of a salt therapy device.
S110, acquiring current environmental parameters of the target equipment and the salt box state.
In an embodiment, the target device refers to a medical device that can release a saline sol. The salt sol can also be called dry salt aerosol, and is released into the air in a particle form, so that a user can inhale the salt sol into the nasal cavity in the process of deep breathing, and the effect of relieving or treating respiratory diseases is achieved. In an embodiment, the current environment parameter refers to parameter information of an environment in which the target device is located. Illustratively, the current environmental parameters may include: current ambient humidity and current ambient temperature. In an embodiment, the salt box status refers to current status information in which the salt box (which may also be referred to as a salt box) is located in the target device. Illustratively, the salt box state may include: salt box presence, salt box absence, and salt box expiration. The salt sol generator is composed of an air inlet module and a salt box, wherein the air inlet module is used for sucking outside air; the salt box is used for storing solid salt. In the actual operation process, the air inlet module sucks external air through the air inlet, blows solid salt into salt sol through the external air, and releases the salt sol into the air through the air outlet. In an embodiment, the expiration of the service life of the salt box is understood as that the salt box is expired, that is, the salt box is preconfigured with a certain service life before being installed in the target device, and if the salt box is expired, the salt box needs to be replaced again for use.
In the actual operation process, the current environmental parameters and the salt box state of the target equipment can be obtained in real time, and the current environmental parameters and the salt box state of the target equipment can be obtained at fixed time, which is not limited. In an embodiment, in order to obtain a salt box state of a target device, a salt box detection function is added in the target device to detect a salt box, determine whether the salt box is missing or whether the service time is expired, and display a screen through a display module in the target device and prompt through a buzzer when the salt box is missing or the salt box is expired, so that a user can replace or adjust the salt box. An electronic tag module is added in the target device for detecting the salt box in the target device and judging whether loosening or time expiration is achieved or not.
S120, controlling release of the salt sol according to the current environmental parameters and the salt box state.
In an embodiment, after the current environmental parameter and the salt box state of the target equipment are acquired, analyzing the current environmental parameter and the salt box state to judge whether a condition for releasing the salt sol is met, and releasing the salt sol if the condition is met; otherwise, the release of the salt sol is stopped. In an embodiment, the current environmental temperature, the current environmental humidity and the salt box state of the environment where the target device is located can be considered at the same time, that is, the release of the salt sol is controlled under the condition that the current environmental temperature, the current environmental humidity and the salt box state meet the preset conditions, so as to exert the treatment effect of the salt sol to the maximum extent.
In one embodiment, since the target device is generally placed in a room and the variation range of the indoor temperature is small, only the current environmental humidity and the salt box state of the environment in which the target device is located can be considered, and the release of the salt sol can be controlled according to the current environmental humidity and the salt box state. It can be understood that, in the case that the current environmental humidity of the target device meets the pre-configured humidity threshold, and the salt box state is that the salt box exists, the salt sol can be released; otherwise, if the current ambient humidity of the target device does not meet the pre-configured humidity threshold, or the salt box state is that the salt box is missing or the salt box is expired, stopping releasing the salt sol.
In the control method for releasing the salt sol, the current environmental parameters and the salt box state of the target equipment are obtained; and controlling the release of the salt sol according to the current environmental parameters and the salt box state. According to the embodiment of the application, whether the release condition of the pre-configured salt sol is met or not is judged by automatically collecting and detecting the current environmental parameters and the salt box state, and the salt sol is released under the condition that the release condition of the pre-configured salt sol is met, so that the treatment effect of the salt sol is exerted to the greatest extent.
In one embodiment, before acquiring the current environmental parameters of the target device and the salt box condition, the method further comprises: and starting a salt box detection function of the target equipment.
In an embodiment, a salt box detection function is added in the target device in advance, and the salt box detection function of the target device is started when the program is initialized. In one embodiment, the salt box detection function may include: salt box detection and salt box counting, wherein the salt box detection is used for detecting whether the salt box exists or not; the salt box is counted to detect whether the salt box is expired. It is understood that the salt box has a certain service life, and the salt sol can be controlled to be released only when the condition of releasing the salt sol is satisfied during the service life of the salt box.
In one embodiment, the current environmental parameters include: current ambient humidity and current ambient temperature; the salt box state comprises at least one of the following: salt box presence, salt box absence, and salt box expiration.
In one embodiment, controlling the release of the salt sol based on current environmental parameters and salt box conditions comprises: determining a comparison result of the current environmental humidity and a first preset humidity threshold; stopping releasing the salt sol under the condition that the current environmental humidity is greater than a first preset humidity threshold value until the current environmental humidity is less than a second preset humidity threshold value; the second preset humidity threshold is smaller than the first preset humidity threshold; in the case where the salt box state is the existence of the salt box, the salt sol is released.
In an embodiment, the second preset humidity threshold is less than the first preset humidity threshold. It can be understood that when the current environmental humidity is greater than the first preset humidity threshold, the salt sol is stopped to be released until the current environmental humidity is less than the second preset humidity threshold, and the salt sol is released again when the salt box state is the salt box, so that the situation that the current environmental humidity of the target equipment is unstable and the user misjudges that the target equipment fails is avoided. For example, assuming that the first preset humidity threshold is 75% rh, the second preset humidity threshold is 70% rh, if the current environmental humidity of the environment where the target device is located is 76% rh, the buzzer gives an alarm prompt, and displays that the current environmental humidity is 76% rh on the display module; if the current environment humidity is unstable and is switched back and forth between 76% RH and 75% RH, the buzzer repeatedly gives out alarm prompts, so that a user mistakenly considers that the target equipment is out of order.
In an embodiment, after the target device works normally, detecting the current environmental humidity of the target device, judging whether the current environmental humidity is smaller than a first preset humidity threshold, and if so, releasing the salt sol by the target device; if the current environmental humidity is greater than or equal to a second preset humidity threshold, the target device stops releasing the salt sol, continuously detects whether the current environmental humidity is reduced to the second preset humidity threshold, and releases the salt sol under the condition that the current environmental humidity is smaller than the second preset humidity threshold. Of course, in the case where the current ambient humidity satisfies the preset condition, the salt box state of the target device is detected at the same time, and in the case where the salt box state is the existence of the salt box, the salt sol is released.
In one embodiment, controlling the release of the salt sol based on current environmental parameters and salt box conditions comprises: determining a comparison result of the current environmental humidity and a first preset humidity threshold; stopping releasing the salt sol and sending out a first alarm prompt under the condition that the current environmental humidity is greater than a first preset humidity threshold value; and stopping releasing the salt sol and sending out a second alarm prompt under the condition that the salt box state is that the salt box is missing or the salt box is expired.
In an embodiment, when the current ambient humidity of the target device is greater than a first preset humidity threshold, releasing the salt sol is stopped, and a first alarm prompt is sent out so as to remind a user. Wherein the first alert cue comprises: the first buzzer prompts, and the ambient humidity icon blinks. In the actual operation process, the buzzer is prompted for three times, and meanwhile, the environment humidity icon flashes. And detecting the salt box state of the target equipment, stopping releasing the salt sol if the salt box state is the salt box missing state or the salt box expiration state, and sending out a second alarm prompt. Wherein the second alert cue comprises: the second buzzer prompts, and the salt box icon blinks. Of course, the buzzer may also prompt three times, and the salt box icon blinks. The first buzzer alert in the first alert and the second buzzer alert in the second alert may be the same or different, and are not limited thereto. For example, the number of prompts of the first buzzer prompt and the second buzzer prompt may be the same.
In one embodiment, controlling the release of the salt sol according to the current environmental parameters and the salt box condition further comprises: determining a comparison result of the current ambient temperature and a preset temperature range; and stopping releasing the salt sol under the condition that the current ambient temperature is not in the preset temperature range.
In an embodiment, the current environmental temperature of the environment in which the target device is located is detected in order to ensure the therapeutic effect of the salt sol while detecting the current environmental humidity and the salt box state of the environment in which the target device is located. Releasing the salt sol under the condition that the current ambient temperature is in a preset temperature range; otherwise, the release of the salt sol is stopped. The preset temperature may be in the range of 0 to 60 c, for example.
In an embodiment, fig. 2 is an initialization flowchart of a target device according to an embodiment of the present application. As shown in fig. 2, the initialization process of the target device in this embodiment includes: S210-S260.
S210, starting.
S220, initializing a program.
S230, judging whether the initialization is successful, if so, executing S240; if not, S260 is performed.
S240, prompting by a third buzzer.
S250, starting up.
And S260, if the salt therapy equipment is abnormal, carrying out icon indication and fourth buzzer prompt.
In an embodiment, the process of initializing the program of the target device may be understood as a process of initializing a port of the target device, initializing a display module, initializing a temperature and humidity module, and initializing a salt therapy box. Of course, if the program initialization of the target device is unsuccessful, it can be understood that the salt therapy box is abnormal, and the user can be reminded through icon indication and a second buzzer prompt; if the program initialization of the target device is successful, a third buzzer prompt can be performed.
In an embodiment, to facilitate distinguishing whether the program initialization is successful, the third buzzer alert and the fourth buzzer alert are different, e.g. may be distinguished from the difference in the number of buzzer alerts. For example, the third buzzer alert may be a buzzer alert once, while the fourth buzzer alert may be a buzzer alert three times.
In an embodiment, fig. 3 is a flowchart of another control method for releasing a salt sol according to an embodiment of the present application, where the current environmental parameter includes current environmental humidity, and the embodiment is a flowchart for controlling release of the salt sol. It is understood that the current ambient temperature of the environment in which the target device is located in this embodiment is 0 to 60 ℃. In this embodiment, taking the first preset humidity threshold of 75% rh and the second preset humidity threshold of 70% rh as an example, the control of the release of the salt sol according to the current environmental humidity will be described. Wherein,% RH refers to units of relative humidity. As shown in fig. 3, the control method for releasing the salt sol in the embodiment includes: S310-S360.
S310, a temperature and humidity module in the target equipment starts to work.
S320, displaying the current ambient humidity and the current ambient temperature.
In an embodiment, the current ambient humidity and the current ambient temperature may be displayed on a display module in the target device.
S330, judging whether the current environmental humidity is less than 75% RH, if not, executing S340; if yes, S360 is executed.
S340, stopping releasing the salt sol, and flashing the humidity icon, wherein the buzzer prompts for three times.
S350, judging whether the current environmental humidity is less than 70% RH, if yes, executing S360; if not, S340 is performed.
S360, releasing the salt sol.
In an embodiment, after the target device works normally, the target device releases the salt sol by detecting the current ambient humidity and judging whether the current ambient humidity is less than 75% RH, if the current ambient humidity is less than 75% RH; if the current environmental humidity is greater than or equal to 75% RH, the target equipment stops releasing the salt sol, meanwhile, the humidity icon flashes, and the buzzer prompts for three times, continuously monitors whether the current environmental humidity is reduced to be less than 70% RH, if the current environmental humidity is less than 70% RH, the target equipment releases the salt sol, and if the current environmental humidity is not reduced to be less than 70% RH, continuously monitors the current environmental humidity until the current environmental humidity is reduced to be less than 70% RH, and releases the salt sol, so that the problem that a user misjudges the target equipment to be out of order due to instability of the current environmental humidity of the target equipment is avoided.
In an embodiment, fig. 4 is a flowchart of another control method for releasing salt sol according to an embodiment of the present application, where the salt box state is determined and the salt sol is controlled to release. It can be understood that, in this embodiment, the current ambient humidity and the current ambient temperature of the environment where the target device is located both conform to the preset conditions, that is, the current ambient humidity is less than the first preset humidity threshold, and the current ambient temperature is within the preset temperature range. As shown in fig. 4, the present embodiment includes S410-S460.
S410, starting a salt box detection function.
S420, starting the salt box for detection.
S430, starting the salt box for counting.
S440, starting a timer.
S450, judging whether a salt box exists, if so, executing S470; if not, S480 is performed.
S460, judging whether the salt box is expired, if so, executing S480; if not, S470 is performed.
S470, releasing the salt sol.
S480, a buzzer alarms and prompts, and a salt box icon flashes.
In an embodiment, after the target device works normally, the salt box detection function is started, that is, the salt box detection and the salt box counting are started, and simultaneously, the timer is started for detecting and counting the salt box at fixed time. In the embodiment, whether the salt box exists or not is judged through detection of the salt box, whether the salt box is expired or not is judged through counting of the salt box, if the salt box does not exist or the salt box is expired, a buzzer alarms to prompt, and a salt box icon flashes; if a salt box is present and the salt box has not expired, the salt sol is released.
It should be noted that, S420 and S430 may be executed simultaneously or sequentially, and are not limited to executing S420 first and then S430. S430 may be performed first, and S420 may be performed later. Similarly, S450 and S460 may be performed simultaneously, or there may be a sequential order in which S460 is performed first and S450 is performed second.
It should be understood that, although the steps in the flowcharts of fig. 1-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In an embodiment, fig. 5 is a block diagram of a control device for releasing a salt sol according to an embodiment of the present application. As shown in fig. 5, there is provided a control device for releasing a salt sol, comprising: an acquisition module 510 and a control module 520, wherein:
an obtaining module 510, configured to obtain a current environmental parameter and a salt box status of the target device;
a control module 520 for controlling the release of the salt sol according to the current environmental parameters and the salt box condition.
According to the embodiment of the application, whether the release condition of the pre-configured salt sol is met or not is judged by automatically collecting and detecting the current environmental parameters and the salt box state, and the salt sol is released under the condition that the release condition of the pre-configured salt sol is met, so that the treatment effect of the salt sol is exerted to the greatest extent.
In one embodiment, the control device for releasing the salt sol further comprises:
the starting module is used for starting the salt box detection function of the target equipment before the current environmental parameters and the salt box state of the target equipment are acquired.
In one embodiment, the current environmental parameters include: current ambient humidity and current ambient temperature;
the salt box state comprises at least one of the following: salt box presence, salt box absence, and salt box expiration.
In one embodiment, a control module includes:
the first determining unit is used for determining a comparison result of the current environmental humidity and a first preset humidity threshold value;
the stopping unit is used for stopping releasing the salt sol until the current environmental humidity is smaller than a second preset humidity threshold value under the condition that the current environmental humidity is larger than the first preset humidity threshold value; the second preset humidity threshold is smaller than the first preset humidity threshold;
and the releasing unit is used for releasing the salt sol in the case that the salt box state exists as the salt box.
In one embodiment, a control module includes:
determining a comparison result of the current environmental humidity and a first preset humidity threshold;
the stopping unit is used for stopping releasing the salt sol and sending out a first alarm prompt under the condition that the current environmental humidity is greater than a first preset humidity threshold value;
and the stopping unit is used for stopping releasing the salt sol and sending out a second alarm prompt when the salt box state is the salt box missing state or the salt box expired state.
In one embodiment, the first alert cue comprises: the first buzzer prompts and the ambient humidity icon flashes;
the second alert cue includes: the second buzzer prompts, and the salt box icon blinks.
For specific limitations on the control means for releasing the salt sol, reference may be made to the above limitations on the control method for releasing the salt sol, and no further description is given here. The above-mentioned control device for releasing the salt sol may be implemented in whole or in part by software, hardware or a combination thereof. The above modules can be embedded in hardware or independent from a processor in the salt therapy device, or can be stored in a memory in the salt therapy device in software form, so that the processor can call and execute the operations corresponding to the above modules.
Fig. 6 is a schematic hardware structure of a salt therapy apparatus according to an embodiment of the present application. As shown in fig. 6, a salt therapy apparatus provided in an embodiment of the present application includes: a temperature and humidity module 610, a buzzer 620, a display module 630, a salt sol generator 640, a memory 650 and a processor 660; the salt sol generator 640 includes: the salt box and the air inlet module; . The processor 660 in the salt therapy apparatus may be one or more, and in fig. 6, a processor 660 is taken as an example, and the temperature and humidity module 610, the buzzer 620, the display module 630, the salt sol generator 640, the memory 650 and the processor 660 in the salt therapy apparatus may be connected by a bus or other manners, and in fig. 6, the connection is taken as an example by a bus.
The memory 650 in the salt therapy apparatus is used as a computer readable storage medium, and may be used to store one or more programs, which may be software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the control of releasing the salt sol provided in the above embodiments of the present application (for example, the modules in the control device for releasing the salt sol shown in fig. 6, including the acquisition module 510 and the control module 520). The processor 660 executes various functional applications and data processing of the salt therapy apparatus by running software programs, instructions and modules stored in the memory 650, i.e., implements the control method for releasing the salt sol in the above-described method embodiments.
Memory 650 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the device, etc. In addition, memory 650 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 650 may further include memory located remotely from processor 660, which may be connected to the device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The temperature and humidity module is used for detecting the current environment temperature and the current environment humidity of the environment where the target equipment is located;
the buzzer is used for sending out a corresponding alarm prompt according to the current state of the target equipment;
the display module is used for displaying the current environment temperature and the current environment humidity of the target equipment;
the salt box is used for storing solid salt;
the air inlet module is used for sucking outside air; .
And, when one or more programs included in the above-described salt therapy apparatus are executed by the one or more processors 660, the programs perform the following operations:
acquiring current environmental parameters and a salt box state of target equipment;
and controlling the release of the salt sol according to the current environmental parameters and the salt box state.
The control method for releasing the salt sol provided by any embodiment of the application can be executed by the salt therapy equipment, and the control method has the corresponding functional modules and beneficial effects of the execution method.
In an embodiment, the embodiment of the present application further provides a computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the control method for releasing a salt sol provided in the embodiment of the present application, the method including:
acquiring current environmental parameters and a salt box state of target equipment;
and controlling the release of the salt sol according to the current environmental parameters and the salt box state.
Any combination of one or more computer readable media may be employed as the computer storage media of the embodiments herein. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).