A water output control method and related device for a vehicle-mounted instant hot water dispenser

By processing and analyzing the acceleration data of the on-board instant hot water dispenser and adjusting the working status of the pump water part, the problem of water spilling during vehicle movement is solved, and the intelligence and safety of water outlet control is improved.

CN119423563BActive Publication Date: 2025-04-25SHENZHEN YANWAI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510025005.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-04-25
Estimated Expiration
2045-01-08

AI Technical Summary

Technical Problem

Car water dispensers can easily cause water to spill when the vehicle moves, causing users to burn, and the safety of water outlet after heating is poor.

Method used

By performing absolute value processing and sliding window summing operations on the acceleration data of the vehicle-mounted hot water dispenser, the data is analyzed to determine the static or moving state of the vehicle, and the working state of the pump water part is adjusted to achieve water outlet control.

Benefits of technology

It improves the intelligence and accuracy of the water outlet control of the on-board instant hot water dispenser, reduces the risk of water spilling, and enhances user safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119423563B_ABST
    Figure CN119423563B_ABST
Patent Text Reader

Abstract

The present application provides a method and related device for controlling water output of an on-board instant hot water dispenser, the method comprising: obtaining first acceleration data, determining pre-processed second acceleration data, determining the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data, performing a sliding window summation operation to obtain fourth acceleration data, and adjusting the start state of the water pump according to the fourth acceleration data. The embodiment of the present application performs absolute value processing and sliding window summation operations on the collected acceleration data to obtain fourth acceleration data, enhances data separation, and then analyzes the fourth acceleration data to determine whether to adjust the working state of the water pump, thereby analyzing the collected acceleration data to determine whether the vehicle is in a stationary state or a moving state, and adjusting the working state of the water pump, thereby realizing water output control of the water dispenser, which is beneficial to improving the intelligence and accuracy of water output control of the on-board instant hot water dispenser.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle-mounted water dispensers, and specifically relates to a water output control method and related devices of a vehicle-mounted instant hot water dispenser. Background Art

[0002] At present, water dispensers are widely used in vehicles, and realize the heating function when powered by the vehicle-side power supply. However, when users use the vehicle-mounted water dispenser while the vehicle is in motion, it is easy to cause the water in the vehicle-mounted water dispenser to splash, thereby scalding the user, making the safety of the water discharged by the vehicle-mounted water dispenser after heating poor. Summary of the invention

[0003] The embodiment of the present application provides a water outlet control method and related devices for a vehicle-mounted instant hot water dispenser. The fourth acceleration data is obtained by performing absolute value processing on the collected acceleration data and performing a sliding window summation operation to enhance the data separation. The fourth acceleration data is then analyzed to determine whether to adjust the working state of the water pumping part. The collected acceleration data is analyzed to determine whether the vehicle is in a stationary state or a moving state, and the working state of the water pumping part is adjusted, thereby realizing water outlet control of the water dispenser, which is beneficial to improving the intelligence and accuracy of the water outlet control of the vehicle-mounted instant hot water dispenser.

[0004] In a first aspect, an embodiment of the present application provides a method for controlling water output of a vehicle-mounted instant hot water dispenser, the method comprising:

[0005] Acquire first acceleration data from an acceleration sensor of the vehicle-mounted instant hot water dispenser, wherein the first acceleration data includes a plurality of first acceleration values ​​of an X-axis, a plurality of second acceleration values ​​of a Y-axis, and a plurality of third acceleration values ​​of a Z-axis;

[0006] Preprocessing the first acceleration data to obtain preprocessed second acceleration data;

[0007] Determine the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data;

[0008] Starting from the first time point, performing a sliding window summation operation on a plurality of fourth acceleration values ​​of the X axis, a plurality of fifth acceleration values ​​of the Y axis, and a plurality of sixth acceleration values ​​of the Z axis in the third acceleration data in the time domain to obtain fourth acceleration data, wherein the fourth acceleration data includes a plurality of seventh acceleration values ​​of the X axis, a plurality of eighth acceleration values ​​of the Y axis, and a plurality of ninth acceleration values ​​of the Z axis;

[0009] If it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval, or any of the eighth acceleration values ​​does not fall within the second preset value interval, or any of the ninth acceleration values ​​does not fall within the third preset value interval, it is determined that the start state of the water pump part in the vehicle-mounted instant hot water dispenser is adjusted to the closed state.

[0010] In a second aspect, an embodiment of the present application provides a water outlet control device for a vehicle-mounted instant hot water dispenser, the water outlet control device for the vehicle-mounted instant hot water dispenser comprising: an acquisition unit, a processing unit and a determination unit, wherein:

[0011] The acquisition unit is used to acquire first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, wherein the first acceleration data includes a plurality of first acceleration values ​​of the X-axis, a plurality of second acceleration values ​​of the Y-axis, and a plurality of third acceleration values ​​of the Z-axis;

[0012] The processing unit is used to preprocess the first acceleration data to obtain preprocessed second acceleration data;

[0013] The determining unit is used to determine the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data;

[0014] The processing unit is further configured to perform a sliding window summation operation on a plurality of fourth acceleration values ​​of the X axis, a plurality of fifth acceleration values ​​of the Y axis, and a plurality of sixth acceleration values ​​of the Z axis in the third acceleration data in the time domain starting from the first time point, to obtain fourth acceleration data, wherein the fourth acceleration data includes a plurality of seventh acceleration values ​​of the X axis, a plurality of eighth acceleration values ​​of the Y axis, and a plurality of ninth acceleration values ​​of the Z axis;

[0015] The determination unit is further used to determine that the start state of the water pump part in the vehicle-mounted instant hot water dispenser is adjusted to the closed state if it is determined that any of the seventh acceleration values ​​does not fall within the first preset numerical interval, or any of the eighth acceleration values ​​does not fall within the second preset numerical interval, or any of the ninth acceleration values ​​does not fall within the third preset numerical interval.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the third aspect of the embodiment of the present application.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implement the steps in the first aspect of the embodiment of the present application.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.

[0019] It can be seen that in the embodiment of the present application, first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser is obtained, the first acceleration data includes multiple first acceleration values ​​of the X-axis, multiple second acceleration values ​​of the Y-axis, and multiple third acceleration values ​​of the Z-axis. Then, the first acceleration data is preprocessed to obtain the preprocessed second acceleration data, and then the absolute value of each acceleration value in the second acceleration data is determined to obtain the third acceleration data. Further, starting from the first time point, a sliding window summation operation is performed on the multiple fourth acceleration values ​​of the X-axis, the multiple fifth acceleration values ​​of the Y-axis, and the multiple sixth acceleration values ​​of the Z-axis in the third acceleration data in the time domain to obtain the fourth acceleration data. The fourth acceleration data includes multiple seventh acceleration values ​​of the X-axis, multiple eighth acceleration values ​​of the Y-axis, and multiple ninth acceleration values ​​of the Z-axis. Finally, if it is determined that any seventh acceleration value does not fall into the first preset value interval or any eighth acceleration value does not fall into the second preset value interval or any ninth acceleration value does not fall into the third preset value interval, it is determined to adjust the start state of the water pump unit to the closed state. By performing absolute value processing on the collected acceleration data and performing a sliding window summation operation, the fourth acceleration data is obtained, and the data separation between the acceleration data collected under the first reference condition of the target vehicle and the acceleration data collected under the second reference condition of the target vehicle is enhanced. Then, the fourth acceleration data is analyzed to determine whether to adjust the working state of the water pump part, so that the collected acceleration data is analyzed to determine whether the vehicle is in a stationary state or a moving state, and the working state of the water pump part is adjusted, thereby realizing the water outlet control of the water dispenser, which is beneficial to improving the intelligence and accuracy of the water outlet control of the on-board instant hot water dispenser. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 It is a schematic diagram of the architecture of a vehicle-mounted instant hot water dispenser provided in an embodiment of the present application;

[0022] Figure 2It is a schematic diagram of the architecture of an on-vehicle instant hot water system provided in an embodiment of the present application;

[0023] Figure 3 It is a flow chart of a water output control method of a vehicle-mounted instant hot water dispenser provided in an embodiment of the present application;

[0024] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0025] Figure 5 This is a block diagram of the functional units of a water outlet control device for a vehicle-mounted instant hot water dispenser provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0029] In the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent the following three situations: A exists alone; A and B exist at the same time; B exists alone. Among them, A and B can be singular or plural.

[0030] In the embodiment of the present application, the symbol " / " can indicate that the objects associated with each other are in an "or" relationship. In addition, the symbol " / " can also indicate a division sign, that is, performing a division operation. For example, A / B can indicate A divided by B.

[0031] In the embodiments of the present application, "at least one item" or similar expressions refer to any combination of these items, including any combination of single items or plural items, and refer to one or more, and multiple refers to two or more. For example, at least one item of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.

