Method, device, water purification device and equipment for detecting total dissolved solids in water tank
By performing multi-level correction strategies on the water pipes and tanks of the water purifier or tea drinker, the problem of low accuracy of the TDS detection circuit is solved, the detection accuracy and production efficiency are improved, and the filter element replacement is facilitated.
Patent Information
- Application Number
- CN202011511138.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-18
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2040-12-18
AI Technical Summary
There is a gap between the TDS value collected by the TDS detection circuit of existing water purifiers or tea drinkers and the real value, and the accuracy is not high, and the existing calibration methods consume manpower and material resources to reduce production efficiency.
By obtaining the total amount of first dissolved solids of the target water pipe corresponding to the target water tank, determining the water pipe correction strategy based on the first mapping relationship is determined and correcting, and obtaining the total amount of second dissolved solids. When the preset error correction conditions are met, the water tank correction strategy based on the second mapping relationship is determined and further correcting is improved to improve detection accuracy.
It improves the accuracy of the total amount of dissolved solids in the water pipe and water tank, facilitates users or maintenance personnel to judge the filtering capacity of the filter element, and saves production costs and time.
Smart Images

Figure CN114646580B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of total dissolved solids detection, and specifically to a method, device, water purification device and equipment for detecting the total dissolved solids in a water tank. Background Art
[0002] The TDS (Total Dissolved Solids) value indicates how many milligrams of dissolved solids are dissolved in 1 liter of water. A higher TDS value indicates more dissolved solids. Most water purifiers and tea dispensers on the market today are equipped with a TDS measurement function. This function typically measures the TDS value of the raw water in the tank and the TDS value of the filtered water after it passes through the filter cartridge. Comparing the raw and filtered TDS values determines whether the filter cartridge's filtration capacity meets standards and, therefore, whether it needs replacement.
[0003] Due to the influence of various factors, the TDS value collected directly using the TDS detection circuit of the water purifier or tea machine is often different from the actual value that needs to be obtained, and the accuracy is not high. The prior art provides a method to improve the accuracy of the TDS numerical detection function of the machine, that is, to perform TDS calibration during the production process of the circuit board of each machine. The principle of TDS calibration is to take the same water sample and use a special TDS calibration tool to determine the calibration coefficient (generally determined according to the ratio of the actual TDS value of the water sample and the actual TDS value measured by the detection circuit), and write the calibration coefficient into the chip. In subsequent use, the circuit board tests the initial TDS value and multiplies it by the calibration coefficient to get the actual TDS value, but this requires the purchase of TDS calibration tooling, and a lot of manpower and material resources are invested in TDS calibration during machine production, which consumes labor and reduces production efficiency. At the same time, it is difficult to ensure that there will be no mistakes during the calibration process. Therefore, it is necessary to provide a more effective solution to improve the accuracy of TDS numerical detection. Summary of the Invention
[0004] In order to solve the problems of the prior art, the present application provides a method, device, water purification device and equipment for detecting the total dissolved solids in a water tank. The technical solution is as follows:
[0005] On the one hand, the present application provides a method for detecting the total dissolved solids in a water tank, the method comprising:
[0006] In response to a total dissolved solids detection instruction for a target water tank, obtaining a first total dissolved solids of a target water pipe corresponding to the target water tank;
[0007] determining a water pipe correction strategy corresponding to the first total amount of dissolved solids based on the first mapping relationship;
[0008] Correcting the first total dissolved solids based on the corresponding water pipe correction strategy to obtain a second total dissolved solids of the target water pipe;
[0009] When it is determined that the second total amount of dissolved solids meets a preset error correction condition, determining a water tank correction strategy corresponding to the second total amount of dissolved solids based on a second mapping relationship;
[0010] The second total dissolved solids amount is corrected based on the corresponding water tank correction strategy to obtain the total dissolved solids amount of the target water tank.
[0011] In one embodiment, the first mapping relationship represents a mapping relationship between a first total dissolved solids interval and a water pipe correction strategy, and the method further includes:
[0012] obtaining a plurality of first total amounts of dissolved solids from the sample water pipe;
[0013] Obtaining a second total dissolved solids value of the sample water tube corresponding to the first total dissolved solids value of the sample water tube using a preset marking device;
[0014] Data processing is performed based on a plurality of first total dissolved solids values of the sample water pipes and corresponding second total dissolved solids values of the sample water pipes to obtain a mapping relationship between the first total dissolved solids value intervals and the water pipe correction strategy.
[0015] In one embodiment, the data processing based on the plurality of first total dissolved solids values of the sample water pipes and the corresponding second total dissolved solids values of the sample water pipes to obtain a mapping relationship between the first total dissolved solids value intervals and the water pipe correction strategy includes:
[0016] determining a ratio of a first total dissolved solids value of the sample water tube to a second total dissolved solids value of the corresponding sample water tube within a preset threshold range corresponding to the first total dissolved solids value;
[0017] determining a first compensation coefficient based on the ratio;
[0018] Determine the difference between the second total dissolved solids value of the sample water tube divided by the first compensation coefficient and the first total dissolved solids value of the corresponding sample water tube;
[0019] Determine a plurality of calculation nodes, wherein the plurality of calculation nodes sequentially correspond to a plurality of first total dissolved solids values in ascending order of numerical value;
[0020] Determine a second compensation coefficient corresponding to each calculation node based on a difference corresponding to the first total dissolved solids corresponding to the calculation node;
[0021] determining, based on the first compensation coefficient and the second compensation coefficients corresponding to the two adjacent computing nodes, a water pipe correction strategy corresponding to the two adjacent computing nodes;
[0022] Determining a first total dissolved solids interval corresponding to the two adjacent calculation nodes;
[0023] Determining, based on the water pipe correction strategies corresponding to the two adjacent calculation nodes, the water pipe correction strategies corresponding to the first total dissolved solids interval corresponding to the two adjacent calculation nodes;
[0024] A mapping relationship between the first total dissolved solids interval and the corresponding water pipe correction strategy is established.
[0025] In one embodiment, the second mapping relationship represents a mapping relationship between a second total dissolved solids interval and a water tank correction strategy, and the method further includes:
[0026] Obtaining a plurality of second total dissolved solids values of the sample water pipes and a total dissolved solid value of the sample water tank corresponding to the second total dissolved solid values of the sample water pipes using a preset marking device;
[0027] Data processing is performed based on the plurality of second total dissolved solids values of the sample water pipes and the corresponding total dissolved solids values of the sample water tanks to obtain a mapping relationship between the second total dissolved solids value intervals and the water tank correction strategy.
[0028] In one embodiment, the data processing based on the plurality of second total dissolved solids values of the sample water pipe and the corresponding total dissolved solids values of the sample water tank to obtain a mapping relationship between the second total dissolved solids value intervals and the water tank correction strategy includes:
[0029] determining a ratio between a second total dissolved solids value of the sample water pipe and a total dissolved solids value of the corresponding sample water tank;
[0030] Determine a plurality of calculation nodes, wherein the plurality of calculation nodes sequentially correspond to a plurality of second total dissolved solids values in ascending order of numerical value;
[0031] Determine a third compensation coefficient corresponding to each calculation node based on a ratio corresponding to the second total dissolved solids corresponding to the calculation node;
[0032] Determining a water tank correction strategy corresponding to the two adjacent computing nodes based on third compensation coefficients corresponding to the two adjacent computing nodes;
[0033] Determining a second total dissolved solids interval corresponding to the two adjacent calculation nodes;
[0034] Based on the water tank correction strategies corresponding to two adjacent computing nodes, determine the water tank correction strategies corresponding to the second total dissolved solids intervals corresponding to the two adjacent computing nodes;
[0035] Establish a mapping relationship between the second total dissolved solids interval and the corresponding water tank correction strategy.
[0036] In one embodiment, the first mapping relationship represents the mapping relationship between the first total dissolved solids interval and the water pipe correction strategy,
[0037] When the first total dissolved solids interval is 0 ≤ x ≤ D1, the corresponding water pipe correction strategy is:
[0038] Y1 = α * x;
[0039] When the first total dissolved solids interval is D1 < x ≤ D2, the corresponding water pipe correction strategy is:
[0040]
[0041] When the first total dissolved solids interval is D2 < x ≤ D3, the corresponding water pipe correction strategy is:
[0042]
[0043] When the first total dissolved solids interval is D3 < x ≤ D4, the corresponding water pipe correction strategy is:
[0044]
[0045] When the first total dissolved solids interval is x > D4, the corresponding water pipe correction strategy is:
[0046] Y1 = α * (x + X4);
[0047] Where, x represents the first total dissolved solids, Y1 represents the second total dissolved solids, α represents the first compensation coefficient, X1, X2, X3, and X4 represent the second compensation coefficients, D1, D2, D3, and D4 represent the computing nodes of the first total dissolved solids, and D4 is greater than D3, D3 is greater than D2, and D2 is greater than D1.
[0048] In one embodiment, the second mapping relationship represents the mapping relationship between the second total dissolved solids interval and the water tank correction strategy,
[0049] When the second total dissolved solids interval is D5 ≤ Y1 ≤ D6, the corresponding water tank correction strategy is:
[0050] y = k1 * Y1 + (Y1 - D5) * (k2 - k1);
[0051] When the total amount of the second dissolved solids is in the range of D6 < Y1 ≤ D7, the corresponding water tank correction strategy is as follows:
[0052] y = k2 * Y1 + (Y1 - D6) * (k3 - k2);
[0053] When the total amount of the second dissolved solids is Y1 > D7, the corresponding water tank correction strategy is as follows:
[0054] y = k3 * Y1;
[0055] Where, Y1 represents the total amount of the second dissolved solids, y represents the total amount of dissolved solids in the water tank, k1, k2, and k3 represent the third compensation coefficients, D5, D6, and D7 represent the calculation nodes of the total amount of the second dissolved solids, and D7 is greater than D6, and D6 is greater than D5.
[0056] In one embodiment, the method further includes:
[0057] When it is determined that the total amount of the second dissolved solids does not meet the preset error correction condition, the total amount of the second dissolved solids is used as the total amount of dissolved solids in the target water tank.
[0058] On the other hand, the present application provides a device for detecting the total amount of dissolved solids in a water tank. The device includes:
[0059] An initial value acquisition module, configured to acquire the total amount of the first dissolved solids of a target water pipe corresponding to the target water tank in response to a detection instruction for the total amount of dissolved solids in the target water tank;
[0060] A first correction strategy determination module, configured to determine a water pipe correction strategy corresponding to the total amount of the first dissolved solids based on a first mapping relationship;
[0061] A first correction module, configured to correct the total amount of the first dissolved solids based on the corresponding water pipe correction strategy to obtain the total amount of the second dissolved solids of the target water pipe;
[0062] A second correction strategy determination module, configured to determine a water tank correction strategy corresponding to the total amount of the second dissolved solids based on a second mapping relationship when it is determined that the total amount of the second dissolved solids meets the preset error correction condition;
[0063] A second correction module, configured to correct the total amount of the second dissolved solids based on the corresponding water tank correction strategy to obtain the total amount of dissolved solids in the target water tank.
[0064] On the other hand, the present application provides a water purification device, and the water purification device includes the above-mentioned device for detecting the total amount of dissolved solids in a water tank.
[0065] On the other hand, the present application provides a device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for detecting the total dissolved solids in the water tank.
[0066] On the other hand, the present application provides a computer-readable storage medium, which stores at least one instruction or at least one program. The at least one instruction or the at least one program is loaded and executed by a processor to implement the method for detecting the total dissolved solids in the water tank.
[0067] The present application provides a method, device, water purification device, and equipment for detecting the total dissolved solids in a water tank, which have the following technical effects:
[0068] The present application determines a water pipe correction strategy corresponding to a first total dissolved solids value of a target water pipe, corrects the first total dissolved solids value based on the corresponding water pipe correction strategy, and obtains a second total dissolved solids value of the target water pipe, which is beneficial to improving the accuracy of the total dissolved solids value obtained at the water pipe; since the cross-sectional area of the water pipe is small and there is dynamic water in the water pipe and static water in the water tank, when it is determined that the second total dissolved solids value meets the preset error correction condition, the water tank correction strategy corresponding to the second total dissolved solids value is determined based on a second mapping relationship, and then the second total dissolved solids value is corrected based on the corresponding water tank correction strategy to obtain the total dissolved solids value of the target water tank, which is equivalent to a secondary correction, and is beneficial to improving the accuracy of the total dissolved solids value of the target water tank obtained, and improving the reliability of the numerical detection of the total dissolved solids value of the water tank, thereby facilitating users or maintenance personnel to further compare the total dissolved solids value before and after filtration to determine the filtration capacity of the filter element.
[0069] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.
[0071] Figure 1 This is a schematic diagram of the application environment of a method for detecting the total amount of dissolved solids in a water tank provided in an embodiment of the present application;
[0072] Figure 2 This is a flow chart of a method for detecting the total dissolved solids in a water tank provided in an embodiment of the present application;
[0073] Figure 3 This is a flow chart of another method for detecting the total dissolved solids in a water tank provided in an embodiment of the present application;
[0074] Figure 4 This is a flow chart of another method for detecting the total dissolved solids in a water tank provided in an embodiment of the present application;
[0075] Figure 5 This is a flow chart of another method for detecting the total dissolved solids in a water tank provided in an embodiment of the present application;
[0076] Figure 6 This is a flow chart of another method for detecting the total dissolved solids in a water tank provided in an embodiment of the present application;
[0077] Figure 7 This is a flow chart of another method for detecting the total dissolved solids in a water tank provided in an embodiment of the present application;
[0078] Figure 8 This is a schematic diagram of a device for detecting the total amount of dissolved solids in a water tank provided in an embodiment of the present application;
[0079] Figure 9 This is a hardware structure block diagram of a server for implementing a method for detecting the total amount of dissolved solids in a water tank provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application. Examples of the embodiments are shown in the accompanying drawings, in which the same or similar numbers throughout represent the same or similar elements or elements with the same or similar functions.
[0081] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. 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 server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0082] Please refer to Figure 1 , Figure 1 Schematic diagram of the application environment of a method for detecting the total dissolved solids in a water tank provided in an embodiment of the present application. This method can be applied to a water purification device. The water purification device in the embodiment of this specification may include but is not limited to a tea machine and a water purifier. Specifically, the application environment may include a raw water tank 100, a self-priming booster pump 200, a raw water filter device 300, a raw water TDS detection circuit 400, and a purified water TDS detection circuit 500. In actual applications, the raw water tank 100 can be used to store raw water. Raw water is unfiltered water and may include but is not limited to tap water or water added by the user. The raw water in the raw water tank 100 can be transported to the raw water filter device 300 through a water pipe by the self-priming booster pump 200 for filtration to obtain purified water. In a specific embodiment, the raw water filtration device 300 may include a pre-composite filter element 301, an RO reverse osmosis filter element 302, and an activated carbon rod filter element 303. In actual applications, a self-priming booster pump 200 may be used to transport the raw water in the raw water tank 100 to the pre-composite filter element 301 through a water pipe. The pre-composite filter element 301 performs the first layer of filtration, and then the water that has passed the first layer of filtration is transported to the RO reverse osmosis filter element 302. The RO reverse osmosis filter element 302 performs the second layer of filtration, and then the water that has passed the second layer of filtration is transported to the activated carbon rod filter element for the third layer of filtration. Layer-by-layer filtration improves the reliability of raw water filtration. In the embodiment of this specification, the raw water TDS detection circuit 400 may include a raw water TDS probe, and the raw water TDS detection circuit 400 may be set at the water inlet pipe of the raw water filtration device 300. In a specific embodiment, such as Figure 1 As shown, the raw water TDS detection circuit 400 can be set at the water inlet pipe of the pre-composite filter element 301. In the embodiment of this specification, the purified water TDS detection circuit 500 can include a purified water TDS probe, and the purified water TDS detection circuit 500 can be set at the water outlet pipe of the raw water filtration device 300. In a specific embodiment, as shown in FIG. Figure 1As shown, when the above-mentioned raw water filtration device 300 includes multiple filter cartridges, the clean water TDS detection circuit 500 can be set at the outlet pipe of the RO reverse osmosis filter cartridge 302, so that the detected raw water TDS value can be compared with the clean water TDS value to determine whether the filtering capacity of the pre-composite filter cartridge 301 and the RO reverse osmosis filter cartridge 302 has reached the target, so as to judge whether the filter cartridge needs to be replaced. In other embodiments, the clean water TDS detection circuit 500 can also be set at the outlet pipe of the pre-composite filter cartridge 301 to determine whether the filtering capacity of the pre-composite filter cartridge 301 has reached the target; or, it can be set at the outlet pipe of the activated carbon rod filter cartridge 303 to determine whether the filtering capacity of the pre-composite filter cartridge 301, the RO reverse osmosis filter cartridge 302 and the activated carbon rod filter cartridge 303 has reached the target. The present application is not limited to this. Figure 1 As shown, the structure of the above-mentioned water purification device can also include an inlet water NTC600 (negative temperature coefficient thermistor) and a flushing solenoid valve 700. The inlet water NTC600 can be set at the outlet pipe of the activated carbon rod filter element. The flushing solenoid valve 700 can be used to transport the concentrated water generated by the RO reverse osmosis filter element 302 back to the raw water tank 100 through a water pipe. The concentrated water has a high density and will settle at the bottom of the tank after entering the raw water tank.
[0083] Figure 2 This is a flow chart of a method for detecting the total amount of dissolved solids in a water tank provided in an embodiment of the present application. Please refer to Figure 2 The method for detecting the total dissolved solids in a water tank provided in this embodiment includes the following steps:
[0084] S201: In response to a total dissolved solids detection instruction for a target water tank, obtaining a first total dissolved solids of a target water pipe corresponding to the target water tank.
[0085] In the embodiments of this specification, the above-mentioned total dissolved solids may include a TDS (Total dissolved solids) value, which is measured in milligrams per liter (mg / L), indicating how many milligrams of dissolved solids are dissolved in 1 liter of water. In practical applications, the higher the TDS value, the more dissolved matter is contained in the water. The TDS value is one of the indicators used to detect the quality of the water effluent from pure water, distilled water, RO membrane (reverse osmosis membrane) water purifier or water purification device. The raw water TDS value in the raw water tank (the TDS value of unfiltered water) and the TDS value of the clean water after filtration by the filter element can be obtained, and the raw water TDS value and the clean water TDS value can be compared to determine whether the filtering capacity of the filter element meets the standard, thereby determining whether the filter element needs to be replaced, etc.
[0086] In the embodiments of this specification, a total dissolved solids detection instruction for the target water tank can be generated and sent by a user clicking a filter element detection button; alternatively, a water purification device (such as a water purifier or a tea machine) can automatically generate a total dissolved solids detection instruction for the target water tank every preset time, so as to regularly detect whether the filtering ability of the filter element meets the standard. Specifically, the preset time can be set according to actual application requirements.
[0087] Please refer to Figure 1 the structural diagram of. The target water pipe can include the water inlet pipe of the raw water filtration device in the target water purification device, and the target water tank can include the raw water tank in the target water purification device. The above-mentioned first total dissolved solids can include: the raw water TDS value at the water inlet pipe of the raw water filtration device obtained by using the raw water TDS detection circuit ( Figure 1 400 in). As Figure 1 shown, the target water tank is connected to the target water pipe. In actual application, obtaining the first total dissolved solids of the target water pipe corresponding to the target water tank can include: calculating by using the raw water TDS detection circuit to collect the charge and discharge time of the capacitor under different currents, and obtaining the first total dissolved solids. However, the TDS value obtained in this way often has a certain gap from the accurate value. Therefore, it is necessary to correct the first total dissolved solids obtained by using the raw water TDS detection circuit.
[0088] S203: Determine the water pipe correction strategy corresponding to the first total dissolved solids based on the first mapping relationship.
[0089] In the embodiments of this specification, the first mapping relationship can represent the mapping relationship between the first total dissolved solids interval and the water pipe correction strategy.
[0090] S205: Correct the first total dissolved solids based on the corresponding water pipe correction strategy to obtain the second total dissolved solids of the target water pipe.
[0091] In the embodiments of this specification, the water pipe correction strategy with the above-mentioned first mapping relationship and the first total dissolved solids interval can be represented by the following formula:
[0092] When the first total dissolved solids interval is 0 ≤ x ≤ D1, the corresponding water pipe correction strategy is:
[0093] Y1 = α * x;
[0094] When the first total dissolved solids interval is D1 < x ≤ D2, the corresponding water pipe correction strategy is:
[0095]
[0096] When the first total dissolved solids range is D2 < x ≤ D3, the corresponding water pipe correction strategy is:
[0097]
[0098] When the first total dissolved solids range is D3 < x ≤ D4, the corresponding water pipe correction strategy is:
[0099]
[0100] When x > D4,
[0101] Y1 = α * (x + X4);
[0102] Where x represents the first total dissolved solids, Y1 represents the second total dissolved solids, α represents the first compensation coefficient, X1, X2, X3, and X4 represent the second compensation coefficients, D1, D2, D3, and D4 represent the calculation nodes of the first total dissolved solids, D1, D2, D3, and D4 are all numerical values and D4 is greater than D3, D3 is greater than D2, and D2 is greater than D1; specifically, the first compensation coefficient (α) and the second compensation coefficients (X1, X2, X3, and X4) can be set in combination with the TDS test results at the inlet pipe of the raw water filtration device. In the embodiments of this specification, various water samples of different qualities can be obtained, and the TDS values (i.e., the first total dissolved solids and the corresponding second total dissolved solids) at the inlet pipe of the raw water filtration device in the sample water purification device are respectively detected by using the built-in raw water TDS detection circuit of the water purification device and a dedicated TDS test instrument, and the mathematical relationship between them is determined according to each set of data, so as to determine the first compensation coefficient (α) and the second compensation coefficients (X1, X2, X3, and X4).
[0103] By correcting the first total dissolved solids based on the corresponding water pipe correction strategy to obtain the second total dissolved solids of the target water pipe, it is beneficial to improve the accuracy of the TDS value obtained at the inlet pipe of the raw water filtration device, thereby facilitating the further determination of the accurate raw water TDS value, and facilitating the subsequent comparison of the TDS values before and after filtration by users or maintenance personnel to determine the filtration capacity of the filter element and whether the filter element needs to be replaced, etc.
[0104] In the embodiments of this specification, as Figure 3 shown, the above method may further include:
[0105] S301: Obtain multiple first total dissolved solids of the sample water pipe.
[0106] In an embodiment of the present specification, the sample water pipe may include an inlet pipe of a raw water filtration device in a sample water purification device, and the multiple first total amounts of dissolved solids of the sample water pipe may include: multiple TDS values at the inlet pipe of the raw water filtration device in the sample water purification device. The raw water TDS detection circuit of the water purification device can be used to perform raw water TDS detection on water samples of different qualities to obtain multiple different first total amounts of dissolved solids, but at this time, there is a certain gap between the first total amount of dissolved solids obtained by using the raw water TDS detection circuit and the accurate value.
[0107] S303: Using a preset marking device, obtain a second total amount of dissolved solids in the sample water tube corresponding to the first total amount of dissolved solids in the sample water tube.
[0108] In the embodiments of this specification, the preset marking device may include a dedicated TDS tester. In practical applications, the dedicated TDS tester can be used to accurately detect the TDS value of a water sample. By using the preset marking device to obtain a second total dissolved solids value of the sample water pipe corresponding to the first total dissolved solids value of the sample water pipe, the preset marking device is used to detect the TDS value at the water inlet pipe of the raw water filtration device in the sample water purification device.
[0109] S305: performing data processing based on the plurality of first total dissolved solids values of the sample water pipes and the corresponding second total dissolved solids values of the sample water pipes to obtain a mapping relationship between the first total dissolved solids value intervals and the water pipe correction strategy.
[0110] By performing data processing based on the multiple first dissolved solid totals of the above-mentioned sample water pipes and the corresponding second dissolved solid totals of the sample water pipes, a mapping relationship between the above-mentioned first dissolved solid total intervals and the water pipe correction strategy, that is, the above-mentioned first mapping relationship, can be obtained.
[0111] For details, please refer to Figure 4 The data processing based on the plurality of first total dissolved solids values of the sample water pipes and the corresponding second total dissolved solids values of the sample water pipes to obtain a mapping relationship between the first total dissolved solids value intervals and the water pipe correction strategy may include:
[0112] S401: Determine a ratio of a first total dissolved solids value of a sample water pipe to a second total dissolved solids value of a corresponding sample water pipe within a preset threshold range corresponding to the first total dissolved solids value.
[0113] Determine the ratio between the TDS value at the water inlet pipe of the raw water filtration device detected by the raw water TDS detection circuit of the water purification device under water samples of the same quality and the TDS value at the water inlet pipe of the raw water filtration device detected by the preset marking device. Subsequently, multiple ratios can be used to determine how to correct the first total dissolved solids to obtain a more accurate TDS value at the water inlet pipe of the raw water filtration device.
[0114] By obtaining multiple first dissolved solid totals of the sample water pipes, and using a preset marking device to obtain a second dissolved solid total of the sample water pipe corresponding to the first dissolved solid total of the sample water pipe, it is beneficial to aggregate a large amount of data, determine a ratio using multiple sets of data, and further determine the required compensation coefficient to determine the corresponding water pipe correction strategy, thereby improving the reliability of the determined water pipe correction strategy.
[0115] S403: Determine a first compensation coefficient based on the ratio.
[0116] In the embodiments of this specification, by summarizing and verifying data from multiple groups of water samples of the same quality, it was determined that when the first total dissolved solids content is small, a proportional relationship exists between the first total dissolved solids content of the sample water pipe and the second total dissolved solids content of the corresponding sample water pipe. The preset threshold range can be determined based on actual application requirements or in combination with actual TDS test results. In actual applications, the preset threshold range can include 0 to D1. That is, when 0 ≤ x ≤ D1, a first compensation coefficient (i.e., α in the above formula) is determined based on the corresponding ratio. In this case, the first total dissolved solids content is multiplied by the first compensation coefficient to obtain the corresponding second total dissolved solids content.
[0117] As the first total dissolved solids amount increases, the gap between the first total dissolved solids amount and the corresponding second total dissolved solids amount increases. By summarizing and testing multiple groups of data from water samples of the same quality, it is determined that the first total dissolved solids amount needs to be compensated by a certain value and then multiplied by the first compensation coefficient.
[0118] S405: Determine the difference between the second total dissolved solids value of the sample water pipe divided by the first compensation coefficient and the first total dissolved solids value of the corresponding sample water pipe.
[0119] S407: Determine multiple computing nodes.
[0120] Specifically, the plurality of calculation nodes correspond in sequence to a plurality of first total amounts of dissolved solids in ascending order of numerical value.
[0121] S409: Determine a second compensation coefficient corresponding to each calculation node based on the difference corresponding to the first total dissolved solids corresponding to the calculation node.
[0122] In a specific embodiment, the calculation nodes may include but are not limited to: x=0, x=D1, x=D2, x=D3, x=D4, x=D5... (D1, D2, D3, D4 and D5 are all numerical values and D5 is greater than D4, D4 is greater than D3, D3 is greater than D2, and D2 is greater than D1); according to the difference corresponding to the first total dissolved solids corresponding to each calculation node obtained by the test, when x≤D1 is determined, there is no need to compensate x first, and it is only necessary to directly multiply it by the first compensation coefficient α; when x=D2, it is necessary to first compensate x by X1, and then multiply it by the first compensation coefficient α; when x=D3, it is necessary to first compensate x by X2, and then multiply it by the first compensation coefficient α; when x=D4, it is necessary to first compensate x by X3, and then multiply it by the first compensation coefficient α; when x>D4 (for example, when x=D5), it is necessary to first compensate x by X4, and then multiply it by the first compensation coefficient α; wherein, X1 <X2<X3<X4。
[0123] S411: Based on the first compensation coefficient and the second compensation coefficients corresponding to the two adjacent computing nodes, determine the water pipe correction strategies corresponding to the two adjacent computing nodes.
[0124] In the embodiment of this specification, the water pipe correction strategy corresponding to the above-mentioned computing node may include the following formula:
[0125] When x=0, x=D1,
[0126] Y1=α*x;
[0127] When x=D2,
[0128] Y1=α*(x+X1);
[0129] When x=D3,
[0130] Y1=α*(x+X2);
[0131] When x=D4,
[0132] Y1=α*(x+X3);
[0133] When x>D4 (e.g. x=D5),
[0134] Y1=α*(x+X4);
[0135] S413: Determine a first total dissolved solids amount interval corresponding to the two adjacent calculation nodes.
[0136] In the embodiments of this specification, when the above computing nodes include: x = 0, x = D1, x = D2, x = D3, x = D4...; the first total dissolved solids range corresponding to two adjacent computing nodes may include: 0 ≤ x ≤ D1, D1 < x ≤ D2, D2 < x ≤ D3, D3 < x ≤ D4, D4 < x < D5....
[0137] S415: Based on the water pipe correction strategy corresponding to the two adjacent computing nodes, determine the water pipe correction strategy corresponding to the first total dissolved solids range corresponding to the two adjacent computing nodes.
[0138] In the embodiments of this specification, when 0 ≤ x ≤ D1, since no compensation is required and only need to multiply by the coefficient α, the water pipe correction strategy corresponding to this first total dissolved solids range may include the following formula:
[0139] Y1 = α * x;
[0140] When D1 < x ≤ D2, since no compensation is required for x when x = D1 and compensation of X1 is required for x when x = D2, so when D1 < x ≤ D2, x can be compensated proportionally by X1 first and then multiplied by the coefficient α. Specifically, it can be based on the following formula:
[0141]
[0142] When D2 < x ≤ D3, since compensation of X1 is required for x when x = D2 and compensation of X2 is required for x when x = D3, so in the range of D2 < x ≤ D3, x can be fully compensated by X1 first, then compensated proportionally by the difference between X2 and X1, and then multiplied by the coefficient α. Specifically, it can be based on the following formula:
[0143]
[0144] When D3 < x ≤ D4, similarly, since compensation of X2 is required for x when x = D3 and compensation of X3 is required for x when x = D4, so in the range of D3 < x ≤ D4, x can be fully compensated by X2 first, then compensated proportionally by the difference between X3 and X2, and then multiplied by the coefficient α. Specifically, it can be based on the following formula:
[0145]
[0146] Since for each computing node where x > D4, x is compensated by X4 and then multiplied by the coefficient α, so in each range where x > D4, the corresponding water pipe correction strategy may include the following formula:
[0147] Y1 = α * (x + X4);
[0148] S417: Establishing a mapping relationship between the first total dissolved solids interval and the corresponding water pipe correction strategy.
[0149] Since the value of x that needs to be compensated for when the first total dissolved solids changes may be different (for example, as the first total dissolved solids increases, more values of x need to be compensated for first), by determining multiple computing nodes and determining the water pipe correction strategies corresponding to the computing nodes, the water pipe correction strategies corresponding to the first total dissolved solids intervals corresponding to two adjacent computing nodes are determined. Different correction strategies are determined for the first total dissolved solids in different numerical intervals, which is conducive to making the water pipe correction strategy adaptable to a variety of different first total dissolved solids, improving the reliability and applicability of the determined water pipe correction strategy, and being flexible and convenient. Establishing a mapping relationship between the first total dissolved solids interval and the corresponding water pipe correction strategy is conducive to quickly and accurately determining the corresponding water pipe correction strategy in subsequent practical applications, and improving the accuracy of the TDS value obtained at the water inlet pipe of the raw water filtration device. The water pipe correction strategy with the first total dissolved solids interval having the above-mentioned first mapping relationship is pre-written into the chip, eliminating the need for TDS calibration during machine production, saving manpower and material resources, improving production efficiency, and avoiding errors that may occur in the calibration process.
[0150] S207: When it is determined that the second total amount of dissolved solids meets the preset error correction condition, a water tank correction strategy corresponding to the second total amount of dissolved solids is determined based on the second mapping relationship.
[0151] Please refer to Figure 1 As shown in the structural diagram, in the design of the water purification device, the raw water TDS detection circuit 400 is arranged at the water inlet pipe of the raw water filtration device, the cross-sectional area of the water inlet pipe is small, and the raw water TDS detection circuit tests the TDS value of dynamic water, while the raw water tank 100 contains static water. As the TDS value increases, the second total amount of dissolved solids obtained after the first correction (the TDS value at the water inlet pipe of the raw water filtration device) will be somewhat different from the required TDS value of the water in the raw water tank. It is necessary to make a secondary correction to the second total amount of dissolved solids.
[0152] In an embodiment of the present specification, the preset error correction condition may include: the second total amount of dissolved solids is greater than or equal to a preset threshold value, and the preset threshold value may be set in combination with the TDS test results or according to actual application requirements; in a specific embodiment, the preset threshold value may include D5, that is, when it is determined that the second total amount of dissolved solids is greater than or equal to D5 (that is, Y1≥D5), the water tank correction strategy corresponding to the second total amount of dissolved solids is determined based on the second mapping relationship.
[0153] In the embodiments of this specification, the second mapping relationship represents the mapping relationship between the second total dissolved solids range and the water tank correction strategy.
[0154] S209: Correct the above-mentioned second total dissolved solids based on the corresponding water tank correction strategy to obtain the total dissolved solids of the target water tank.
[0155] In the embodiments of this specification, the water tank correction strategy with the above-mentioned second mapping relationship and the second total dissolved solids range can be represented by the following formula:
[0156] When the second total dissolved solids range is D5 ≤ Y1 ≤ D6, the corresponding water tank correction strategy is:
[0157] y = k1 * Y1 + (Y1 - D5) * (k2 - k1);
[0158] When the second total dissolved solids range is D6 < Y1 ≤ D7, the corresponding water tank correction strategy is:
[0159] y = k2 * Y1 + (Y1 - D6) * (k3 - k2);
[0160] When the second total dissolved solids range is Y1 > D7, the corresponding water tank correction strategy is:
[0161] y = k3 * Y1;
[0162] Where, Y1 represents the second total dissolved solids, y represents the total dissolved solids of the water tank, k1, k2, and k3 represent the third compensation coefficients, D5, D6, and D7 represent the calculation nodes of the second total dissolved solids, D5, D6, and D7 are all numerical values and D7 is greater than D6, D6 is greater than D5. In one embodiment, D5 is greater than the calculation node D4 of the second total dissolved solids; specifically, the third compensation coefficients (k1, k2, and k3) can be set in combination with the TDS test results of the water tank. In the embodiments of this specification, multiple water samples of different qualities can be obtained, and the TDS values at the inlet pipe of the raw water filter device in the sample water purification device and the corresponding TDS values in the raw water tank are respectively tested using a preset marking device, and the ratio is determined based on each set of data, and the third compensation coefficients (k_{1}, k_{2}, and k_{3}) are determined in combination with multiple ratios.
[0163] By correcting the second total dissolved solids based on the corresponding water tank correction strategy to obtain the total dissolved solids of the target water tank, it is equivalent to performing a secondary correction, which is beneficial to improving the accuracy of the TDS value of the obtained target water tank, facilitating subsequent comparison of the TDS values before and after filtration by users or maintenance personnel, determining the filtration capacity of the filter element, and whether the filter element needs to be replaced, etc.
[0164] In the embodiments of this specification, Figure 5 As shown, the second mapping relationship can represent the mapping relationship between the second total dissolved solids interval and the water tank correction strategy. The method can also include:
[0165] S501: Using a preset marking device, obtain a plurality of second total amounts of dissolved solids of a sample water pipe and a total amount of dissolved solids of a sample water tank corresponding to the second total amounts of dissolved solids of the sample water pipe.
[0166] In the embodiments of this specification, the preset marking device may include a dedicated TDS tester. In practical applications, the dedicated TDS tester can be used to accurately detect the TDS value of a water sample. By using the preset marking device to obtain multiple second total dissolved solids values of the sample water pipe for water samples of the same quality, and the total dissolved solids values of the sample water tank corresponding to the second total dissolved solids values of the sample water pipe, the preset marking device can be used to detect the TDS value at the water inlet pipe of the raw water filtration device in the sample water purification device and the corresponding TDS value in the raw water tank for water samples of the same quality.
[0167] S503: performing data processing based on the plurality of second total dissolved solids of the sample water pipes and the corresponding total dissolved solids of the sample water tanks to obtain a mapping relationship between the second total dissolved solids intervals and the water tank correction strategy.
[0168] By performing data processing based on the multiple second dissolved solid totals of the above-mentioned sample water pipes and the corresponding dissolved solid totals of the sample water tanks, a mapping relationship between the above-mentioned second dissolved solid total intervals and the water tank correction strategy, that is, the above-mentioned second mapping relationship, can be obtained.
[0169] For details, please refer to Figure 6 The data processing based on the plurality of second total dissolved solids values of the sample water pipes and the corresponding total dissolved solids values of the sample water tanks to obtain the mapping relationship between the second total dissolved solids value intervals and the water tank correction strategy may include:
[0170] S601: Determine a ratio between a second total dissolved solids content of the sample water pipe and a corresponding total dissolved solids content of the sample water tank.
[0171] By using a preset marking device to obtain multiple second dissolved solid totals of the sample water pipe and the dissolved solid totals of the sample water tank corresponding to the second dissolved solid totals of the sample water pipe, it is beneficial to aggregate a large amount of data, use multiple sets of data to determine the ratio, and further determine the required compensation coefficient to determine the corresponding water tank correction strategy, thereby improving the reliability of the determined water tank correction strategy.
[0172] S603: Determine multiple computing nodes.
[0173] Specifically, the multiple computing nodes described above respectively correspond to multiple second total dissolved solids in ascending order of numerical magnitude.
[0174] S605: Determine the third compensation coefficient corresponding to each computing node based on the ratio corresponding to the second total dissolved solids corresponding to each computing node.
[0175] In a specific embodiment, the computing node may include, but is not limited to: Y1 = D5, Y1 = D6, Y1 = D7, Y1 = D8... (D5, D6, D7, and D8 are all numerical values and D8 > D7, D7 > D6, D6 > D5); according to the ratio corresponding to the first total dissolved solids corresponding to each computing node obtained by testing, when Y1 = D5, the corresponding third compensation coefficient is k1; when Y1 = D6, the corresponding third compensation coefficient is k2; when Y1 = D7 and above, the corresponding third compensation coefficient is k3; where k1 < k2 < k3.
[0176] S607: Determine the water tank correction strategy corresponding to the two adjacent computing nodes based on the third compensation coefficients corresponding to the two adjacent computing nodes.
[0177] In the embodiments of this specification, the water pipe correction strategy corresponding to each computing node may include the following formula:
[0178] When Y1 = D5,
[0179] y = k1 * Y1;
[0180] When Y1 = D六,
[0181] y = k2 * Y1;
[0182] When Y1 = D7 and above,
[0183] y = k3 * Y1;
[0184] S609: Determine the second total dissolved solids interval corresponding to the two adjacent computing nodes.
[0185] S611: Determine the water tank correction strategy corresponding to the second total dissolved solids interval corresponding to the two adjacent computing nodes based on the water tank correction strategy corresponding to the two adjacent computing nodes.
[0186] When D5 ≤ Y六 ≤ D6,
[0187] y = k1 * Y1 + (Y1 - D5) * (k2 - k1);
[0188] When D6 < Y1 ≤ D7,
[0189] y = k2 * Y1 + (Y1 - D6) * (k3 - k2);
[0190] When Y1 > D7,
[0191] y = k3 * Y1;
[0192] When D5 ≤ Y1 ≤ D6, since the third compensation coefficient k1 needs to be multiplied when Y1 = D5 and the third compensation coefficient k2 needs to be multiplied when Y1 = D6, so when D5 ≤ Y1 ≤ D6, Y1 can be first multiplied by k1, and then the part of Y1 more than D5 is multiplied by the difference between k2 and k1. The water tank correction strategy corresponding to this second total dissolved solids interval can include the following formula:
[0193] y = k1 * Y1 + (Y1 - D5) * (k2 - k1);
[0194] When D6 < Y1 ≤ D7, since the third compensation coefficient k2 needs to be multiplied when Y1 = D6 and the third compensation coefficient k3 needs to be multiplied when Y1 = D7, so when D6 < Y1 ≤ D7, Y1 can be first multiplied by k2, and then the part of Y1 more than D6 is multiplied by the difference between k3 and k2. The water tank correction strategy corresponding to this second total dissolved solids interval can include the following formula:
[0195] y = k2 * Y1 + (Y1 - D6) * (k3 - k2);
[0196] Since at each calculation node where Y1 > D7, Y1 is multiplied by the third compensation coefficient k3, so in each interval where Y1 > D7, the corresponding water tank correction strategy can include the following formula:
[0197] y = k3 * Y1;
[0198] S613: Establish a mapping relationship between the above second total dissolved solids interval and the corresponding water tank correction strategy.
[0199] Since when the total amount of the first dissolved solids changes, the value of the proportionality coefficient to be multiplied by Y1 may be different (for example, as the total amount of the second dissolved solids increases, a larger proportionality coefficient needs to be multiplied). By determining multiple calculation nodes and determining the water tank correction strategy corresponding to each calculation node, so as to determine the water tank correction strategy corresponding to the interval of the total amount of the second dissolved solids between two adjacent calculation nodes, and determining different correction strategies for different numerical intervals of the total amount of the second dissolved solids is beneficial to making the water tank correction strategy adapt to a variety of different total amounts of the second dissolved solids, improving the reliability and applicability of the determined water tank correction strategy, being flexible and convenient; establishing the mapping relationship between the interval of the total amount of the second dissolved solids and the corresponding water tank correction strategy is beneficial to quickly and accurately determining the corresponding water tank correction strategy during the subsequent actual application process, and improving the accuracy of the TDS value obtained in the water tank. The water tank correction strategy with the above second mapping relationship and the interval of the total amount of the second dissolved solids are pre-written into the chip in advance, without performing TDS calibration during machine production, saving manpower and material resources, improving production efficiency, and avoiding errors that may occur during the calibration process.
[0200] In the embodiments of this specification, as Figure 7 shown, the method may further include:
[0201] S701: When it is determined that the total amount of the second dissolved solids does not meet the preset error correction condition, use the total amount of the second dissolved solids as the total amount of the dissolved solids in the target water tank.
[0202] Since in actual applications, when the total amount of the second dissolved solids is small (for example, the total amount of the second dissolved solids is less than D5 (i.e., Y1 < D5)), the difference between the total amount of the second dissolved solids and the TDS value of the water in the original water tank required is not obvious. Therefore, at this time, the total amount of the second dissolved solids can be directly used as the total amount of the dissolved solids in the target water tank.
[0203] The present application obtains a first total dissolved solids value of a target water pipe corresponding to the target water tank in response to a total dissolved solids detection instruction for a target water tank, determines a water pipe correction strategy corresponding to the first total dissolved solids value based on a first mapping relationship, and corrects the first total dissolved solids value based on the corresponding water pipe correction strategy to obtain a second total dissolved solids value of the target water pipe, which is beneficial to improving the accuracy of the TDS value obtained at the water inlet pipe of the raw water filtration device. Since, in the design of the water purification device, the raw water TDS detection circuit is arranged at the water inlet pipe of the raw water filtration device, the cross-sectional area of the water pipe is small, and the raw water TDS detection circuit tests dynamic water, and the raw water tank is For static water, as the TDS value increases, the second total dissolved solids value obtained after the first correction will differ from the required TDS value of the water in the original water tank. When it is determined that the second total dissolved solids value meets the preset error correction condition, a water tank correction strategy corresponding to the second total dissolved solids value is determined based on the second mapping relationship, and the second total dissolved solids value is corrected based on the corresponding water tank correction strategy to obtain the total dissolved solids value of the target water tank. This is equivalent to a second correction, which is beneficial to improving the accuracy of the obtained target water tank TDS value and facilitating the user or maintenance personnel to compare the TDS values before and after filtration to determine the filtration capacity of the filter element. Since the value of x that needs to be compensated may be different when the first total dissolved solids value changes (for example, as the first total dissolved solids value increases, a larger value of x needs to be compensated), by obtaining multiple sets of sample data, determining multiple calculation nodes, and determining the water pipe correction strategy corresponding to the calculation node, thereby determining the water pipe correction strategy corresponding to the first total dissolved solids value interval corresponding to two adjacent calculation nodes. This helps to adapt the water pipe correction strategy to a variety of different first total dissolved solids values, improve the reliability and applicability of the determined water pipe correction strategy, and make it flexible and convenient. Accordingly, since the value of the proportional coefficient that needs to be multiplied by Y1 may be different when the first total amount of dissolved solids changes (for example, as the second total amount of dissolved solids increases, a larger proportional coefficient needs to be multiplied), by determining multiple calculation nodes and determining the water tank correction strategy corresponding to the calculation node, in order to determine the water tank correction strategy corresponding to the second total amount of dissolved solids interval corresponding to two adjacent calculation nodes, it is beneficial to make the water tank correction strategy adapt to a variety of different second total amounts of dissolved solids, improve the reliability and applicability of the determined water tank correction strategy, and be flexible and convenient. The water tank correction strategy with the above-mentioned second mapping relationship and the second total amount of dissolved solids interval are written into the chip in advance, and there is no need to perform TDS calibration during machine production, which saves manpower and material resources, improves production efficiency, and avoids errors that may occur in the calibration process.
[0204] The present application also provides a device for detecting the total amount of dissolved solids in a water tank. Figure 8 As shown, the above device includes:
[0205] An initial value acquisition module 810 is configured to acquire a first total dissolved solids content of a target water pipe corresponding to the target water tank in response to a total dissolved solids content detection instruction for the target water tank;
[0206] A first correction strategy determination module 820 is configured to determine a water pipe correction strategy corresponding to the first total dissolved solids amount based on a first mapping relationship;
[0207] A first correction module 830 is configured to correct the first total dissolved solids based on the corresponding water pipe correction strategy to obtain a second total dissolved solids of the target water pipe;
[0208] A second correction strategy determination module 840 is configured to determine, based on a second mapping relationship, a water tank correction strategy corresponding to the second total amount of dissolved solids when it is determined that the second total amount of dissolved solids satisfies a preset error correction condition;
[0209] The second correction module 850 is configured to correct the second total dissolved solids based on the corresponding water tank correction strategy to obtain the total dissolved solids of the target water tank.
[0210] In one embodiment, the above-mentioned total dissolved solids detection device for the water tank may further include:
[0211] A first sample data acquisition module is used to obtain a plurality of first dissolved solid total amounts of the sample water pipe;
[0212] a second sample data acquisition module, configured to acquire a second total dissolved solids value of the sample water tube corresponding to the first total dissolved solids value of the sample water tube using a preset marking device;
[0213] The first data processing module is used to perform data processing based on multiple first dissolved solid totals of the sample water pipes and corresponding second dissolved solid totals of the sample water pipes to obtain a mapping relationship between the first dissolved solid total intervals and the water pipe correction strategy.
[0214] Specifically, the first data processing module may include:
[0215] a first ratio determination unit, configured to determine a ratio of a first total dissolved solids value of the sample water tube to a second total dissolved solids value of the corresponding sample water tube within a preset threshold range corresponding to the first total dissolved solids value;
[0216] a first compensation coefficient determining unit, configured to determine a first compensation coefficient based on the ratio;
[0217] a difference determination unit, configured to determine a difference between a value obtained by dividing the second total dissolved solids value of the sample water tube by the first compensation coefficient and the first total dissolved solids value of the corresponding sample water tube;
[0218] A first calculation node determination unit is used to determine a plurality of calculation nodes, wherein the plurality of calculation nodes sequentially correspond to a plurality of first total dissolved solids values in ascending order of numerical value;
[0219] a second compensation coefficient determining unit, configured to determine a second compensation coefficient corresponding to each calculation node based on a difference corresponding to the first total dissolved solids amount corresponding to the calculation node;
[0220] The node water pipe correction strategy determining unit is configured to determine the water pipe correction strategies corresponding to the two adjacent computing nodes based on the first compensation coefficient and the second compensation coefficients corresponding to the two adjacent computing nodes.
[0221] A first interval determining unit, configured to determine a first total dissolved solids interval corresponding to the two adjacent calculation nodes;
[0222] a first interval strategy determination unit, configured to determine, based on the water pipe correction strategies corresponding to the two adjacent computing nodes, a water pipe correction strategy corresponding to the first total dissolved solids interval corresponding to the two adjacent computing nodes;
[0223] The first mapping relationship establishing unit is configured to establish a mapping relationship between the first total dissolved solids interval and the corresponding water pipe correction strategy.
[0224] In another embodiment, the above-mentioned total dissolved solids detection device for the water tank may further include:
[0225] a third sample data acquisition module, configured to acquire, by using a preset marking device, a plurality of second total dissolved solid values of the sample water pipe and a total dissolved solid value of the sample water tank corresponding to the second total dissolved solid values of the sample water pipe;
[0226] The second data processing module is used to perform data processing based on the plurality of second dissolved solid total amounts of the sample water pipes and the corresponding dissolved solid total amounts of the sample water tanks to obtain a mapping relationship between the second dissolved solid total amount intervals and the water tank correction strategy.
[0227] Specifically, the second data processing module may include:
[0228] a second ratio determination unit, configured to determine a ratio between a second total dissolved solids content of the sample water pipe and a total dissolved solids content of the corresponding sample water tank;
[0229] A second calculation node determination unit is used to determine a plurality of calculation nodes, wherein the plurality of calculation nodes sequentially correspond to a plurality of second total dissolved solids values in ascending order of numerical value;
[0230] a third compensation coefficient determining unit, configured to determine a third compensation coefficient corresponding to each calculation node based on a ratio corresponding to the second total dissolved solids amount corresponding to the calculation node;
[0231] a node water tank correction strategy determining unit, configured to determine the water tank correction strategies corresponding to the two adjacent computing nodes based on the third compensation coefficients corresponding to the two adjacent computing nodes;
[0232] A second interval determining unit, configured to determine a second total dissolved solids interval corresponding to the two adjacent calculation nodes;
[0233] A second interval strategy determination unit is configured to determine, based on the water tank correction strategies corresponding to the two adjacent computing nodes, a water tank correction strategy corresponding to the second total dissolved solids interval corresponding to the two adjacent computing nodes;
[0234] The second mapping relationship establishing unit is used to establish a mapping relationship between the second total dissolved solids interval and the corresponding water tank correction strategy.
[0235] In another embodiment, the above-mentioned total dissolved solids detection device for the water tank may further include:
[0236] The water tank total dissolved solids determination module is configured to use the second total dissolved solids as the total dissolved solids of the target water tank when it is determined that the second total dissolved solids does not meet the preset error correction condition.
[0237] Specifically, the modules of the device for detecting the total amount of dissolved solids in a water tank can be coupled and communicated with each other via a bus.
[0238] The total dissolved solids detection device of the water tank provided in the embodiment of the present application obtains the first total dissolved solids of the target water pipe corresponding to the target water tank in response to the total dissolved solids detection instruction of the target water tank, determines the water pipe correction strategy corresponding to the first total dissolved solids based on the first mapping relationship, and corrects the first total dissolved solids based on the corresponding water pipe correction strategy to obtain the second total dissolved solids of the target water pipe, which is beneficial to improving the accuracy of the TDS value obtained at the water inlet pipe of the raw water filtration device. Since in the design of the water purification device, the raw water TDS detection circuit is set at the water inlet pipe of the raw water filtration device, the cross-sectional area of the water pipe is small, and the raw water TDS detection circuit tests It is dynamic water, and the raw water tank is static water. As the TDS value increases, there will be a certain gap between the second total dissolved solids value obtained after the first correction and the required TDS value of the water in the raw water tank. When it is determined that the second total dissolved solids value meets the preset error correction condition, the water tank correction strategy corresponding to the second total dissolved solids value is determined based on the second mapping relationship, and the second total dissolved solids value is corrected based on the corresponding water tank correction strategy to obtain the total dissolved solids value of the target water tank, which is equivalent to a secondary correction, which is beneficial to improving the accuracy of the TDS value of the target water tank obtained, and is convenient for users or maintenance personnel to compare the TDS values before and after filtration to determine the filtration capacity of the filter element. Since the value of x that needs to be compensated for when the first total dissolved solids changes may be different (for example, as the first total dissolved solids increases, more values of x need to be compensated for), by obtaining multiple sets of sample data, determining multiple calculation nodes, and determining the water pipe correction strategy corresponding to the calculation node, thereby determining the water pipe correction strategy corresponding to the first total dissolved solids interval corresponding to two adjacent calculation nodes, it is beneficial to make the water pipe correction strategy adapt to a variety of different first total dissolved solids, improve the reliability and applicability of the determined water pipe correction strategy, and be flexible and convenient. Correspondingly, since the value of the proportional coefficient that needs to be multiplied by Y1 may be different when the first total dissolved solids changes (for example, as the second total dissolved solids increases, a larger proportional coefficient needs to be multiplied), by determining multiple calculation nodes and determining the water tank correction strategy corresponding to the calculation node, thereby determining the water tank correction strategy corresponding to the second total dissolved solids interval corresponding to two adjacent calculation nodes, it is beneficial to make the water tank correction strategy adapt to a variety of different second total dissolved solids, improve the reliability and applicability of the determined water tank correction strategy, and be flexible and convenient. The water tank correction strategy with the above-mentioned second mapping relationship and the second total dissolved solids interval are written into the chip in advance, eliminating the need for TDS calibration during machine production, saving manpower and material resources, improving production efficiency, and avoiding errors that may occur during the calibration process.
[0239] An embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for detecting the total amount of dissolved solids in a water tank as provided in the above-mentioned method embodiment.
[0240] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area. The program storage area can store the operating system, application programs required for the functions, etc.; the data storage area can store data created based on the use of the device, etc. In addition, the memory can include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0241] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal, a server or a similar computing device, that is, the above-mentioned computer device can include a mobile terminal, a computer terminal, a server or a similar computing device. Taking running on a server as an example, Figure 9 This is a hardware structure block diagram of a server for a method for detecting the total amount of dissolved solids in a water tank provided in an embodiment of the present application. Figure 9 As shown, the server 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 910 (the processor 910 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 930 for storing data, and one or more storage media 920 (such as one or more mass storage devices) for storing application programs 923 or data 922. Among them, the memory 930 and the storage medium 920 can be temporary storage or permanent storage. The program stored in the storage medium 920 may include one or more modules, each module may include a series of instruction operations on the server. Furthermore, the central processing unit 910 can be configured to communicate with the storage medium 920 and execute a series of instruction operations in the storage medium 920 on the server 900. The server 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input and output interfaces 940, and / or, one or more operating systems 921, such as Windows Server TM , Mac OS X TM , UnixTM ,Linux TM , FreeBSD TM etc.
[0242] The input / output interface 940 can be used to receive or send data via a network. Specific examples of the aforementioned network may include a wireless network provided by a communications provider of the server 900. In one embodiment, the input / output interface 940 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one embodiment, the input / output interface 940 can be a radio frequency (RF) module for wirelessly communicating with the Internet.
[0243] It can be understood by those skilled in the art that Figure 9 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 9 More or fewer components than shown, or with Figure 9 Different configurations shown.
[0244] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a server to store at least one instruction or at least one program related to a method for detecting the total amount of dissolved solids in a water tank in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method for detecting the total amount of dissolved solids in a water tank provided in the above method embodiment.
[0245] Optionally, in this embodiment, the storage medium may be located in at least one of a plurality of network servers in a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0246] It can be seen from the embodiments of the total dissolved solids detection method, device, water purification device and equipment of the water tank provided by the above-mentioned present application that the present application obtains the first total dissolved solids of the target water pipe corresponding to the target water tank in response to the total dissolved solids detection instruction of the target water tank, determines the water pipe correction strategy corresponding to the first total dissolved solids based on the first mapping relationship, and corrects the first total dissolved solids based on the corresponding water pipe correction strategy to obtain the second total dissolved solids of the target water pipe, which is beneficial to improving the accuracy of the TDS value obtained at the water inlet pipe of the raw water filtration device. Since in the design of the water purification device, the raw water TDS detection circuit is arranged at the water inlet pipe of the raw water filtration device, the cross-sectional area of the water pipe is small, and the raw water TDS value is 0.01%. The water TDS detection circuit tests dynamic water, and the raw water tank contains static water. As the TDS value increases, there will be a certain gap between the second total dissolved solids value obtained after the first correction and the required TDS value of the water in the raw water tank. When it is determined that the second total dissolved solids value meets the preset error correction condition, the water tank correction strategy corresponding to the second total dissolved solids value is determined based on the second mapping relationship. The second total dissolved solids value is corrected based on the corresponding water tank correction strategy to obtain the total dissolved solids value of the target water tank, which is equivalent to a secondary correction. It is beneficial to improve the accuracy of the TDS value of the target water tank obtained, and facilitates users or maintenance personnel to compare the TDS values before and after filtration to determine the filtering capacity of the filter element. Since the value of x that needs to be compensated for when the first total dissolved solids changes may be different (for example, as the first total dissolved solids increases, more values of x need to be compensated for), by obtaining multiple sets of sample data, determining multiple calculation nodes, and determining the water pipe correction strategy corresponding to the calculation node, thereby determining the water pipe correction strategy corresponding to the first total dissolved solids interval corresponding to two adjacent calculation nodes, it is beneficial to make the water pipe correction strategy adapt to a variety of different first total dissolved solids, improve the reliability and applicability of the determined water pipe correction strategy, and be flexible and convenient. Correspondingly, since the value of the proportional coefficient that needs to be multiplied by Y1 may be different when the first total dissolved solids changes (for example, as the second total dissolved solids increases, a larger proportional coefficient needs to be multiplied), by determining multiple calculation nodes and determining the water tank correction strategy corresponding to the calculation node, thereby determining the water tank correction strategy corresponding to the second total dissolved solids interval corresponding to two adjacent calculation nodes, it is beneficial to make the water tank correction strategy adapt to a variety of different second total dissolved solids, improve the reliability and applicability of the determined water tank correction strategy, and be flexible and convenient. The water tank correction strategy with the above-mentioned second mapping relationship and the second total dissolved solids interval are written into the chip in advance, eliminating the need for TDS calibration during machine production, saving manpower and material resources, improving production efficiency, and avoiding errors that may occur during the calibration process.
[0247] It should be noted that the order of the embodiments of the present application described above is for descriptive purposes only and does not represent the superiority or inferiority of the embodiments. The above description is of specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0248] The various embodiments in this specification are described in a progressive manner. Similar portions between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the device, equipment, and storage medium embodiments are generally similar to the method embodiments, so their descriptions are relatively simplified. For relevant portions, refer to the descriptions of the method embodiments.
[0249] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0250] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for detecting the total dissolved solids in a water tank, characterized in that: The method comprises: In response to a total dissolved solids detection instruction for a target water tank, obtaining a first total dissolved solids of a target water pipe corresponding to the target water tank; determining a water pipe correction strategy corresponding to the first total amount of dissolved solids based on the first mapping relationship; Correcting the first total dissolved solids based on the corresponding water pipe correction strategy to obtain a second total dissolved solids of the target water pipe; When it is determined that the second total amount of dissolved solids meets a preset error correction condition, determining a water tank correction strategy corresponding to the second total amount of dissolved solids based on a second mapping relationship; Correcting the second total dissolved solids based on the corresponding water tank correction strategy to obtain the total dissolved solids of the target water tank; The first mapping relationship represents a mapping relationship between a first total dissolved solids interval and a water pipe correction strategy, and the method further includes: obtaining a plurality of first total amounts of dissolved solids from the sample water pipe; Obtaining a second total dissolved solids value of the sample water tube corresponding to the first total dissolved solids value of the sample water tube using a preset marking device; determining a first compensation coefficient based on a ratio of a first total dissolved solids value of the sample water tube to a second total dissolved solids value of the corresponding sample water tube within a preset threshold range corresponding to the first total dissolved solids value; Determine the difference between the second total dissolved solids value of the sample water tube divided by the first compensation coefficient and the first total dissolved solids value of the corresponding sample water tube; Determine a plurality of calculation nodes, wherein the plurality of calculation nodes sequentially correspond to a plurality of first total dissolved solids values in ascending order of numerical value; Determine a second compensation coefficient corresponding to each calculation node based on a difference corresponding to the first total dissolved solids corresponding to the calculation node; determining, based on the first compensation coefficient and the second compensation coefficients corresponding to the two adjacent computing nodes, a water pipe correction strategy corresponding to the two adjacent computing nodes; Determining a first total dissolved solids interval corresponding to the two adjacent calculation nodes; Determining, based on the water pipe correction strategies corresponding to the two adjacent calculation nodes, the water pipe correction strategies corresponding to the first total dissolved solids interval corresponding to the two adjacent calculation nodes; Establish the first mapping relationship.
2. The method according to claim 1, characterized in that The second mapping relationship represents a mapping relationship between a second total dissolved solids interval and a water tank correction strategy, and the method further includes: Obtaining a plurality of second total dissolved solids values of the sample water pipes and a total dissolved solid value of the sample water tank corresponding to the second total dissolved solid values of the sample water pipes using a preset marking device; Data processing is performed based on the plurality of second total dissolved solids values of the sample water pipes and the corresponding total dissolved solids values of the sample water tanks to obtain a mapping relationship between the second total dissolved solids value intervals and the water tank correction strategy.
3. The method according to claim 2, characterized in that The data processing based on the plurality of second total dissolved solids of the sample water pipe and the total dissolved solids of the corresponding sample water tank is performed to obtain a mapping relationship between the second total dissolved solids interval and the water tank correction strategy, including: Determine the ratio between the total dissolved solids of the second sample water pipe and the total dissolved solids of the corresponding sample water tank; Determine a plurality of calculation nodes, and the plurality of calculation nodes respectively correspond to a plurality of total dissolved solids of the second in ascending order of numerical magnitude; Based on the ratio corresponding to the total dissolved solids of the second corresponding to each calculation node, determine the third compensation coefficient corresponding to the calculation node; Based on the third compensation coefficients corresponding to two adjacent calculation nodes, determine the water tank correction strategy corresponding to the two adjacent calculation nodes; Determine the total dissolved solids interval of the second corresponding to the two adjacent calculation nodes; Based on the water tank correction strategy corresponding to the two adjacent calculation nodes, determine the water tank correction strategy corresponding to the total dissolved solids interval of the second corresponding to the two adjacent calculation nodes; Establish a mapping relationship between the total dissolved solids interval of the second and the corresponding water tank correction strategy.
4. The method according to claim 1, wherein When the total dissolved solids interval of the first is 0≤x≤D1, the corresponding water pipe correction strategy is: Y1 = α * x; When the total dissolved solids interval of the first is D1 < x ≤ D2, the corresponding water pipe correction strategy is: When the total dissolved solids interval of the first is D2 < x ≤ D3, the corresponding water pipe correction strategy is: When the total dissolved solids interval of the first is D3 < x ≤ D4, the corresponding water pipe correction strategy is: When the total dissolved solids interval of the first is x > D4, the corresponding water pipe correction strategy is: Y1 = α * (x + X4); Wherein, x represents the total dissolved solids of the first, Y1 represents the total dissolved solids of the second, α represents the first compensation coefficient, X1, X2, X3 and X4 represent the second compensation coefficients, D1, D2, D3 and D4 represent the calculation nodes of the total dissolved solids of the first, and D4 is greater than D3, D3 is greater than D2, and D2 is greater than D1.
5. The method according to claim 1, wherein The second mapping relationship represents the mapping relationship between the total dissolved solids interval of the second and the water tank correction strategy, When the total dissolved solids interval of the second is D5 ≤ Y1 ≤ D6, the corresponding water tank correction strategy is: y = k1 * Y1 + (Y1 - D5) * (k2 - k1); When the total dissolved solids interval of the second is D6 < Y1 ≤ D7, the corresponding water tank correction strategy is: y = k2 * Y1 + (Y1 - D6) * (k3 - k2); When the total dissolved solids interval of the second is Y1 > D7, the corresponding water tank correction strategy is: y = k3 * Y1; Wherein, Y1 represents the total dissolved solids of the second, y represents the total dissolved solids of the water tank, k1, k2 and k3 represent the third compensation coefficients, D5, D6 and D7 represent the calculation nodes of the total dissolved solids of the second, and D7 is greater than D6, and D6 is greater than D5.
6. The method according to claim 1, characterized in that The method further includes: When it is determined that the total dissolved solids of the second do not meet the preset error correction condition, use the total dissolved solids of the second as the total dissolved solids of the target water tank.
7. A device for detecting the total amount of dissolved solids in a water tank, characterized in that: The device includes: an initial value acquisition module, configured to acquire a first total dissolved solid content of a target water pipe corresponding to the target water tank in response to a total dissolved solid content detection instruction for the target water tank; a first correction strategy determination module, configured to determine a water pipe correction strategy corresponding to the first total amount of dissolved solids based on a first mapping relationship; a first correction module, configured to correct the first total dissolved solids based on the corresponding water pipe correction strategy to obtain a second total dissolved solids of the target water pipe; a second correction strategy determining module, configured to determine, based on a second mapping relationship, a water tank correction strategy corresponding to the second total amount of dissolved solids when it is determined that the second total amount of dissolved solids satisfies a preset error correction condition; a second correction module, configured to correct the second total dissolved solids based on the corresponding water tank correction strategy to obtain the total dissolved solids of the target water tank; The first mapping relationship represents a mapping relationship between a first total dissolved solids interval and a water pipe correction strategy, and the device further includes: A first sample data acquisition module is used to obtain a plurality of first dissolved solid total amounts of the sample water pipe; a second sample data acquisition module, configured to acquire a second total dissolved solids value of the sample water tube corresponding to the first total dissolved solids value of the sample water tube using a preset marking device; a first compensation coefficient determining unit, configured to determine a first compensation coefficient based on a ratio of a first total dissolved solids value of the sample water pipe to a second total dissolved solids value of the corresponding sample water pipe within a preset threshold range corresponding to the first total dissolved solids value; a difference determination unit, configured to determine a difference between a value obtained by dividing the second total dissolved solids value of the sample water tube by the first compensation coefficient and the first total dissolved solids value of the corresponding sample water tube; A first calculation node determination unit is used to determine a plurality of calculation nodes, wherein the plurality of calculation nodes sequentially correspond to a plurality of first total dissolved solids values in ascending order of numerical value; a second compensation coefficient determining unit, configured to determine a second compensation coefficient corresponding to each calculation node based on a difference corresponding to the first total dissolved solids amount corresponding to the calculation node; a node water pipe correction strategy determining unit, configured to determine the water pipe correction strategies corresponding to the two adjacent computing nodes based on the first compensation coefficient and the second compensation coefficients corresponding to the two adjacent computing nodes; A first interval determining unit, configured to determine a first total dissolved solids interval corresponding to the two adjacent calculation nodes; a first interval strategy determination unit, configured to determine, based on the water pipe correction strategies corresponding to the two adjacent computing nodes, a water pipe correction strategy corresponding to the first total dissolved solids interval corresponding to the two adjacent computing nodes; The first mapping relationship establishing unit is configured to establish the first mapping relationship.
8. A water purification device, characterized in that: The water purification device includes the total dissolved solids detection device of the water tank according to claim 7.
9. A device for detecting the total dissolved solids in a water tank, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for detecting the total amount of dissolved solids in a water tank as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that The storage medium stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the method for detecting the total amount of dissolved solids in a water tank as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Water purification machine, measuring method and measuring device of TDS (Total Dissolved Solids) value of water purification machine
CN103868960A
Water quality monitor
CN106053553A