Liquid outlet device sensing distance self-learning method, electronic device, and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2026-08-11
AI Technical Summary
[0010]基于此,有必要针对现有技术的出液器对感应距离的自学习不便的技术问题,提供一种出液器感应距离自学习方法、电子设备及存储介质
[0038] This invention uses a first indicating device to indicate the state of the self-learning mode, and adds a sensing distance measurement mode. A second indicating device indicates the comparison result between the distance between the reference object and the sensing component and the sensing distance. This allows users to understand the state of the self-learning mode during the self-learning process of the dispensing device, and to determine the distance between the reference object and the sensing component through the sensing distance measurement mode. This helps determine whether the sensing distance setting is correct, providing intuitive judgment for users and maintenance personnel for on-site testing and fault location, and reducing maintenance costs.
Smart Images

Figure CN115523885B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of bathroom equipment, and in particular to a self-learning method for sensing distance of a liquid dispenser, an electronic device, and a storage medium. Background Technology
[0002] Currently, liquid dispensers, such as soap dispensers and water dispensers, have diversified installation methods and require more complex matching basins, which increases the difficulty of on-site debugging for installers and maintenance personnel.
[0003] Most liquid dispensers on the market today only have a simple dispensing function and cannot cope with complex installation environments, requiring multiple manual adjustments of the sensing distance or blind adjustments.
[0004] Existing liquid dispensers are mostly used in wall-mounted applications. These dispensers have their sensing distance pre-set in the program and lack learning capabilities. Some have basic learning capabilities but require the placement of a circuit board, using the distance between the sensor and the board as the actual sensing distance. After learning, there is no reporting mechanism, which leads to the following four inconveniences:
[0005] 1. If the dispensing device needs to be installed on a countertop and has no learning function, but only a pre-set sensing distance, then the installer and maintenance personnel need to rely on experience to determine the installation position of the dispensing device, and may even need to make constant adjustments to meet the sensing distance of the dispensing device.
[0006] 2. After the liquid dispenser is installed, there is no report of whether the installation was successful or not, nor is there a report of the current learning value of the sensing distance. If the installation is not appropriate, or if there is a critical sensing area nearby, the installer will not be able to know in time. This will greatly increase the risk of abnormal liquid dispensing from the liquid dispenser.
[0007] 3. Using a board to set the sensing distance and taking the distance from the sensor to the board as the actual sensing distance has a flaw. If the board is not placed at the closest distance that the sensor can detect, the distance learned will not be the distance that the installer wants to set. Since there is no function to report the learning results, the installer will not know this.
[0008] 4. Using the closest sensing distance as the sensing distance without adjusting the retraction distance will result in a critical sensing phenomenon, which can easily lead to abnormal liquid dispensing in actual use.
[0009] Therefore, since the existing dispensing device lacks the function of interacting with the user during self-learning and also lacks the function of measuring and detecting the sensing distance after self-learning, it cannot provide an intuitive judgment when the dispensing device malfunctions due to excessive sensing distance. This increases the difficulty for maintenance personnel to conduct on-site testing and fault location, and may even require the dispensing device to be replaced because the distance cannot be determined, thus increasing maintenance costs. Summary of the Invention
[0010] Therefore, it is necessary to provide a self-learning method, electronic device, and storage medium for the sensing distance of a liquid dispenser, addressing the technical problem of the inconvenience of self-learning of sensing distance in existing liquid dispensers.
[0011] This invention provides a self-learning method for the sensing distance of a liquid dispenser, comprising:
[0012] In response to a self-learning request, the device enters a self-learning mode. In this mode, the device determines the closest distance between the reference object and the sensing component, determines and saves the sensing distance based on the closest distance, and simultaneously indicates the state of the self-learning mode through a first indicator device. The sensing distance is used when the dispenser is in operation and dispenses liquid when the distance between the reference object and the sensing component is less than or equal to the sensing distance.
[0013] In response to a ranging request, the system enters a ranging mode. In this mode, the system acquires the detection distance between the reference object and the sensing component, compares the detection distance with the sensing distance, and identifies the comparison result using a second indicator device.
[0014] Furthermore, the first indicating device is a first light indicating device, and the step of identifying the self-learning mode state through the first indicating device specifically includes:
[0015] Determine the current state of the self-learning mode and obtain the first lighting effect corresponding to the current state;
[0016] Control the first light indicator device to display the first lighting effect.
[0017] Furthermore, the self-learning mode includes entering a learning state, learning in progress, successful learning completion, and failed learning completion.
[0018] Further, the second indicating device is a second light indicating device, and the step of acquiring the detection distance between the reference object and the sensing component, comparing the detection distance with the sensing distance, and indicating the comparison result of the detection distance and the sensing distance through the second indicating device specifically includes:
[0019] Obtain the detection distance between the reference object and the sensing component;
[0020] The detection distance is compared with the sensing distance, and a second lighting effect corresponding to the comparison result is determined based on the comparison result;
[0021] Control the second light indicator device to display the second lighting effect.
[0022] Furthermore, the step of comparing the detection distance with the sensing distance, and determining the second lighting effect corresponding to the comparison result, specifically includes:
[0023] Compare the detection distance with the sensing distance;
[0024] If the detection distance is greater than the sum of the sensing distance and the preset distance threshold, then the corresponding second lighting effect is the off lighting effect;
[0025] If the detection distance is less than or equal to the sum of the sensing distance and a preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect;
[0026] If the detection distance is less than or equal to the sensing distance, the corresponding second lighting effect is a continuous lighting effect.
[0027] Furthermore, if the detection distance is less than or equal to the sum of the sensing distance and a preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect, specifically including:
[0028] If the detection distance is less than or equal to the sum of the sensing distance and the preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect, and the flashing speed of the flashing lighting effect corresponding to the smaller detection distance is greater than or equal to the flashing speed of the flashing lighting effect corresponding to the larger detection distance.
[0029] Furthermore, it also includes:
[0030] In response to the self-learning command sent from the cloud, it enters self-learning mode.
[0031] Furthermore, determining the sensing distance based on the nearest distance specifically includes:
[0032] The sensing distance is the value obtained by subtracting the preset retraction distance from the nearest distance.
[0033] This invention provides an electronic device, comprising:
[0034] At least one processor; and,
[0035] A memory communicatively connected to at least one of the processors; wherein,
[0036] The memory stores instructions that can be executed by at least one of the processors to enable at least one of the processors to perform the dispensing device sensing distance self-learning method as described above.
[0037] This invention provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform all the steps of the self-learning method for dispensing device sensing distance as described above.
[0038] This invention uses a first indicating device to indicate the state of the self-learning mode, and adds a sensing distance measurement mode. A second indicating device indicates the comparison result between the distance between the reference object and the sensing component and the sensing distance. This allows users to understand the state of the self-learning mode during the self-learning process of the dispensing device, and to determine the distance between the reference object and the sensing component through the sensing distance measurement mode. This helps determine whether the sensing distance setting is correct, providing intuitive judgment for users and maintenance personnel for on-site testing and fault location, and reducing maintenance costs. Attached Figure Description
[0039] Figure 1 This is a flowchart illustrating the workflow of a self-learning method for sensing distance of a liquid dispenser according to an embodiment of the present invention.
[0040] Figure 2 This is a schematic diagram of the structure of a liquid outlet according to an embodiment of the present invention;
[0041] Figure 3 This is a flowchart illustrating a self-learning method for dispensing device sensing distance in another embodiment of the present invention.
[0042] Figure 4 A flowchart illustrating the self-learning mode of a self-learning method for dispensing device sensing distance, as a preferred embodiment of the present invention;
[0043] Figure 5 A flowchart illustrating the sensing distance measurement mode of a self-learning method for dispensing device sensing distance, as shown in the preferred embodiment of the present invention;
[0044] Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to the present invention. Detailed Implementation
[0045] The specific embodiments of the present invention will be further described below with reference to the accompanying drawings. Identical components are indicated by the same reference numerals. It should be noted that the terms "front," "rear," "left," "right," "up," and "down" used in the following description refer to directions in the accompanying drawings, while the terms "inner" and "outer" refer to directions toward or away from the geometric center of a specific component, respectively.
[0046] like Figure 1The diagram shown is a flowchart of a self-learning method for the sensing distance of a liquid dispenser according to an embodiment of the present invention, including:
[0047] Step S101: In response to the self-learning request, enter the self-learning mode. In the self-learning mode, determine the closest distance between the reference object and the sensing component, determine the sensing distance based on the closest distance and save it, and at the same time, mark the state of the self-learning mode through the first indicator device. The sensing distance is used when the liquid dispenser is in working state and the distance between the reference object and the sensing component is less than or equal to the sensing distance to dispense liquid.
[0048] Step S102: In response to the sensing distance request, enter the sensing distance mode. In the sensing distance mode, obtain the detection distance between the reference object and the sensing component, compare the detection distance with the sensing distance, and mark the comparison result of the detection distance and the sensing distance through the second indicator device.
[0049] Specifically, this invention can be applied to the controller of a liquid dispenser. Liquid dispensers include, but are not limited to, soap dispensers, faucets, and other liquid dispensing devices. Figure 2 As shown, the liquid dispenser includes a liquid dispensing element 1, a sensing component 2, and a tabletop indicator light 3. The sensing component 2 is preferably a sensor, such as a distance sensor.
[0050] When a user requests self-learning, step S101 is triggered. For example, if a user presses or long-presses the self-learning button, a self-learning request is generated, triggering step S101.
[0051] During step S101, the dispensing device enters a self-learning mode, detecting the distance between a reference object and the sensing component 2. The minimum distance between all detected reference objects and the sensing component 2 in self-learning mode is taken as the closest distance between the reference object and the sensing component. The reference object is an item detected by the sensing component 2, such as a circuit board used by installers or maintenance personnel on-site. Installers or maintenance personnel adjust the distance between the circuit board and the sensing component to facilitate the dispensing device's self-learning. The distance between the reference object and the sensing component 2 is the distance between them in the direction perpendicular to the sensing component 2. When the reference object is within the detection range 21 of the sensing component 2, the sensing component 2 will obtain the distance between the reference object and the sensing component 2.
[0052] The self-learning mode has multiple states, including but not limited to learning state, successful learning completion state, and failed learning completion state. In self-learning mode, a first indicator device identifies these various states, allowing users or on-site maintenance personnel to clearly understand their different statuses.
[0053] In one embodiment, the first indicator is a first light indicator. For example, the first indicator is a sensor indicator light of the sensing component 2 and / or a tabletop indicator light 3.
[0054] When the liquid dispenser exits the self-learning mode, and the distance between the reference object and the sensing component is less than or equal to the sensing distance, the liquid dispensing element 1 of the liquid dispenser dispenses liquid.
[0055] When a user requests distance sensing, step S102 is triggered. For example, if the user presses the distance sensing button or briefly presses the self-learning button, a distance sensing request is generated, triggering step S102.
[0056] In the sensing distance measurement mode, the detection distance between the reference object and the sensing component is obtained, the detection distance is compared with the sensing distance, and the comparison result of the detection distance and the sensing distance is marked by the second indicator device.
[0057] In one embodiment, the second indicator is a second light indicator.
[0058] For example, the second indicator is the sensor indicator light of the sensing component 2 and / or the tabletop indicator light 3.
[0059] As the sinks that the dispensing device needs to be matched with become increasingly complex, users or maintenance personnel provide reference objects, such as circuit boards, during the self-learning process to help the dispensing device determine its sensing distance. However, due to the complexity of sinks, there may be protruding objects, and other items may also be placed next to the dispensing device. Therefore, these objects may cause interference during the self-learning process, resulting in the dispensing device learning an insufficient sensing distance.
[0060] Therefore, by providing a sensing distance measurement mode, users, installers, or maintenance personnel can place a reference object, such as a circuit board, at the corresponding location of the sensing element to determine the detection distance between the reference object and the sensing element. The second indicator device then displays the comparison result between the detected distance and the sensing distance. Users, installers, or maintenance personnel can determine whether the sensing distance is set correctly based on the actual distance between the reference object and the sensing element. For example, if the second indicator device indicates a discrepancy between the detected distance and the sensing distance when the reference object is placed at what the user, installer, or maintenance personnel perceive as the sensing distance, then the sensing distance is considered incorrectly set. If the second indicator device indicates a consistent detected distance and the sensing distance, then the sensing distance is considered correctly set.
[0061] This invention uses a first indicating device to indicate the state of the self-learning mode, and adds a sensing distance measurement mode. A second indicating device indicates the comparison result between the distance between the reference object and the sensing component and the sensing distance. This allows users to understand the state of the self-learning mode during the self-learning process of the dispensing device, and to determine the distance between the reference object and the sensing component through the sensing distance measurement mode. This helps determine whether the sensing distance setting is correct, providing intuitive judgment for users and maintenance personnel for on-site testing and fault location, and reducing maintenance costs.
[0062] like Figure 3 The diagram shown is a flowchart of a self-learning method for dispensing device sensing distance according to another embodiment of the present invention, including:
[0063] Step S301: In response to a self-learning request or a self-learning instruction sent from the cloud, enter self-learning mode; otherwise, exit.
[0064] Step S302: In self-learning mode, determine the closest distance between the reference object and the sensing component, and use the value of the closest distance minus the preset retraction distance as the sensing distance and save it. The sensing distance is used by the dispensing device to dispense liquid when the distance between the reference object and the sensing component is less than or equal to the sensing distance when the device is in working state.
[0065] Execute step S303 to determine the current state of the self-learning mode and obtain the first lighting effect corresponding to the current state.
[0066] In one embodiment, the self-learning mode includes entering a learning state, learning in progress, learning successfully completed, and learning failed to complete.
[0067] Specifically, a table mapping self-learning modes to the first lighting effect can be pre-saved. Once the current state of the self-learning mode is determined, the corresponding first lighting effect can be retrieved from the table.
[0068] Step S304: Control the first light indicator device to display the first lighting effect.
[0069] Step S305: In response to the ranging request, enter the ranging mode;
[0070] Step S306: In the sensing distance measurement mode, obtain the detection distance between the reference object and the sensing component.
[0071] Step S307: Compare the detection distance with the sensing distance, and determine the second lighting effect corresponding to the comparison result.
[0072] In one embodiment, comparing the detection distance with the sensing distance and determining the second lighting effect corresponding to the comparison result specifically includes:
[0073] Compare the detection distance with the sensing distance;
[0074] If the detection distance is greater than the sum of the sensing distance and the preset distance threshold, then the corresponding second lighting effect is the off lighting effect;
[0075] If the detection distance is less than or equal to the sum of the sensing distance and a preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect;
[0076] If the detection distance is less than or equal to the sensing distance, the corresponding second lighting effect is a continuous lighting effect.
[0077] In one embodiment, if the detection distance is less than or equal to the sum of the sensing distance and a preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect, specifically including:
[0078] If the detection distance is less than or equal to the sum of the sensing distance and the preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect, and the flashing speed of the flashing lighting effect corresponding to the smaller detection distance is greater than or equal to the flashing speed of the flashing lighting effect corresponding to the larger detection distance.
[0079] Step S308: Control the second light indicator device to display the second lighting effect.
[0080] Specifically, this patented technical solution adds self-learning and distance sensing functions to a conventional liquid dispenser. A self-learning button and an indicator are added to the dispenser. The dispenser is preferably a soap dispenser. The indicator is preferably a light-emitting diode (LED) light.
[0081] The self-learning function of the dispensing device in this embodiment is linked to a mobile application (APP) and the cloud. It can provide assistance when the user cannot operate the self-learning button and can also provide diagnostic services when the dispensing device malfunctions. Step S301 is triggered when the user, installer, or maintenance personnel press and hold the self-learning button or click the self-learning button in the APP. Alternatively, when the administrator activates the self-learning function of the dispensing device through the cloud, a self-learning command is sent to the dispensing device, triggering step S301. The cloud can be a cloud server. The cloud can record the unique identifier (ID) of the dispensing device and bind it to the dispensing device's network identifier, such as an IP address. The cloud can then select the unique identifier of the dispensing device and send a self-learning command to the dispensing device through the associated network identifier.
[0082] In one embodiment, after the liquid dispenser completes its self-learning process, it reports the learning results, including the sensing distance, to the cloud, enabling remote assistance and diagnosis, and bringing great convenience to the user.
[0083] Meanwhile, since self-learning can only begin when the administrator issues permission for self-learning via the cloud, the permission to start self-learning is held by the cloud administrator, which greatly reduces the inconvenience caused by users accidentally triggering the self-learning function when using the self-learning button or the APP.
[0084] In self-learning mode, steps S302 and S303 are executed simultaneously. When step S302 is executed, the closest distance between the reference object and the sensing component is determined, and the value obtained by subtracting a preset retraction distance from this closest distance is used as the sensing distance and saved. The retraction distance is the preset distance. During self-learning, there may be some unnoticed obstacles in the surrounding environment. If these obstacles are between the reference object and the sensing component, the closest distance obtained through self-learning may not actually be the closest distance between the reference object and the sensing component, but rather the closest distance between the unnoticed obstacle and the sensing component. Therefore, if the closest distance is directly used as the sensing distance, due to the inherent error in the sensing distance of the sensing component, obstacles may repeatedly trigger the sensing component, causing a critical sensing phenomenon.
[0085] In this embodiment, the closest distance is subtracted from the retraction distance, and the retraction distance is used to offset the sensing distance error, thereby avoiding the above-mentioned critical sensing phenomenon.
[0086] When the liquid dispenser enters the self-learning mode, steps S303 and S304 control the first light indicator device to display the current status of the self-learning mode.
[0087] The self-learning mode includes a learning state, a successful learning completion state, and a failed learning completion state. As an example, the dispenser is a soap dispenser. The first indicator light is as follows: Figure 2 The tabletop indicator light 3 and the sensor indicator light of the sensing element 2 shown both have red and blue lights.
[0088] Table 1. Correspondence between Lighting and Self-Learning Mode States
[0089]
[0090]
[0091] Table 1 shows the various first lighting effects. When the red light is on for time t1, it indicates that the learning mode has been entered, and the current state is "entering the learning state." During the learning process, i.e., in the learning state, the red light flashes twice per second to indicate that learning is in progress. When the learning process ends, if the learning is successful (i.e., the learning is successfully completed), the blue light on the tabletop indicator 3 of the dispensing device will be on for time t1, and the light on the sensing component 2 will automatically turn off. If the learning fails (i.e., the learning is unsuccessful), the red light on the tabletop indicator 3 of the dispensing device will remain on, the light on the sensing component 2 will remain on, the sensing function will be turned off, and the dispensing device will report the learning results to the cloud.
[0092] like Figure 4 The diagram shown is a flowchart of the self-learning mode of a self-learning method for dispensing device sensing distance according to a preferred embodiment of the present invention, including:
[0093] Step S401: Long press of the self-learning button is detected;
[0094] Step S402: Enter self-learning mode. The red light of the sensor indicator light will illuminate for two seconds, and the red light of the tabletop indicator light 3 will illuminate for two seconds.
[0095] In step S403, during the learning process, the red lights of the sensor indicator and the red light of the platform indicator 3 flash.
[0096] Step S404: Determine whether the current environment meets the conditions. If it does, proceed to step S405; otherwise, proceed to step S406.
[0097] Step S405: Report the successful learning result to the cloud, and the blue light of the desktop indicator 3 will light up for time t1.
[0098] In step S406, the learning failure result is reported to the cloud, and the red light of the tabletop indicator 3 and the sensor indicator light remain lit.
[0099] When the user, installer, or maintenance personnel briefly press the self-learning button, step S305 is triggered, and the dispensing device enters the sensing distance measurement mode. At this time, the blue light on the dispensing device's platform indicator 3 flashes once, and the light on the sensing component 2 flashes once to indicate that the sensing distance measurement mode has been entered. Step S306 is then executed to obtain the detection distance between the reference object and the sensing component. Steps S307 and S308 are then executed to compare the detected distance with the sensing distance, and the second light indicator device is controlled to display the corresponding second lighting effect based on the comparison result.
[0100] As an example, the second light indicator device is the blue light of the dispensing device's tabletop indicator 3 and the sensor indicator light of the sensing element 2. The flashing patterns of the dispensing device's tabletop indicator 3 and the sensor indicator light of the sensing element 2 will provide different indications depending on the position of the reference object at different distances from the sensing component, as shown in Table 2.
[0101] Table 2 Correspondence between light and reference object detection distances
[0102]
[0103]
[0104] As shown in Table 2, the effective sensing area is the region between the sensing distance and the sensing element. The first frequency is greater than the second frequency. The first distance threshold is less than the second distance threshold. If the reference object is outside the effective sensing area plus the second distance threshold, the blue light of the tabletop indicator 3 will turn off. If the reference object is within the effective sensing area plus the second distance threshold, the blue light of the tabletop indicator 3 will flash, and the closer the reference object is to the sensing element, the faster the blue light of the tabletop indicator 3 flashes. Once it enters the effective sensing area, the blue light of the tabletop indicator 3 will remain constantly lit. Through different lighting effects and different flashing frequencies, users and installers can easily determine the current sensing area and whether the current installation location is suitable.
[0105] Among them, the tabletop indicator light 3 is located on the part of the liquid dispenser near the tabletop. When the light is on, the user can easily judge the current status.
[0106] like Figure 5 The diagram shown is a flowchart of the sensing distance measurement mode of a self-learning method for dispensing device sensing distance according to the preferred embodiment of the present invention, including:
[0107] Step S501: A short press of the self-learning button is detected;
[0108] Step S502: Enter the sensing and ranging mode. The red light of the sensor indicator and the blue light of the platform indicator 3 will flash once.
[0109] Step S503: Detect the reference object;
[0110] Step S504: Based on the test distance between the reference object and the sensing element 2, perform the following:
[0111] Step S505: If the test distance is greater than the effective sensing area plus the preset second distance threshold, the red light of the sensor indicator and the blue light of the table indicator 3 will turn off.
[0112] Step S506: If the test distance is less than or equal to the effective sensing area + preset second distance threshold range, but greater than the effective sensing area + preset first distance threshold range, the red light of the sensor indicator and the blue light of the table indicator 3 will flash slowly.
[0113] Step S507: If the test distance is less than or equal to the effective sensing area plus the preset first distance threshold range, but greater than the effective sensing area, the red light of the sensor indicator and the blue light of the table indicator 3 will flash rapidly.
[0114] In step S508, if the test distance is within the effective sensing area, the red light of the sensor indicator and the blue light of the table indicator 3 will remain on.
[0115] This embodiment adds a self-learning and sensing test mode, interacting with customers during the installation and use of the dispensing device and providing better customer care. The self-learning function on the dispensing device automatically adjusts the sensing distance according to different on-site environments and introduces the concept of retraction distance to avoid critical sensing phenomena. After learning, it provides a result indicating whether the learning was successful and reports the sensing distance value, giving on-site installers and maintenance personnel more intuitive and accurate data. Simultaneously, the sensing distance measurement mode facilitates on-site testing; the indicator light flashes more frequently as the object gets closer to the sensor, remaining constantly lit once within the sensing distance, providing convenience and clear reminders and instructions for on-site installers and maintenance personnel.
[0116] like Figure 6 The diagram shown is a hardware structure schematic of an electronic device according to the present invention, comprising:
[0117] At least one processor 601; and,
[0118] A memory 602 is communicatively connected to at least one of the processors 601; wherein,
[0119] The memory 602 stores instructions that can be executed by at least one of the processors to enable the at least one processor to perform the dispensing device sensing distance self-learning method as described above.
[0120] Figure 6 Take the 601 processor as an example.
[0121] The electronic device may also include an input device 603 and a display device 604.
[0122] The processor 601, memory 602, input device 603 and display device 604 can be connected by a bus or other means. The figure shows an example of connection by a bus.
[0123] The memory 602, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the self-learning method for the dispensing device sensing distance in the embodiments of this application, for example, Figure 1 The method flow is shown. The processor 601 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules stored in the memory 602, thereby realizing the self-learning method for the liquid dispenser sensing distance in the above embodiment.
[0124] Memory 602 may include a program storage area and a data storage area. The program storage area may store an operating system and an application program required for at least one function. The data storage area may store data created based on the use of the dispensing device sensing distance self-learning method. Furthermore, memory 602 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 602 may optionally include memory remotely located relative to processor 601, and this remote memory may be connected via a network to the apparatus performing the dispensing device sensing distance self-learning method. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0125] The input device 603 can receive user clicks and generate signal inputs related to user settings and function control for the self-learning method of the dispensing device's sensing distance. The display device 604 may include a display screen or other display equipment.
[0126] When one or more modules are stored in the memory 602, and are run by one or more processors 601, the self-learning method for dispensing device sensing distance in any of the above method embodiments is executed.
[0127] This invention uses a first indicating device to indicate the state of the self-learning mode, and adds a sensing distance measurement mode. A second indicating device indicates the comparison result between the distance between the reference object and the sensing component and the sensing distance. This allows users to understand the state of the self-learning mode during the self-learning process of the dispensing device, and to determine the distance between the reference object and the sensing component through the sensing distance measurement mode. This helps determine whether the sensing distance setting is correct, providing intuitive judgment for users and maintenance personnel for on-site testing and fault location, and reducing maintenance costs.
[0128] One embodiment of the present invention provides a storage medium that stores computer instructions, which, when executed by a computer, are used to perform all the steps of the self-learning method for dispensing device sensing distance as described above.
[0129] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A self-learning method for sensing distance of a liquid dispenser, characterized in that, include: In response to a self-learning request, the device enters a self-learning mode. In this mode, the device determines the closest distance between the reference object and the sensing component, determines and saves the sensing distance based on the closest distance, and simultaneously indicates the state of the self-learning mode through a first indicator device. The sensing distance is used when the dispenser is in operation and dispenses liquid when the distance between the reference object and the sensing component is less than or equal to the sensing distance. In response to a sensing distance request, the system enters a sensing distance mode. In this mode, the system acquires the detection distance between the reference object and the sensing component, compares the detection distance with the sensing distance, and uses a second indicator device to display the comparison result. The second indicating device is a second light indicating device. The process of acquiring the detection distance between the reference object and the sensing component, comparing the detection distance with the sensing distance, and indicating the comparison result of the detection distance and the sensing distance through the second indicating device specifically includes: Obtain the detection distance between the reference object and the sensing component; The detection distance is compared with the sensing distance, and a second lighting effect corresponding to the comparison result is determined based on the comparison result; Control the second light indicator device to display the second lighting effect.
2. The self-learning method for dispensing device sensing distance according to claim 1, characterized in that, The first indicator is a first light indicator, and the step of identifying the self-learning mode state through the first indicator specifically includes: Determine the current state of the self-learning mode and obtain the first lighting effect corresponding to the current state; Control the first light indicator device to display the first lighting effect.
3. The self-learning method for dispensing device sensing distance according to claim 2, characterized in that, The self-learning modes include entering the learning state, learning in progress, successful learning completion, and failed learning completion.
4. The self-learning method for dispensing device sensing distance according to claim 1, characterized in that, The step of comparing the detection distance with the sensing distance and determining the second lighting effect corresponding to the comparison result specifically includes: Compare the detection distance with the sensing distance; If the detection distance is greater than the sum of the sensing distance and the preset distance threshold, then the corresponding second lighting effect is the off lighting effect; If the detection distance is less than or equal to the sum of the sensing distance and a preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect; If the detection distance is less than or equal to the sensing distance, the corresponding second lighting effect is a continuous lighting effect.
5. The self-learning method for dispensing device sensing distance according to claim 4, characterized in that, If the detection distance is less than or equal to the sum of the sensing distance and a preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect, specifically including: If the detection distance is less than or equal to the sum of the sensing distance and the preset distance threshold, but greater than the sensing distance, then the corresponding second lighting effect is a flashing lighting effect, and the flashing speed of the flashing lighting effect corresponding to the smaller detection distance is greater than or equal to the flashing speed of the flashing lighting effect corresponding to the larger detection distance.
6. The self-learning method for dispensing device sensing distance according to claim 1, characterized in that, Also includes: In response to the self-learning command sent from the cloud, it enters self-learning mode.
7. The self-learning method for dispensing device sensing distance according to claim 1, characterized in that, The step of determining the sensing distance based on the nearest distance specifically includes: The sensing distance is the value obtained by subtracting the preset retraction distance from the nearest distance.
8. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by at least one of the processors, which enable the at least one processor to perform the self-learning method for dispensing device sensing distance as described in any one of claims 1 to 7.
9. A storage medium, characterized in that, The storage medium stores computer instructions, which, when executed by the computer, are used to perform all the steps of the self-learning method for dispensing device sensing distance as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Tap switch assembly and infrared sensing tap
CN104265976A