[0032] In the embodiments of the present application, "equal to" can be used in conjunction with greater than, and is applicable to the technical solution adopted when greater than, and can also be used in conjunction with less than, and is applicable to the technical solution adopted when less than. When equal to is used in conjunction with greater than, it is not used in conjunction with less than; when equal to is used in conjunction with less than, it is not used in conjunction with greater than.

[0033] In order to better understand the solutions of the embodiments of the present application, the electronic devices, related concepts and backgrounds that may be involved in the embodiments of the present application are first introduced below.

[0034] The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), electronic devices (terminal devices), etc. For the convenience of description, the above-mentioned devices are collectively referred to as electronic devices. The electronic device may also be a controller of a vehicle-mounted instant hot water dispenser, or a control device of a target vehicle.

[0035] See also Figure 1 , Figure 1 Schematic diagram of the structure of a vehicle-mounted instant hot water dispenser provided in an embodiment of the present application. Figure 1 As shown, the vehicle-mounted instant hot water dispenser 10 includes a controller 11 and an acceleration sensor 12 , and the controller 11 is connected to the acceleration sensor 12 .

[0036] The vehicle-mounted instant hot water dispenser 10 includes a top cover, a water tank and a cup body. The acceleration sensor 12 can be arranged inside the top cover or at other locations, which is not limited here.

[0037] The acceleration sensor 12 is used to collect acceleration data of the vehicle-mounted instant hot water dispenser 10 and send the acceleration data to the controller 11 of the vehicle-mounted instant hot water dispenser 10 .

[0038] Specifically, the acceleration sensor 12 collects acceleration data of the X-axis, Y-axis, and Z-axis of the vehicle-mounted instant hot water dispenser 10. The X-axis is the axis in the front-to-back direction, the Y-axis is the axis in the left-to-right direction, and the Z-axis is the axis in the up-down direction.

[0039] Among them, the cup body includes a water pump part and a heating component. The water pump part can send water into the heating component when it is started, and send the water heated by the heating component to the water outlet of the vehicle-mounted instant hot water dispenser 10. When the water pump part is in a closed state, the water cannot be sent to the heating component for heating, and there is no power to reach the water outlet. Therefore, the water outlet control of the vehicle-mounted instant hot water dispenser 10 can be achieved by controlling the working state of the water pump part.

[0040] In a possible example, the controller 11 first obtains first acceleration data from the acceleration sensor 12 of the vehicle-mounted instant hot water dispenser 10, the first acceleration data including a plurality of first acceleration values ​​of the X-axis, a plurality of second acceleration values ​​of the Y-axis, and a plurality of third acceleration values ​​of the Z-axis. The controller 11 then preprocesses the first acceleration data to obtain preprocessed second acceleration data, and then determines the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data. Further, the controller 11 respectively performs a plurality of acceleration values ​​of the X-axis in the third acceleration data from the first time point. The fourth acceleration value, multiple fifth acceleration values ​​of the Y-axis and multiple sixth acceleration values ​​of the Z-axis are subjected to a sliding window summation operation in the time domain to obtain fourth acceleration data, and the fourth acceleration data includes multiple seventh acceleration values ​​of the X-axis, multiple eighth acceleration values ​​of the Y-axis and multiple ninth acceleration values ​​of the Z-axis. Finally, if the controller 11 determines that any seventh acceleration value does not fall within the first preset value interval or any eighth acceleration value does not fall within the second preset value interval or any ninth acceleration value does not fall within the third preset value interval, it determines to adjust the startup state of the water pump part to the closed state. By performing absolute value processing on the collected acceleration data and performing a sliding window summation operation, the fourth acceleration data is obtained, and the data separation between the acceleration data collected under the first reference condition of the target vehicle and the acceleration data collected under the second reference condition of the target vehicle is enhanced. Then, the fourth acceleration data is analyzed to determine whether to adjust the working state of the water pump part, so that the collected acceleration data is analyzed to determine whether the vehicle is in a stationary state or a moving state, and the working state of the water pump part is adjusted, thereby realizing the water outlet control of the water dispenser, which is beneficial to improving the intelligence and accuracy of the water outlet control of the on-board instant hot water dispenser.

[0041] See also Figure 2 , Figure 2 Schematic diagram of the architecture of a vehicle-mounted instant hot water system provided in an embodiment of the present application. Figure 2As shown, the vehicle-mounted instant hot water drinking system 1 includes a vehicle-mounted instant hot water drinking machine 10 and a vehicle control system 20 . The vehicle-mounted instant hot water drinking machine 10 includes an acceleration sensor 12 , and the acceleration sensor 12 is connected to the vehicle control system 20 .

[0042] The acceleration sensor 12 is used to collect acceleration data of the vehicle-mounted instant hot water dispenser 10 and send the acceleration data to the vehicle control system 20 .

[0043] In a possible example, the vehicle control system 20 first obtains first acceleration data from the acceleration sensor 12 of the vehicle-mounted instant hot water dispenser 10, the first acceleration data including a plurality of first acceleration values ​​of the X-axis, a plurality of second acceleration values ​​of the Y-axis, and a plurality of third acceleration values ​​of the Z-axis. The vehicle control system 20 then preprocesses the first acceleration data to obtain preprocessed second acceleration data, and then determines the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data. Further, the vehicle control system 20 respectively performs X-axis acceleration on the third acceleration data from the first time point. The fourth acceleration data is obtained by performing a sliding window summation operation on the time domain for the multiple fourth acceleration values ​​of the X axis, the multiple fifth acceleration values ​​of the Y axis, and the multiple sixth acceleration values ​​of the Z axis. The fourth acceleration data includes multiple seventh acceleration values ​​of the X axis, multiple eighth acceleration values ​​of the Y axis, and multiple ninth acceleration values ​​of the Z axis. Finally, if the vehicle control system 20 determines that any seventh acceleration value does not fall into the first preset value interval or any eighth acceleration value does not fall into the second preset value interval or any ninth acceleration value does not fall into the third preset value interval, it is determined to adjust the start state of the water pumping unit to the off state. The fourth acceleration data is obtained by performing absolute value processing on the collected acceleration data and performing a sliding window summation operation to enhance the data separation degree. Then, the fourth acceleration data is analyzed to determine whether to adjust the working state of the water pumping unit, so as to analyze the collected acceleration data to obtain whether the vehicle is in a stationary state or a moving state, and adjust the working state of the water pumping unit, thereby realizing the water outlet control of the water dispenser, which is conducive to improving the intelligence and accuracy of the water outlet control of the vehicle-mounted instant hot water dispenser.

[0044] See also Figure 3 , Figure 3 : is a flow chart of a water output control method of a vehicle-mounted instant hot water dispenser provided in an embodiment of the present application, the method comprising:

[0045] Step S301, obtaining first acceleration data from an acceleration sensor of the vehicle-mounted instant hot water dispenser, wherein the first acceleration data includes a plurality of first acceleration values ​​of the X-axis, a plurality of second acceleration values ​​of the Y-axis, and a plurality of third acceleration values ​​of the Z-axis.

[0046] Among them, the first acceleration data is the acceleration data of the vehicle-mounted instant hot water dispenser under the current working condition.

[0047] Before step S301, when it is detected that the vehicle-mounted instant hot water dispenser is in the startup state, the acceleration sensor can be controlled to collect the acceleration of the vehicle-mounted instant hot water dispenser from the second time point. The second time point is greater than or equal to the fourth time point when the water pump part is started.

[0048] Among them, the X-axis can be the axis of the front-to-back direction of the vehicle-mounted instant hot water dispenser, the Y-axis can be the axis of the left-to-right direction of the vehicle-mounted instant hot water dispenser, and the Z-axis can be the axis of the up-down direction of the vehicle-mounted instant hot water dispenser.

[0049] Step S302: preprocess the first acceleration data to obtain preprocessed second acceleration data.

[0050] Among them, there will be some abnormal values ​​in the first acceleration data that need to be cleared. At the same time, the first acceleration data will include data in the startup phase of the water pump part, and this part of the data also needs to be removed.

[0051] Specifically, the first acceleration data is preprocessed to obtain preprocessed second acceleration data, including: removing the acceleration value of the first acceleration data in the interval between the second time point and the third time point to obtain fourth acceleration data, the third time point being the time point at which the start-up phase of the water pumping unit ends, and the second time point being greater than or equal to the fourth time point at which the water pumping unit starts; clearing abnormal values ​​in the fourth acceleration data to obtain preprocessed second acceleration data.

[0052] The outlier value refers to an abnormally high acceleration value or an acceleration value of 0 in the acceleration data.

[0053] Step S303: determine the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data.

[0054] Step S304, starting from the first time point, respectively perform a sliding window summation operation on the multiple fourth acceleration values ​​of the X-axis, the multiple fifth acceleration values ​​of the Y-axis, and the multiple sixth acceleration values ​​of the Z-axis in the third acceleration data in the time domain to obtain fourth acceleration data, wherein the fourth acceleration data includes the multiple seventh acceleration values ​​of the X-axis, the multiple eighth acceleration values ​​of the Y-axis, and the multiple ninth acceleration values ​​of the Z-axis.

[0055] Among them, the first time node is greater than or equal to the third time point.

[0056] Among them, each window corresponds to a sampled acceleration value, and the number of windows for a single sliding window summation operation can be preset and is not limited here. The number of sliding windows each time is 1, for example, the acceleration values ​​of 5 windows can be summed, or the acceleration values ​​of 3 windows can be summed.

[0057] Among them, the data separation is enhanced through absolute value processing and sliding window summation processing, so as to better analyze the motion state and stationary state of the target vehicle based on the acceleration data, thereby controlling the water pump part to stop working when the target vehicle is in a motion state, and controlling the water pump part to start when the vehicle is stationary.

[0058] Step S305, if it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval or any of the eighth acceleration values ​​does not fall within the second preset value interval or any of the ninth acceleration values ​​does not fall within the third preset value interval, it is determined to adjust the start state of the water pump part in the vehicle-mounted instant hot water dispenser to the closed state.

[0059] The water pumping unit may be a water pump.

[0060] Among them, when it is judged that any seventh acceleration value does not fall into the first preset value interval, it means that there is a large acceleration in the front and rear directions of the vehicle-mounted instant hot water dispenser, and the vehicle is in motion, for example, the target vehicle is accelerating forward, the target vehicle is decelerating, the target vehicle is reversing, etc., any eighth acceleration value does not fall into the second preset value interval, indicating that there is a large acceleration in the left and right directions of the vehicle-mounted instant hot water dispenser, and the vehicle is in motion, for example, the target vehicle turns left or right, and any ninth acceleration value does not fall into the third preset value interval, indicating that there is a large acceleration in the upper and lower directions of the vehicle-mounted instant hot water dispenser, and the vehicle is in motion, for example, the target vehicle has a large bump. In the above-mentioned cases, if the water pump part of the vehicle-mounted instant hot water dispenser continues to be started, there will be a situation where water is splashed, and the risk of scalding the user is relatively high. At this time, the water pump part can be controlled to be closed, and the heating component can be closed at the same time to stop heating.

[0061] The first preset interval, the second preset interval and the third preset interval may be preset and are not limited here.

[0062] Optionally, status information about the vehicle status in the vehicle system may be obtained. If the status information shows that the vehicle is in motion, it is determined that the water pumping part is in a closed state. If the status information shows that the vehicle is stationary, it is determined that the water pumping part is in an open state.

[0063] It can be seen that in this example, firstly, the first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser is obtained, and the first acceleration data includes a plurality of first acceleration values ​​of the X-axis, a plurality of second acceleration values ​​of the Y-axis, and a plurality of third acceleration values ​​of the Z-axis. Then, the first acceleration data is preprocessed to obtain the preprocessed second acceleration data, and then the absolute value of each acceleration value in the second acceleration data is determined to obtain the third acceleration data. Further, starting from the first time point, a plurality of fourth acceleration values ​​of the X-axis, a plurality of fifth acceleration values ​​of the Y-axis, and a plurality of sixth acceleration values ​​of the Z-axis in the third acceleration data are respectively subjected to a sliding window summation operation in the time domain to obtain the fourth acceleration data, and the fourth acceleration data includes a plurality of seventh acceleration values ​​of the X-axis, a plurality of eighth acceleration values ​​of the Y-axis, and a plurality of ninth acceleration values ​​of the Z-axis. Finally, if it is determined that any seventh acceleration value does not fall into the first preset value interval or any eighth acceleration value does not fall into the second preset value interval or any ninth acceleration value does not fall into the third preset value interval, it is determined that the start state of the water pumping unit is adjusted to the closed state. By performing absolute value processing on the collected acceleration data and performing a sliding window summation operation, the fourth acceleration data is obtained, and the data separation between the acceleration data collected under the first reference condition of the target vehicle and the acceleration data collected under the second reference condition of the target vehicle is enhanced. Then, the fourth acceleration data is analyzed to determine whether to adjust the working state of the water pump part, so that the collected acceleration data is analyzed to determine whether the vehicle is in a stationary state or a moving state, and the working state of the water pump part is adjusted, thereby realizing the water outlet control of the water dispenser, which is beneficial to improving the intelligence and accuracy of the water outlet control of the on-board instant hot water dispenser.

[0064] In a possible example, after obtaining the first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, the method may include the following steps: obtaining first reference acceleration data from the acceleration sensor, the first reference acceleration data being acceleration data collected by the acceleration sensor when the vehicle-mounted instant hot water dispenser is placed on a reference platform and is running (the water pumping part is in a started state), the first reference acceleration data including a plurality of first reference acceleration values ​​of the X-axis, a plurality of second reference acceleration values ​​of the Y-axis, and a plurality of third reference acceleration values ​​of the Z-axis; preprocessing the first reference acceleration data to obtain preprocessed second reference acceleration data; and correcting the first acceleration value, the second acceleration value, and the third acceleration value according to the fourth reference acceleration value of the X-axis, the fifth reference acceleration value of the Y-axis, and the sixth reference acceleration value of the Z-axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X-axis, an eleventh acceleration value of the Y-axis, and a twelfth acceleration value of the Z-axis.

[0065] Among them, the reference platform is a platform with a level.

[0066] Among them, the water pump part of the vehicle-mounted instant hot water dispenser will generate its own vibration when working. The vibration is further amplified by the resonance of the outer shell of the vehicle-mounted instant hot water dispenser body and the cup holder of the target vehicle where the vehicle-mounted instant hot water dispenser is placed, resulting in misjudgment when analyzing the acceleration data to close the water pump part; and the PCB patch tolerance of the vehicle-mounted instant hot water dispenser, the manufacturing tolerance of the structural parts and the assembly tolerance during the manufacturing of the finished product will all affect the acceleration data collected by the acceleration sensor. Therefore, the vehicle-mounted instant hot water dispenser can be placed on a reference platform and the water pump part can be started. The acceleration sensor collects the first reference acceleration data of the vehicle-mounted instant hot water dispenser at this time, and the first reference acceleration data is used to correct the first acceleration data under the current working condition, so as to eliminate the sensor data error caused by water pump vibration, patch tolerance, manufacturing error and assembly error.

[0067] The preprocessing includes removing the acceleration value of the first acceleration data within the interval between the second time point and the third time point, and clearing the abnormal values ​​in the first reference acceleration data.

[0068] Specifically, the first acceleration correction value can be determined according to multiple fourth reference acceleration values ​​of the X-axis in the second reference acceleration data, the second acceleration correction value can be determined according to multiple fifth reference acceleration values ​​of the Y-axis in the second reference acceleration data, the third acceleration correction value can be determined according to multiple sixth reference acceleration values ​​of the Z-axis in the second reference acceleration data, the first acceleration value is corrected using the first acceleration correction value to obtain a tenth acceleration value, the second acceleration value is corrected using the second acceleration correction value to obtain an eleventh acceleration value, and the third acceleration value is corrected using the third acceleration correction value to obtain a twelfth acceleration value.

[0069] It can be seen that in this example, the first acceleration data is corrected by obtaining the first reference acceleration data collected when the acceleration sensor is running on the reference platform, so as to eliminate the sensor data error caused by water pump vibration, patch work error, manufacturing error, and assembly error, which is beneficial to improve the accuracy of water outlet control.

[0070] In one possible example, in terms of correcting the first acceleration value, the second acceleration value and the third acceleration value according to a plurality of fourth reference acceleration values ​​of the X-axis, a plurality of fifth reference acceleration values ​​of the Y-axis and a plurality of sixth reference acceleration values ​​of the Z-axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X-axis, an eleventh acceleration value of the Y-axis and a twelfth acceleration value of the Z-axis, the method may include the following steps: determining a first acceleration correction value according to the plurality of fourth reference acceleration values; determining a second acceleration correction value according to the plurality of fifth reference acceleration values; determining a third acceleration correction value according to the plurality of sixth reference acceleration values; determining the tenth acceleration value according to the first acceleration correction value and the first acceleration value; determining the eleventh acceleration value according to the second acceleration correction value and the second acceleration value; and determining the twelfth acceleration value according to the third acceleration correction value and the third acceleration value.

[0071] The first acceleration correction value may be an average of a plurality of fourth reference acceleration values, the second acceleration correction value may be an average of a plurality of fifth reference acceleration values, and the third acceleration correction value may be an average of a plurality of sixth reference acceleration values.

[0072] Among them, the tenth acceleration value=the first acceleration value-the first acceleration correction value, the eleventh acceleration value=the second acceleration value-the second acceleration correction value, and the twelfth acceleration value=the third acceleration value-the third acceleration correction value.

[0073] It can be seen that in this example, the first acceleration data is corrected by obtaining the first reference acceleration data collected when the acceleration sensor is running on the reference platform, so as to eliminate the sensor data error caused by water pump vibration, patch work error, manufacturing error, and assembly error, which is beneficial to improve the accuracy of water outlet control.

[0074] In a possible example, before determining that the start state of the water pump part in the vehicle-mounted instant hot water dispenser is adjusted to the off state if it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval or any of the eighth acceleration values ​​does not fall within the second preset value interval or any of the ninth acceleration values ​​does not fall within the third preset value interval, the method may further include the following steps: obtaining third reference acceleration data from the acceleration sensor, the third reference acceleration data being acceleration data collected by the vehicle-mounted instant hot water dispenser under the constraints of a first reference condition of the target vehicle, the first reference condition including a stationary state of the vehicle Conditions and / or interference factors affecting conditions, wherein the interference factors affecting conditions include at least one of the following: door opening and closing, glove box opening and closing, people getting on and off the vehicle, air suspension adjustment and music playing; obtaining fourth reference acceleration data from the acceleration sensor, wherein the fourth reference acceleration data is acceleration data collected by the on-board instant hot water dispenser under the constraints of the second reference conditions of the target vehicle, wherein the second reference conditions include vehicle motion state conditions and reference road conditions; determining the first preset numerical interval, the second preset numerical interval and the third preset numerical interval according to the third reference acceleration data and the fourth reference acceleration data.

[0075] The reference road condition may be a flat road or a non-flat road. The non-flat road includes a road with roadblocks, such as a road with a manhole cover. The motion state condition may be vehicle acceleration, vehicle deceleration, vehicle turning, vehicle reversing, etc.

[0076] Among them, under the first reference condition, that is, the vehicle is in a stationary state and / or affected by interference factors, the vehicle state is relatively stable, resulting in a relatively small risk of water splashing from the on-board instant hot water dispenser. Therefore, under the aforementioned conditions, it is expected that the on-board instant hot water dispenser can discharge water normally, but under the first reference condition, the on-board instant hot water dispenser will still generate acceleration, which may cause misjudgment when analyzing the acceleration data and cause the on-board instant hot water dispenser to stop working. Therefore, when determining the preset threshold interval, the third acceleration value under the first reference condition needs to be considered; at the same time, under the second reference condition, that is, the vehicle is in a moving state and under reference road conditions, the vehicle state is relatively unstable, resulting in a relatively large risk of water splashing from the on-board instant hot water dispenser. Therefore, under the aforementioned conditions, it is expected that the on-board instant hot water dispenser can stop working to prevent water from splashing and scalding users.

[0077] Wherein, the determining of the first preset value interval, the second preset value interval and the third preset value interval according to the third reference acceleration data and the fourth reference acceleration data comprises the following steps: preprocessing the third reference acceleration data and the fourth reference acceleration data, then respectively calculating the absolute values ​​of the reference acceleration values ​​in the preprocessed third reference acceleration data and the reference acceleration values ​​in the preprocessed fourth reference acceleration data to obtain the fifth reference acceleration data and the sixth reference acceleration data, then respectively performing a sliding window summation operation on the reference acceleration values ​​in the fifth reference acceleration data and the reference acceleration values ​​in the sixth reference acceleration data to obtain a plurality of fifth reference acceleration values ​​and a plurality of sixth reference acceleration values ​​of the X-axis, a plurality of seventh reference acceleration values ​​and a plurality of eighth reference acceleration values ​​of the Y-axis, a plurality of ninth reference acceleration values ​​and a plurality of tenth reference acceleration values ​​of the Z-axis, and finally determining the first preset value interval according to the plurality of fifth reference acceleration values ​​and a plurality of sixth reference acceleration values, determining a plurality of second preset value intervals according to the plurality of seventh reference acceleration values ​​and a plurality of eighth reference acceleration values, and determining a plurality of third preset value intervals according to the plurality of ninth reference acceleration values ​​and a plurality of tenth reference acceleration values.

[0078] Among them, the upper limit value of the first preset numerical interval is greater than or equal to the maximum value of multiple fifth reference acceleration values, and less than the maximum value of multiple sixth reference acceleration values, and the lower limit value of the first preset numerical interval is less than or equal to the minimum value of multiple fifth reference acceleration values; the upper limit value of the second preset numerical interval is greater than or equal to the maximum value of multiple seventh reference acceleration values, and less than the maximum value of multiple eighth reference acceleration values, and the lower limit value of the second preset numerical interval is less than or equal to the minimum value of multiple seventh reference acceleration values; the upper limit value of the third preset numerical interval is greater than or equal to the maximum value of multiple ninth reference acceleration values, and less than the maximum value of multiple tenth reference acceleration values, and the lower limit value of the third preset numerical interval is less than or equal to the minimum value of multiple ninth reference acceleration values.

[0079] Optionally, fifth reference acceleration data of the target vehicle in cruise mode on a flat road (e.g., a highway) may be obtained, and the ranges of the first preset numerical interval, the second preset numerical interval, and the third preset numerical interval may be adjusted according to the fifth reference acceleration data, so that the on-board instant hot water dispenser can discharge water normally in cruise mode when the target vehicle is on a flat road (e.g., a highway).

[0080] It can be seen that in this example, determining the first preset numerical interval, the second preset numerical interval and the third preset numerical interval by the third reference data and the fourth reference data is beneficial to improving the accuracy of water outlet control.

[0081] In a possible example, after performing a sliding window summation operation in the time domain on a plurality of fourth acceleration values ​​of the X-axis, a plurality of fifth acceleration values ​​of the Y-axis, and a plurality of sixth acceleration values ​​of the Z-axis in the third acceleration data starting from the first time point to obtain fourth acceleration data, wherein the fourth acceleration data includes a plurality of seventh acceleration values ​​of the X-axis, a plurality of eighth acceleration values ​​of the Y-axis, and a plurality of ninth acceleration values ​​of the Z-axis, the following steps may also be included: performing a denoising operation on the first acceleration data to obtain fifth acceleration data after denoising; determining the The method comprises the following steps: determining an absolute value of the first acceleration change value and the second acceleration change value to obtain sixth acceleration data; performing a sliding window averaging operation on multiple acceleration values ​​of each coordinate axis in the sixth acceleration data in the time domain from the first time point to obtain seventh acceleration data; determining a first acceleration change value of the X axis and a second acceleration change value of the Z axis according to the seventh acceleration data; determining the absolute values ​​of the first acceleration change value and the second acceleration change value to obtain a third acceleration change value of the X axis and a fourth acceleration change value of the Z axis; performing a sliding window averaging operation on the third acceleration change value of the X axis and the fourth acceleration change value of the Z axis in the time domain to obtain to the fifth acceleration change value of the X-axis and the sixth acceleration change value of the Z-axis; if it is determined that any of the eighth acceleration values ​​does not fall into the second preset value interval, it is determined that the water pump will adjust the start state to the closed state; if it is determined that each of the eighth acceleration values ​​falls into the second preset value interval, the following judgment operation is performed: if it is determined that the fifth acceleration change value at each time point is equal to the fourth preset threshold and the sixth acceleration change value is less than the fifth preset threshold, or the fifth acceleration change value at each time point is less than the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold , it is determined that the water pumping unit will maintain the startup state as the open state; if it is determined that the fifth acceleration change value at any time point is equal to the fourth preset threshold and the sixth acceleration change value is greater than or equal to the fifth preset threshold, or the fifth acceleration change value at any time point is greater than or equal to the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, or the fifth acceleration change value at any time point is not equal to the fourth preset threshold and the sixth acceleration change value is not equal to the seventh preset threshold, then it is determined that the water pumping unit will adjust the startup state to the closed state.

[0082] Among them, considering that when the vehicle is parked on a slope, due to the influence of gravity, the on-board instant hot water dispenser will have a certain acceleration in the X-axis and Z-axis directions, which will affect the judgment of whether the vehicle is moving, resulting in the on-board instant hot water dispenser stopping and not discharging water when the vehicle is parked on a slope. In order to more accurately distinguish between the stationary and moving states of the vehicle, the data of the acceleration sensor can be denoised and smoothed, and further judgment can be made on the acceleration data of the X-axis and Z-axis.

[0083] Among them, a single window corresponds to a sampled acceleration value, and the number of windows for a single sliding window summation operation can be preset and is not limited here. The number of sliding windows each time is 1, for example, the acceleration values ​​of 5 windows can be averaged, or the acceleration values ​​of 3 windows can be averaged.

[0084] Among them, a first acceleration change value of the X-axis and a second acceleration change value of the Z-axis are determined according to the seventh acceleration data, the first acceleration change value is the difference between two acceleration values ​​of two adjacent windows of the X-axis of the seventh acceleration data, and the second acceleration change value is the difference between two acceleration values ​​of two adjacent windows of the Z-axis of the seventh acceleration data. For example, the acceleration value of the current window of the X-axis of the seventh acceleration data is Xt2, and the acceleration value of the previous window of the X-axis of the seventh acceleration data is Xt1, then the first acceleration change value DeltaX of the current window is Xt2-Xt1.

[0085] The fourth preset threshold, the fifth preset threshold, the sixth preset threshold and the seventh preset threshold can be manually set or set by the system by default, and are not limited here. For example, the fourth preset threshold is 0.5, the seventh preset threshold is 0.5, the fifth preset threshold is 5.5, and the sixth preset threshold is 5.5.

[0086] Among them, each time point corresponds to a fifth acceleration change value and a sixth acceleration change value; if it is judged that any eighth acceleration value does not fall into the second preset value interval, it means that there is a large acceleration in the Z axis, and the water pump can be controlled to close; if it is judged that each eighth acceleration value falls into the second preset value interval, it means that the acceleration in the Z axis is not large, then it is necessary to further analyze the acceleration data of the Z axis and the X axis, which is actually to judge whether the fifth acceleration change value and the sixth acceleration change value meet certain conditions, that is, if it is judged that the fifth acceleration change value and the sixth acceleration change value at each time point meet: the fifth acceleration change value is equal to the fourth preset threshold and the sixth acceleration change value is less than the fifth preset threshold, or the fifth acceleration change value is less than the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, then it means The accelerations of the X-axis and Y-axis of the vehicle-mounted instant hot water dispenser are very small, and the vehicle is in a stationary state (including parking on a slope). At this time, the water pump part can be maintained in the open state, and the vehicle-mounted instant hot water dispenser heats and discharges water normally; if it is determined that the fifth acceleration change value and the sixth acceleration change value at any time point satisfy: the fifth acceleration change value is equal to the fourth preset threshold value and the sixth acceleration change value is greater than or equal to the fifth preset threshold value, or the fifth acceleration change value is greater than or equal to the sixth preset threshold value and the sixth acceleration change value is equal to the seventh preset threshold value, or the fifth acceleration change value is not equal to the fourth preset threshold value and the sixth acceleration change value is not equal to the seventh preset threshold value, then it means that the vehicle-mounted instant hot water dispenser has a large acceleration on the X-axis or a large acceleration on the Z-axis or both the X-axis and the Z-axis have large accelerations, and the water pump part can be closed at this time.

[0087] Optionally, the status information of the vehicle may be obtained, and if the status information shows that the vehicle is parked on a slope, the water pump part of the vehicle-mounted instant hot water dispenser is controlled to be adjusted to a closed state.

[0088] It can be seen that in this example, by performing noise reduction and smoothing processing on the acceleration data, the slope parking state and the moving state of the vehicle can be distinguished more accurately, which is conducive to improving the accuracy of water discharge control.

[0089] In one possible example, in performing a noise reduction operation on the first acceleration data to obtain the fifth acceleration data after noise reduction, the following steps may be included: replacing a first acceleration value that is less than an eighth preset threshold value among multiple first acceleration values ​​of the X-axis with a first target value; replacing a second acceleration value that is less than a ninth preset threshold value among multiple second acceleration values ​​of the Y-axis with a second target value; and replacing a third acceleration value that is less than a tenth preset threshold value among multiple third acceleration values ​​of the Z-axis with a third target value.

[0090] Among them, the eighth preset threshold, the ninth preset threshold and the tenth preset threshold can be set manually or by system default, and are not limited here. For example, the eighth preset threshold, the ninth preset threshold and the tenth preset threshold are all 17.5.

[0091] Among them, the first target value, the second target value and the third target value can be set manually or by system default, and are not limited here. For example: the first target value, the second target value and the third target value are all 0.5.

[0092] It can be seen that in this example, by performing noise reduction processing on the acceleration data, the slope parking state and the moving state of the vehicle can be distinguished more accurately, which is conducive to improving the accuracy of water discharge control.

[0093] See also Figure 4 , Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to execute the following steps by the processor:

[0094] Acquire first acceleration data from an acceleration sensor of the vehicle-mounted instant hot water dispenser, wherein the first acceleration data includes a plurality of first acceleration values ​​of an X-axis, a plurality of second acceleration values ​​of a Y-axis, and a plurality of third acceleration values ​​of a Z-axis;

[0095] Preprocessing the first acceleration data to obtain preprocessed second acceleration data;

[0096] Determine the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data;

[0097] Starting from the first time point, performing a sliding window summation operation on a plurality of fourth acceleration values ​​of the X axis, a plurality of fifth acceleration values ​​of the Y axis, and a plurality of sixth acceleration values ​​of the Z axis in the third acceleration data in the time domain to obtain fourth acceleration data, wherein the fourth acceleration data includes a plurality of seventh acceleration values ​​of the X axis, a plurality of eighth acceleration values ​​of the Y axis, and a plurality of ninth acceleration values ​​of the Z axis;

[0098] If it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval, or any of the eighth acceleration values ​​does not fall within the second preset value interval, or any of the ninth acceleration values ​​does not fall within the third preset value interval, it is determined that the start state of the water pump part in the vehicle-mounted instant hot water dispenser is adjusted to the closed state.

[0099] It can be seen that in the embodiment of the present application, the electronic device first obtains the first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, the first acceleration data includes multiple first acceleration values ​​of the X-axis, multiple second acceleration values ​​of the Y-axis, and multiple third acceleration values ​​of the Z-axis, then pre-processes the first acceleration data to obtain the pre-processed second acceleration data, and then determines the absolute value of each acceleration value in the second acceleration data to obtain the third acceleration data. Further, starting from the first time point, a sliding window summation operation is performed on the multiple fourth acceleration values ​​of the X-axis, the multiple fifth acceleration values ​​of the Y-axis, and the multiple sixth acceleration values ​​of the Z-axis in the third acceleration data in the time domain to obtain the fourth acceleration data, the fourth acceleration data includes multiple seventh acceleration values ​​of the X-axis, the multiple eighth acceleration values ​​of the Y-axis, and the multiple ninth acceleration values ​​of the Z-axis. Finally, if it is determined that any seventh acceleration value does not fall into the first preset value interval or any eighth acceleration value does not fall into the second preset value interval or any ninth acceleration value does not fall into the third preset value interval, it is determined to adjust the start state of the water pump part to the closed state. By performing absolute value processing on the collected acceleration data and performing a sliding window summation operation, the fourth acceleration data is obtained, and the data separation between the acceleration data collected under the first reference condition of the target vehicle and the acceleration data collected under the second reference condition of the target vehicle is enhanced. Then, the fourth acceleration data is analyzed to determine whether to adjust the working state of the water pump part, so that the collected acceleration data is analyzed to determine whether the vehicle is in a stationary state or a moving state, and the working state of the water pump part is adjusted, thereby realizing the water outlet control of the water dispenser, which is beneficial to improving the intelligence and accuracy of the water outlet control of the on-board instant hot water dispenser.

[0100] In a possible example, in the aspect of preprocessing the first acceleration data to obtain the preprocessed second acceleration data, the program includes instructions for executing the following steps:

[0101] The fourth acceleration data is obtained by removing the acceleration value of the first acceleration data within the interval between the second time point and the third time point, wherein the second time point is the time point when the acceleration sensor starts to collect the acceleration of the vehicle-mounted instant hot water dispenser, the third time point is the time point when the start-up phase of the water pumping unit ends, and the second time point is greater than or equal to the fourth time point when the water pumping unit is started;

[0102] Abnormal values ​​in the fourth acceleration data are cleared to obtain the preprocessed second acceleration data.

[0103] In a possible example, after acquiring the first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, the program includes instructions for executing the following steps:

[0104] Acquire first reference acceleration data from the acceleration sensor, the first reference acceleration data being acceleration data collected by the acceleration sensor when the vehicle-mounted instant hot water dispenser is placed on a reference platform and running, the first reference acceleration data including a plurality of first reference acceleration values ​​of the X-axis, a plurality of second reference acceleration values ​​of the Y-axis, and a plurality of third reference acceleration values ​​of the Z-axis;

[0105] Preprocessing the first reference acceleration data to obtain preprocessed second reference acceleration data;

[0106] The first acceleration value, the second acceleration value and the third acceleration value are corrected according to multiple fourth reference acceleration values ​​of the X-axis, multiple fifth reference acceleration values ​​of the Y-axis and multiple sixth reference acceleration values ​​of the Z-axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X-axis, an eleventh acceleration value of the Y-axis and a twelfth acceleration value of the Z-axis.

[0107] In one possible example, in the aspect of correcting the first acceleration value, the second acceleration value, and the third acceleration value according to a plurality of fourth reference acceleration values ​​of the X-axis, a plurality of fifth reference acceleration values ​​of the Y-axis, and a plurality of sixth reference acceleration values ​​of the Z-axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X-axis, an eleventh acceleration value of the Y-axis, and a twelfth acceleration value of the Z-axis, the program includes instructions for executing the following steps:

[0108] Determining a first acceleration correction value according to the plurality of fourth reference acceleration values;

[0109] determining a second acceleration correction value according to the plurality of fifth reference acceleration values;

[0110] determining a third acceleration correction value according to the plurality of sixth reference acceleration values;

[0111] Determining the tenth acceleration value according to the first acceleration correction value and the first acceleration value;

[0112] Determining the eleventh acceleration value according to the second acceleration correction value and the second acceleration value;

[0113] The twelfth acceleration value is determined according to the third acceleration correction value and the third acceleration value.

[0114] In a possible example, before determining that the start state of the water pump in the vehicle-mounted instant hot water dispenser is adjusted to the off state if it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval, or any of the eighth acceleration values ​​does not fall within the second preset value interval, or any of the ninth acceleration values ​​does not fall within the third preset value interval, the program further includes instructions for executing the following steps:

[0115] Acquire third reference acceleration data from the acceleration sensor, the third reference acceleration data being acceleration data collected by the vehicle-mounted instant hot water dispenser under the constraint of a first reference condition of the target vehicle, the first reference condition comprising a vehicle stationary state condition and / or an interference factor influence condition, the interference factor influence condition comprising at least one of the following: door opening and closing, glove box opening and closing, people getting on and off the vehicle, air suspension adjustment, and music playing;

[0116] Acquire fourth reference acceleration data from the acceleration sensor, wherein the fourth reference acceleration data is acceleration data collected by the vehicle-mounted instant hot water dispenser under the constraint of a second reference condition of the target vehicle, wherein the second reference condition includes a vehicle motion state condition and a reference road surface condition;

[0117] The first preset numerical interval, the second preset numerical interval, and the third preset numerical interval are determined according to the third reference acceleration data and the fourth reference acceleration data.

[0118] In a possible example, after performing a sliding window summation operation on the multiple fourth acceleration values ​​of the X-axis, the multiple fifth acceleration values ​​of the Y-axis, and the multiple sixth acceleration values ​​of the Z-axis in the third acceleration data in the time domain starting from the first time point to obtain fourth acceleration data, wherein the fourth acceleration data includes multiple seventh acceleration values ​​of the X-axis, multiple eighth acceleration values ​​of the Y-axis, and multiple ninth acceleration values ​​of the Z-axis, the program further includes instructions for executing the following steps:

[0119] Performing a noise reduction operation on the first acceleration data to obtain fifth acceleration data after noise reduction;

[0120] Determine the absolute value of each acceleration value in the fifth acceleration data to obtain sixth acceleration data;

[0121] Starting from the first time point, performing a sliding window averaging operation on a plurality of acceleration values ​​of each coordinate axis in the sixth acceleration data in the time domain to obtain seventh acceleration data;

[0122] Determine a first acceleration change value of the X-axis and a second acceleration change value of the Z-axis according to the seventh acceleration data;

[0123] Determine the absolute values ​​of the first acceleration change value and the second acceleration change value respectively, and obtain a third acceleration change value of the X axis and a fourth acceleration change value of the Z axis;

[0124] Performing a sliding window averaging operation on the third acceleration change value of the X axis and the fourth acceleration change value of the Z axis in the time domain to obtain a fifth acceleration change value of the X axis and a sixth acceleration change value of the Z axis;

[0125] If it is determined that any of the eighth acceleration values ​​does not fall within the second preset value interval, it is determined that the water pumping unit is adjusted from the start state to the shut-down state;

[0126] If it is determined that each of the eighth acceleration values ​​falls within the second preset value interval, the following judgment operation is performed: If it is determined that the fifth acceleration change value at each time point is equal to the fourth preset threshold and the sixth acceleration change value is less than the fifth preset threshold, or the fifth acceleration change value at each time point is less than the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, then it is determined that the water pumping unit will maintain the startup state as the open state; if it is determined that the fifth acceleration change value at any time point is equal to the fourth preset threshold and the sixth acceleration change value is greater than or equal to the fifth preset threshold, or the fifth acceleration change value at any time point is greater than or equal to the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, or the fifth acceleration change value at any time point is not equal to the fourth preset threshold and the sixth acceleration change value is not equal to the seventh preset threshold, then it is determined that the water pumping unit will adjust the startup state to the closed state.

[0127] In a possible example, in the aspect of performing a noise reduction operation on the first acceleration data to obtain fifth acceleration data after noise reduction, the program further includes instructions for performing the following steps:

[0128] Replacing a first acceleration value that is less than an eighth preset threshold value among a plurality of first acceleration values ​​of the X-axis with the first target value;

[0129] Replacing the second acceleration value of the Y-axis that is less than the ninth preset threshold value with the second target value among the plurality of second acceleration values;

[0130] A third acceleration value of the Z axis that is less than a tenth preset threshold value is replaced with a third target value.

[0131] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0132] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0133] In the case of dividing each functional module into corresponding functional modules, Figure 5 is a functional unit block diagram of a water outlet control device for a vehicle-mounted instant hot water dispenser provided in an embodiment of the present application, such as Figure 5 As shown, the water outlet control device of the vehicle-mounted instant hot water dispenser includes: an acquisition unit 501, a processing unit 502 and a determination unit 503, wherein:

[0134] The acquisition unit 501 is used to acquire first acceleration data from an acceleration sensor of the vehicle-mounted instant hot water dispenser, wherein the first acceleration data includes a plurality of first acceleration values ​​of an X-axis, a plurality of second acceleration values ​​of a Y-axis, and a plurality of third acceleration values ​​of a Z-axis;

[0135] The processing unit 502 is used to preprocess the first acceleration data to obtain preprocessed second acceleration data;

[0136] The determining unit 503 is used to determine the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data;

[0137] The processing unit 502 is further configured to perform a sliding window summation operation on the plurality of fourth acceleration values ​​of the X axis, the plurality of fifth acceleration values ​​of the Y axis, and the plurality of sixth acceleration values ​​of the Z axis in the third acceleration data in the time domain starting from the first time point, to obtain fourth acceleration data, wherein the fourth acceleration data includes the plurality of seventh acceleration values ​​of the X axis, the plurality of eighth acceleration values ​​of the Y axis, and the plurality of ninth acceleration values ​​of the Z axis;

[0138] The determination unit 503 is also used to determine that the start state of the water pump part in the vehicle-mounted instant hot water dispenser is adjusted to the off state if it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval, or any of the eighth acceleration values ​​does not fall within the second preset value interval, or any of the ninth acceleration values ​​does not fall within the third preset value interval.

[0139] It can be seen that the water outlet control device of the vehicle-mounted instant hot water dispenser described in the embodiment of the present application can first obtain the first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, the first acceleration data including multiple first acceleration values ​​of the X-axis, multiple second acceleration values ​​of the Y-axis and multiple third acceleration values ​​of the Z-axis, then pre-process the first acceleration data to obtain the pre-processed second acceleration data, then determine the absolute value of each acceleration value in the second acceleration data to obtain the third acceleration data, and further, from the first time point, respectively determine the absolute value of each acceleration value in the X-axis of the third acceleration data. A sliding window sum operation is performed on multiple fourth acceleration values ​​of the X-axis, multiple fifth acceleration values ​​of the Y-axis, and multiple sixth acceleration values ​​of the Z-axis in the time domain to obtain fourth acceleration data, the fourth acceleration data including multiple seventh acceleration values ​​of the X-axis, multiple eighth acceleration values ​​of the Y-axis, and multiple ninth acceleration values ​​of the Z-axis. Finally, if it is determined that any seventh acceleration value does not fall into the first preset value interval or any eighth acceleration value does not fall into the second preset value interval or any ninth acceleration value does not fall into the third preset value interval, it is determined that the start state of the water pumping unit is adjusted to the closed state. By performing absolute value processing on the collected acceleration data and performing a sliding window summation operation, the fourth acceleration data is obtained, and the data separation between the acceleration data collected under the first reference condition of the target vehicle and the acceleration data collected under the second reference condition of the target vehicle is enhanced. Then, the fourth acceleration data is analyzed to determine whether to adjust the working state of the water pump part, so that the collected acceleration data is analyzed to determine whether the vehicle is in a stationary state or a moving state, and the working state of the water pump part is adjusted, thereby realizing the water outlet control of the water dispenser, which is beneficial to improving the intelligence and accuracy of the water outlet control of the on-board instant hot water dispenser.

[0140] In a possible example, in the aspect of preprocessing the first acceleration data to obtain the preprocessed second acceleration data, the processing unit 502 is specifically configured to:

[0141] The fourth acceleration data is obtained by removing the acceleration value of the first acceleration data within the interval between the second time point and the third time point, wherein the second time point is the time point when the acceleration sensor starts to collect the acceleration of the vehicle-mounted instant hot water dispenser, the third time point is the time point when the start-up phase of the water pumping unit ends, and the second time point is greater than or equal to the fourth time point when the water pumping unit is started;

[0142] Abnormal values ​​in the fourth acceleration data are cleared to obtain the preprocessed second acceleration data.

[0143] In a possible example, after acquiring the first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, the acquiring unit 501 is specifically used to:

[0144] Acquire first reference acceleration data from the acceleration sensor, the first reference acceleration data being acceleration data collected by the acceleration sensor when the vehicle-mounted instant hot water dispenser is placed on a reference platform and running, the first reference acceleration data including a plurality of first reference acceleration values ​​of the X-axis, a plurality of second reference acceleration values ​​of the Y-axis, and a plurality of third reference acceleration values ​​of the Z-axis;

[0145] Preprocessing the first reference acceleration data to obtain preprocessed second reference acceleration data;

[0146] The first acceleration value, the second acceleration value and the third acceleration value are corrected according to multiple fourth reference acceleration values ​​of the X-axis, multiple fifth reference acceleration values ​​of the Y-axis and multiple sixth reference acceleration values ​​of the Z-axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X-axis, an eleventh acceleration value of the Y-axis and a twelfth acceleration value of the Z-axis.

[0147] In a possible example, the first acceleration value, the second acceleration value, and the third acceleration value are corrected according to multiple fourth reference acceleration values ​​of the X-axis, multiple fifth reference acceleration values ​​of the Y-axis, and multiple sixth reference acceleration values ​​of the Z-axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X-axis, an eleventh acceleration value of the Y-axis, and a twelfth acceleration value of the Z-axis, and the determining unit 503 is specifically used to:

[0148] Determining a first acceleration correction value according to the plurality of fourth reference acceleration values;

[0149] determining a second acceleration correction value according to the plurality of fifth reference acceleration values;

[0150] determining a third acceleration correction value according to the plurality of sixth reference acceleration values;

[0151] Determining the tenth acceleration value according to the first acceleration correction value and the first acceleration value;

[0152] Determining the eleventh acceleration value according to the second acceleration correction value and the second acceleration value;

[0153] The twelfth acceleration value is determined according to the third acceleration correction value and the third acceleration value.

[0154] In a possible example, before determining to adjust the start state of the water pump part in the vehicle-mounted instant hot water dispenser to the off state if it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval or any of the eighth acceleration values ​​does not fall within the second preset value interval or any of the ninth acceleration values ​​does not fall within the third preset value interval, the determining unit 503 is specifically used to:

[0155] Acquire third reference acceleration data from the acceleration sensor, the third reference acceleration data being acceleration data collected by the vehicle-mounted instant hot water dispenser under the constraint of a first reference condition of the target vehicle, the first reference condition comprising a vehicle stationary state condition and / or an interference factor influence condition, the interference factor influence condition comprising at least one of the following: door opening and closing, glove box opening and closing, people getting on and off the vehicle, air suspension adjustment, and music playing;

[0156] Acquire fourth reference acceleration data from the acceleration sensor, wherein the fourth reference acceleration data is acceleration data collected by the vehicle-mounted instant hot water dispenser under the constraint of a second reference condition of the target vehicle, wherein the second reference condition includes a vehicle motion state condition and a reference road surface condition;

[0157] The first preset numerical interval, the second preset numerical interval, and the third preset numerical interval are determined according to the third reference acceleration data and the fourth reference acceleration data.

[0158] In a possible example, after performing a sliding window summation operation on the multiple fourth acceleration values ​​of the X-axis, the multiple fifth acceleration values ​​of the Y-axis, and the multiple sixth acceleration values ​​of the Z-axis in the third acceleration data in the time domain starting from the first time point to obtain fourth acceleration data, wherein the fourth acceleration data includes multiple seventh acceleration values ​​of the X-axis, multiple eighth acceleration values ​​of the Y-axis, and multiple ninth acceleration values ​​of the Z-axis, the determining unit 503 is specifically used to:

[0159] Performing a noise reduction operation on the first acceleration data to obtain fifth acceleration data after noise reduction;

[0160] Determine the absolute value of each acceleration value in the fifth acceleration data to obtain sixth acceleration data;

[0161] Starting from the first time point, performing a sliding window averaging operation on a plurality of acceleration values ​​of each coordinate axis in the sixth acceleration data in the time domain to obtain seventh acceleration data;

[0162] Determine a first acceleration change value of the X-axis and a second acceleration change value of the Z-axis according to the seventh acceleration data;

[0163] Determine the absolute values ​​of the first acceleration change value and the second acceleration change value respectively, and obtain a third acceleration change value of the X axis and a fourth acceleration change value of the Z axis;

[0164] Performing a sliding window averaging operation on the third acceleration change value of the X axis and the fourth acceleration change value of the Z axis in the time domain to obtain a fifth acceleration change value of the X axis and a sixth acceleration change value of the Z axis;

[0165] If it is determined that any of the eighth acceleration values ​​does not fall within the second preset value interval, it is determined that the water pumping unit is adjusted from the start state to the shut-down state;

[0166] If it is determined that each of the eighth acceleration values ​​falls within the second preset value interval, the following judgment operation is performed: If it is determined that the fifth acceleration change value at each time point is equal to the fourth preset threshold and the sixth acceleration change value is less than the fifth preset threshold, or the fifth acceleration change value at each time point is less than the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, then it is determined that the water pumping unit will maintain the startup state as the open state; if it is determined that the fifth acceleration change value at any time point is equal to the fourth preset threshold and the sixth acceleration change value is greater than or equal to the fifth preset threshold, or the fifth acceleration change value at any time point is greater than or equal to the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, or the fifth acceleration change value at any time point is not equal to the fourth preset threshold and the sixth acceleration change value is not equal to the seventh preset threshold, then it is determined that the water pumping unit will adjust the startup state to the closed state.

[0167] In a possible example, the performing a noise reduction operation on the first acceleration data to obtain fifth acceleration data after noise reduction, the processing unit 502 is specifically configured to:

[0168] Replacing a first acceleration value that is less than an eighth preset threshold value among a plurality of first acceleration values ​​of the X-axis with the first target value;

[0169] Replacing the second acceleration value of the Y-axis that is less than the ninth preset threshold value with the second target value among the plurality of second acceleration values;

[0170] A third acceleration value of the Z axis that is less than a tenth preset threshold value is replaced with a third target value.

[0171] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0172] The electronic device provided in this embodiment is used to execute the water output control method of the vehicle-mounted instant hot water dispenser, and thus can achieve the same effect as the above-mentioned implementation method.

[0173] In the case of an integrated unit, the electronic device may include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the electronic device, for example, it may be used to support the electronic device to execute the steps performed by the above-mentioned functional unit. The storage module may be used to support the electronic device to execute stored program codes and data, etc. The communication module may be used to support the communication between the electronic device and other devices.

[0174] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0175] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.

[0176] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a control platform.

[0177] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0178] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0179] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0180] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0181] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0182] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0183] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0184] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A water output control method for a vehicle-mounted instant hot water dispenser, characterized in that: include: Acquire first acceleration data from an acceleration sensor of the vehicle-mounted instant hot water dispenser, wherein the first acceleration data includes a plurality of first acceleration values ​​of an X-axis, a plurality of second acceleration values ​​of a Y-axis, and a plurality of third acceleration values ​​of a Z-axis; Preprocessing the first acceleration data to obtain preprocessed second acceleration data; Determine the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data; Starting from the first time point, performing a sliding window summation operation on a plurality of fourth acceleration values ​​of the X axis, a plurality of fifth acceleration values ​​of the Y axis, and a plurality of sixth acceleration values ​​of the Z axis in the third acceleration data in the time domain to obtain fourth acceleration data, wherein the fourth acceleration data includes a plurality of seventh acceleration values ​​of the X axis, a plurality of eighth acceleration values ​​of the Y axis, and a plurality of ninth acceleration values ​​of the Z axis; Acquire third reference acceleration data from the acceleration sensor, the third reference acceleration data being acceleration data collected by the vehicle-mounted instant hot water dispenser under the constraint of a first reference condition of the target vehicle, the first reference condition comprising a vehicle stationary state condition and / or an interference factor influence condition, the interference factor influence condition comprising at least one of the following: door opening and closing, glove box opening and closing, people getting on and off the vehicle, air suspension adjustment, and music playing; Acquire fourth reference acceleration data from the acceleration sensor, wherein the fourth reference acceleration data is acceleration data collected by the vehicle-mounted instant hot water dispenser under the constraint of a second reference condition of the target vehicle, wherein the second reference condition includes a vehicle motion state condition and a reference road surface condition; Determine a first preset value interval, a second preset value interval, and a third preset value interval according to the third reference acceleration data and the fourth reference acceleration data; If it is determined that any of the seventh acceleration values ​​does not fall within the first preset value interval, or any of the eighth acceleration values ​​does not fall within the second preset value interval, or any of the ninth acceleration values ​​does not fall within the third preset value interval, it is determined that the start state of the water pump part in the vehicle-mounted instant hot water dispenser is adjusted to the closed state.

2. The method according to claim 1, characterized in that The preprocessing of the first acceleration data to obtain preprocessed second acceleration data includes: The fourth acceleration data is obtained by removing the acceleration value of the first acceleration data within the interval between the second time point and the third time point, wherein the second time point is the time point when the acceleration sensor starts to collect the acceleration of the vehicle-mounted instant hot water dispenser, the third time point is the time point when the start-up phase of the water pumping unit ends, and the second time point is greater than or equal to the fourth time point when the water pumping unit is started; Abnormal values ​​in the fourth acceleration data are cleared to obtain the preprocessed second acceleration data.

3. The method according to claim 1, characterized in that After acquiring the first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, the method further includes: Acquire first reference acceleration data from the acceleration sensor, the first reference acceleration data being acceleration data collected by the acceleration sensor when the vehicle-mounted instant hot water dispenser is placed on a reference platform and running, the first reference acceleration data including a plurality of first reference acceleration values ​​of the X-axis, a plurality of second reference acceleration values ​​of the Y-axis, and a plurality of third reference acceleration values ​​of the Z-axis; Preprocessing the first reference acceleration data to obtain preprocessed second reference acceleration data; The first acceleration value, the second acceleration value and the third acceleration value are corrected according to multiple fourth reference acceleration values ​​of the X-axis, multiple fifth reference acceleration values ​​of the Y-axis and multiple sixth reference acceleration values ​​of the Z-axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X-axis, an eleventh acceleration value of the Y-axis and a twelfth acceleration value of the Z-axis.

4. The method according to claim 3, characterized in that The first acceleration value, the second acceleration value, and the third acceleration value are corrected according to a plurality of fourth reference acceleration values ​​of the X axis, a plurality of fifth reference acceleration values ​​of the Y axis, and a plurality of sixth reference acceleration values ​​of the Z axis in the second reference acceleration data to obtain a corrected tenth acceleration value of the X axis, an eleventh acceleration value of the Y axis, and a twelfth acceleration value of the Z axis, including: Determining a first acceleration correction value according to the plurality of fourth reference acceleration values; determining a second acceleration correction value according to the plurality of fifth reference acceleration values; determining a third acceleration correction value according to the plurality of sixth reference acceleration values; Determining the tenth acceleration value according to the first acceleration correction value and the first acceleration value; Determining the eleventh acceleration value according to the second acceleration correction value and the second acceleration value; The twelfth acceleration value is determined according to the third acceleration correction value and the third acceleration value.

5. The method according to claim 1, characterized in that After performing a sliding window summation operation on the multiple fourth acceleration values ​​of the X-axis, the multiple fifth acceleration values ​​of the Y-axis, and the multiple sixth acceleration values ​​of the Z-axis in the third acceleration data in the time domain starting from the first time point to obtain fourth acceleration data, wherein the fourth acceleration data includes multiple seventh acceleration values ​​of the X-axis, multiple eighth acceleration values ​​of the Y-axis, and multiple ninth acceleration values ​​of the Z-axis, the method further includes: Performing a noise reduction operation on the first acceleration data to obtain fifth acceleration data after noise reduction; Determine the absolute value of each acceleration value in the fifth acceleration data to obtain sixth acceleration data; Starting from the first time point, performing a sliding window averaging operation on a plurality of acceleration values ​​of each coordinate axis in the sixth acceleration data in the time domain to obtain seventh acceleration data; Determine a first acceleration change value of the X-axis and a second acceleration change value of the Z-axis according to the seventh acceleration data; Determine the absolute values ​​of the first acceleration change value and the second acceleration change value respectively, and obtain a third acceleration change value of the X axis and a fourth acceleration change value of the Z axis; Performing a sliding window averaging operation on the third acceleration change value of the X axis and the fourth acceleration change value of the Z axis in the time domain to obtain a fifth acceleration change value of the X axis and a sixth acceleration change value of the Z axis; If it is determined that any of the eighth acceleration values ​​does not fall within the second preset value interval, it is determined that the water pumping unit is adjusted from the start state to the shut-down state; If it is determined that each of the eighth acceleration values ​​falls within the second preset value interval, the following judgment operation is performed: If it is determined that the fifth acceleration change value at each time point is equal to the fourth preset threshold and the sixth acceleration change value is less than the fifth preset threshold, or the fifth acceleration change value at each time point is less than the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, then it is determined that the water pumping unit will maintain the startup state as the open state; if it is determined that the fifth acceleration change value at any time point is equal to the fourth preset threshold and the sixth acceleration change value is greater than or equal to the fifth preset threshold, or the fifth acceleration change value at any time point is greater than or equal to the sixth preset threshold and the sixth acceleration change value is equal to the seventh preset threshold, or the fifth acceleration change value at any time point is not equal to the fourth preset threshold and the sixth acceleration change value is not equal to the seventh preset threshold, then it is determined that the water pumping unit will adjust the startup state to the closed state.

6. The method according to claim 5, characterized in that The performing a noise reduction operation on the first acceleration data to obtain fifth acceleration data after noise reduction includes: Replacing a first acceleration value that is less than an eighth preset threshold value among a plurality of first acceleration values ​​of the X-axis with the first target value; Replacing the second acceleration value of the Y-axis that is less than the ninth preset threshold value with the second target value among the plurality of second acceleration values; A third acceleration value of the Z axis that is less than a tenth preset threshold value is replaced with a third target value.

7. A water outlet control device for a vehicle-mounted instant hot water dispenser, characterized in that: The water output control device of the vehicle-mounted instant hot water dispenser includes: an acquisition unit, a processing unit and a determination unit, wherein: The acquisition unit is used to acquire first acceleration data from the acceleration sensor of the vehicle-mounted instant hot water dispenser, wherein the first acceleration data includes a plurality of first acceleration values ​​of the X-axis, a plurality of second acceleration values ​​of the Y-axis, and a plurality of third acceleration values ​​of the Z-axis; The processing unit is used to preprocess the first acceleration data to obtain preprocessed second acceleration data; The determining unit is used to determine the absolute value of each acceleration value in the second acceleration data to obtain third acceleration data; The processing unit is further used to perform a sliding window summation operation on a plurality of fourth acceleration values ​​of the X axis, a plurality of fifth acceleration values ​​of the Y axis, and a plurality of sixth acceleration values ​​of the Z axis in the third acceleration data in the time domain starting from the first time point, to obtain fourth acceleration data, wherein the fourth acceleration data includes a plurality of seventh acceleration values ​​of the X axis, a plurality of eighth acceleration values ​​of the Y axis, and a plurality of ninth acceleration values ​​of the Z axis; The determination unit is further used to obtain third reference acceleration data from the acceleration sensor, the third reference acceleration data is acceleration data collected by the on-board instant hot water dispenser under the constraint of a first reference condition of the target vehicle, the first reference condition includes a vehicle stationary state condition and / or an interference factor influence condition, the interference factor influence condition includes at least one of the following: door opening and closing, glove box opening and closing, people getting on and off the vehicle, air suspension adjustment and music playing; obtain fourth reference acceleration data from the acceleration sensor, the fourth reference acceleration data is acceleration data collected by the on-board instant hot water dispenser under the constraint of a second reference condition of the target vehicle, the second reference condition includes a vehicle motion state condition and a reference road surface condition; determine a first preset value interval, a second preset value interval and a third preset value interval according to the third reference acceleration data and the fourth reference acceleration data; The determination unit is further used to determine that the start state of the water pump part in the vehicle-mounted instant hot water dispenser is adjusted to the closed state if it is determined that any of the seventh acceleration values ​​does not fall within the first preset numerical interval, or any of the eighth acceleration values ​​does not fall within the second preset numerical interval, or any of the ninth acceleration values ​​does not fall within the third preset numerical interval.

8. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Vehicle-mounted instant heating type drinking water system and vehicle

    CN113401031A

  • Water dispenser control method and device, water dispenser and readable storage medium

    CN117837931A