


技术领域technical field
本申请实施例涉及净水机领域,尤其涉及一种净水机滤芯更换时间的预测方法、装置、设备及存储介质。The embodiments of the present application relate to the field of water purifiers, and in particular, to a method, device, equipment, and storage medium for predicting the replacement time of a filter element of a water purifier.
背景技术Background technique
居民小区中通常会设立净水机方便为居民提供饮用水,但是长时间使用净水机后,需要更换净水机的滤芯,以保证净水机中提供的饮用水的质量。目前,在各居民区中设立的净水机还不具备监测净水机滤芯更换时间,以及时向工作人员提醒更换滤芯的功能。Water purifiers are usually set up in residential communities to provide drinking water for residents. However, after using the water purifier for a long time, the filter element of the water purifier needs to be replaced to ensure the quality of drinking water provided by the water purifier. At present, the water purifiers set up in various residential areas do not have the function of monitoring the replacement time of the filter element of the water purifier and reminding the staff to replace the filter element in time.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种净水机滤芯更换时间的预测方法、装置、设备及存储介质,可以对净水机的滤芯使用情况进行监控,以及时预测滤芯的更换时间。The present application provides a method, device, equipment and storage medium for predicting the replacement time of the filter element of a water purifier, which can monitor the usage of the filter element of the water purifier and predict the replacement time of the filter element in time.
第一方面,本申请实施例提供了一种净水机滤芯更换时间的预测方法,该方法包括:In a first aspect, an embodiment of the present application provides a method for predicting the replacement time of a water purifier filter element, the method comprising:
根据第一净水机的总溶解固体TDS,确定预设地理范围内与第一净水机的TDS属于相同TDS预设范围的TDS对应的第二净水机;According to the total dissolved solids TDS of the first water purifier, determine the second water purifier corresponding to the TDS of the same TDS preset range as the TDS of the first water purifier within a preset geographic range;
获取第一净水机和第二净水机的最近一次报警时间;Obtain the latest alarm time of the first water purifier and the second water purifier;
获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间,以及第一净水机的最近一次滤芯更换时间;Obtain the filter element replacement time corresponding to the last alarm time of the first water purifier and the second water purifier, and the last filter element replacement time of the first water purifier;
根据最近一次报警时间和最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。According to the latest alarm time and the latest filter element replacement time, determine the current filter element replacement prediction time of the first water purifier.
第二方面,本申请实施例还提供了一种净水机滤芯更换时间的预测装置,该装置包括:In the second aspect, the embodiment of the present application also provides a device for predicting the replacement time of the filter element of a water purifier, and the device includes:
确定模块,用于根据第一净水机的TDS,确定预设地理范围内与第一净水机的TDS属于相同TDS预设范围的TDS对应的第二净水机;a determining module, configured to determine, according to the TDS of the first water purifier, a second water purifier corresponding to a TDS within a preset geographic range that belongs to the same TDS preset range as the TDS of the first water purifier;
获取模块,用于获取第一净水机和第二净水机的最近一次报警时间;an acquisition module for acquiring the latest alarm time of the first water purifier and the second water purifier;
获取模块,还用于获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间,以及第一净水机的最近一次滤芯更换时间;The acquiring module is further configured to acquire the filter element replacement time of the first water purifier and the second water purifier corresponding to the last alarm time, and the last filter element replacement time of the first water purifier;
确定模块,还用于根据最近一次报警时间和最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。The determining module is also used for determining the current filter replacement prediction time of the first water purifier according to the latest alarm time and the latest filter replacement time.
第三方面,本申请实施例还提供了一种计算机设备,该设备包括:存储器、处理器,当存储器存储有计算机程序,处理器执行计算机程序时,实现如本申请实施例提供的一种净水机滤芯更换时间的预测方法。In a third aspect, the embodiments of the present application also provide a computer device, the device includes: a memory and a processor, when the memory stores a computer program, and the processor executes the computer program, it implements a cleanup method as provided in the embodiments of the present application. Prediction method of replacement time of water filter filter element.
第四方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,当该计算机程序被处理器执行时,实现如本申请实施例提供的一种净水机滤芯更换时间的预测方法。In the fourth aspect, the embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by the processor, a water purifier filter element as provided in the embodiments of the present application is realized. Prediction method of replacement time.
本申请提供了一种净水机滤芯更换时间的预测方法、装置、设备及存储介质,该方法可以包括:根据第一净水机的TDS,确定预设地理范围内与第一净水机的TDS属于相同TDS预设范围的TDS对应的第二净水机;获取第一净水机和第二净水机的最近一次报警时间;获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间;根据最近一次报警时间和对应的滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。基于上述方式可以对净水机的滤芯使用情况进行监控,以及时预测滤芯的更换时间。The present application provides a method, device, equipment and storage medium for predicting the replacement time of a filter element of a water purifier. The method may include: according to the TDS of the first water purifier, determining the distance between the first water purifier and the first water purifier within a preset geographic range. The second water purifier corresponding to the TDS whose TDS belongs to the same TDS preset range; obtain the latest alarm time of the first water purifier and the second water purifier; obtain the latest alarm time of the first water purifier and the second water purifier The filter element replacement time corresponding to an alarm time; according to the latest alarm time and the corresponding filter element replacement time, the predicted time for the current filter element replacement of the first water purifier is determined. Based on the above method, the usage of the filter element of the water purifier can be monitored, and the replacement time of the filter element can be predicted in time.
附图说明Description of drawings
图1是本申请实施例提供的一种净水机滤芯更换时间的预测方法的流程图;1 is a flowchart of a method for predicting the replacement time of a water purifier filter element provided by an embodiment of the present application;
图2是本申请实施例提供的一种净水机滤芯更换时间的预测装置的结构示意图;2 is a schematic structural diagram of a device for predicting the replacement time of a water purifier filter element provided by an embodiment of the present application;
图3是本申请实施例提供的一种计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all the structures related to the present application.
另外,在本申请实施例中,“可选地”或者“示例性地”等词用于表示作例子、例证或说明。本申请实施例中被描述为“可选地”或者“示例性地”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“可选地”或者“示例性地”等词旨在以具体方式呈现相关概念。In addition, in the embodiments of the present application, words such as "optionally" or "exemplarily" are used to represent examples, illustrations, or illustrations. Any embodiment or design described in the embodiments of the present application as "optionally" or "exemplarily" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "optionally" or "exemplarily" is intended to present the related concepts in a specific manner.
图1为本申请实施例提供的一种净水机滤芯更换时间的预测方法的流程图,该方法可以用于对居民小区中净水机的滤芯使用情况进行监控,以及时预测滤芯的更换时间。该方法可以由集成于计算机设备(例如,服务器、计算机等)中的净水机滤芯更换时间的预测装置执行,该装置可以以软件和/或硬件的方式实现。如图1所示,该方法可以包括但不限于以下步骤:1 is a flow chart of a method for predicting the replacement time of a water purifier filter element provided by an embodiment of the application. The method can be used to monitor the usage of the filter element of a water purifier in a residential area, and predict the replacement time of the filter element in time. . The method may be implemented by a device for predicting replacement time of a water purifier filter element integrated in a computer device (eg, server, computer, etc.), and the device may be implemented in software and/or hardware. As shown in Figure 1, the method may include but is not limited to the following steps:
S101、根据第一净水机的总溶解固体TDS,确定预设地理范围内与第一净水机的TDS属于相同TDS预设范围的TDS对应的第二净水机。S101. Determine, according to the total dissolved solids TDS of the first water purifier, a second water purifier corresponding to a TDS within a preset geographic range that belongs to the same TDS preset range as the TDS of the first water purifier.
上述总溶解固体(Total dissolved solids,TDS)又可以理解为水中的溶解性固体总量,其单位为毫克每升。第一净水机可以理解为需要确定滤芯更换预测时间的净水机,获取该第一净水机的TDS后,可以在预设的地理范围内(例如,某个城市或某几个行政区等)确定与该第一净水机的TDS属于相同的TDS预设范围内的TDS对应的第二净水机。其中,TDS预设范围可以根据实际情况进行划分,例如,以进水的TDS差值为50确定划分范围,0~50为一个TDS预设范围,50~100为一个TDS预设范围,……。假设第一净水机的TDS属于50~100,那么在划定的预设地理范围内,在除第一净水机之外的其他所有净水机中,确定其TDS也属于50~100范围内的净水机,并将确定出的净水机标记为第二净水机。可以理解的是,确定出的第二净水机数量可以为0个,可以为1个,也可以为多个。例如,在TDS预设范围较小的情况下,由于划分的TDS粒度较细,那么该预设地理范围内不同净水机的TDS可能会分别属于不同的TDS预设范围,从而导致基于第一净水机的TDS确定出的第二净水机的数量可能为0。因此,在本申请实施例中,可以适当调整TDS预设范围,避免确定出的第二净水机的数量为0。The above-mentioned total dissolved solids (Total dissolved solids, TDS) can also be understood as the total amount of dissolved solids in water, the unit of which is milligrams per liter. The first water purifier can be understood as a water purifier that needs to determine the predicted time for replacing the filter element. After obtaining the TDS of the first water purifier, it can be within a preset geographic range (for example, a certain city or certain administrative regions, etc. ) to determine the second water purifier corresponding to the TDS within the same TDS preset range as the TDS of the first water purifier. Among them, the preset TDS range can be divided according to the actual situation. For example, the division range is determined by taking the TDS difference of the influent water as 50, 0-50 is a TDS preset range, 50-100 is a TDS preset range, ... . Assuming that the TDS of the first water purifier falls within the range of 50 to 100, then within the delineated preset geographic range, among all other water purifiers except the first water purifier, determine that its TDS also falls within the range of 50 to 100. and mark the identified water purifier as the second water purifier. It can be understood that the determined number of second water purifiers may be 0, may be 1, or may be multiple. For example, when the preset TDS range is small, since the granularity of the divided TDSs is relatively fine, the TDSs of different water purifiers within the preset geographic range may belong to different TDS preset ranges, resulting in The number of the second water purifier determined by the TDS of the water purifier may be 0. Therefore, in the embodiment of the present application, the preset range of the TDS can be adjusted appropriately to avoid the determined number of the second water purifier being 0.
S102、获取第一净水机和第二净水机的最近一次报警时间。S102: Acquire the latest alarm time of the first water purifier and the second water purifier.
在本申请实施例中,通过适当调整TDS预设范围,可以实现确定出的第二净水机的数量为至少一个,那么在第二净水机的数量为多个的情况下,可以分别获取多个第二净水机的最近一次报警时间。In the embodiment of the present application, by appropriately adjusting the preset range of TDS, the determined number of second water purifiers can be at least one, and then in the case of multiple second water purifiers, the number of second water purifiers can be obtained separately The last alarm time of multiple second water purifiers.
在本申请实施例中,最近一次报警时间的理解方式如下:假设存在三次更换滤芯的情况,第三次更换滤芯是由于第二次更换的滤芯到达更换条件发出报警后才更换的,那么对于第三次更换滤芯而言,最近一次报警时间为第二次更换滤芯的报警时间。若第一次更换滤芯发出了报警,而第二次更换滤芯是在报警之前人为主动更换的,那么对于第三次更换滤芯而言,最近一次报警时间为第一次更换滤芯的报警时间。基于上述原理可以分别获取第一净水机和第二净水机的最近一次报警时间。In the embodiment of the present application, the understanding of the last alarm time is as follows: Assuming that there are three filter replacements, the third replacement is because the second replacement filter reaches the replacement condition and sends an alarm, then for the third replacement For three filter replacements, the latest alarm time is the alarm time for the second filter replacement. If the first replacement of the filter element gives an alarm, and the second replacement of the filter element is manually replaced before the alarm, then for the third replacement of the filter element, the latest alarm time is the alarm time of the first replacement of the filter element. Based on the above principles, the latest alarm time of the first water purifier and the second water purifier can be obtained respectively.
S103、获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间,以及第一净水机的最近一次滤芯更换时间。S103: Obtain the filter element replacement time of the first water purifier and the second water purifier corresponding to the last alarm time, and the last filter element replacement time of the first water purifier.
在本申请实施例中,滤芯更换时间可以理解为净水机滤芯更换完成后记录的时间。由于并非每次更换滤芯均是由于报警之后才更换的,若在报警之前主动更换滤芯时,仅会记录此次更换滤芯的时间,并不会存在与此次更换滤芯时间相对应的报警时间。因此,在本申请实施例中,以最近一次报警时间为准,确定与最近一次报警时间对应的滤芯更换时间,并且与最近一次报警时间对应的滤芯更换时间可以理解为某次更换滤芯是由于净水机发出报警指令后才更换滤芯,那么报警时间与滤芯更换时间即为相对应的。In the embodiment of the present application, the replacement time of the filter element can be understood as the time recorded after the replacement of the filter element of the water purifier is completed. Since not every time the filter element is replaced due to the alarm, if the filter element is replaced actively before the alarm, only the time of the filter element replacement will be recorded, and there will be no alarm time corresponding to the filter element replacement time. Therefore, in the embodiment of the present application, the filter element replacement time corresponding to the latest alarm time is determined based on the latest alarm time, and the filter element replacement time corresponding to the latest alarm time can be understood as a certain replacement of the filter element due to the The filter element is replaced only after the water machine issues an alarm command, so the alarm time corresponds to the filter element replacement time.
最近一次滤芯更换时间可以理解为第一净水机上次更换滤芯的时间,用于作为预测本次滤芯更换预测时间的基准。The latest filter element replacement time can be understood as the last time the filter element was replaced by the first water purifier, which is used as a benchmark for predicting the current filter element replacement prediction time.
S104、根据最近一次报警时间和对应的滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。S104, according to the last alarm time and the corresponding filter element replacement time, determine the current filter element replacement prediction time of the first water purifier.
基于上述步骤分别获取第一净水机和至少一个第二净水机的最近一次报警时间和对应的滤芯更换时间后,可以基于获取的各个时间信息,确定第一净水机的本次滤芯更换时间。After the last alarm time and the corresponding filter element replacement time of the first water purifier and at least one second water purifier are respectively obtained based on the above steps, the current filter replacement time of the first water purifier can be determined based on the obtained time information. time.
示例性地,本步骤的实现方式可以包括:根据第一净水机的最近一次报警时间和对应的滤芯更换时间,确定第一净水机的滤芯一次使用时间;根据第二净水机的最近一次报警时间和对应的滤芯更换时间,确定第二净水机的滤芯一次使用时间;根据第一净水机的滤芯一次使用时间、第二净水机的滤芯一次使用时间,以及第一净水机的最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。其中,上述滤芯一次使用时间可以理解为净水机从更换新的滤芯到报警需要替换下该新的滤芯的使用时间长度。例如,以第一净水机为例,假设其最近一次报警时间为Twarn,滤芯更换时间为Treplace,那么第一净水机的滤芯一次使用时间为Ttime,且满足Ttime=Treplace-Twarn。Exemplarily, the implementation of this step may include: determining the time for the first use of the filter element of the first water purifier according to the last alarm time of the first water purifier and the corresponding filter element replacement time; The one-time alarm time and the corresponding filter element replacement time determine the one-time use time of the filter element of the second water purifier; the one-time use time of the filter element of the first water purifier, the one-time use time of the filter element of the second water purifier, and the first The latest filter replacement time of the water purifier is used to determine the predicted time for the current filter replacement of the first water purifier. The one-time use time of the above-mentioned filter element can be understood as the length of time that the water purifier needs to replace the new filter element from the replacement of the new filter element to the alarm. For example, taking the first water purifier as an example, assuming that its latest alarm time is Twarn and the filter element replacement time is Treplace , then the first use time of the filter element of the first water purifier is Ttime , and Ttime =Treplace -Twarn .
本申请实施例提供了一种净水机滤芯更换时间的预测方法,该方法可以包括:根据第一净水机的TDS,确定预设地理范围内与第一净水机的TDS属于相同TDS预设范围的TDS对应的第二净水机;获取第一净水机和第二净水机的最近一次报警时间;获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间;根据最近一次报警时间和对应的滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。基于上述方式可以对净水机的滤芯使用情况进行监控,以及时预测滤芯的更换时间。The embodiment of the present application provides a method for predicting the replacement time of a filter element of a water purifier. The method may include: according to the TDS of the first water purifier, determining that the TDS of the first water purifier and the TDS of the first water purifier belong to the same TDS prediction range within a preset geographical range. Set the second water purifier corresponding to the TDS of the range; obtain the last alarm time of the first water purifier and the second water purifier; obtain the last alarm time of the first water purifier and the second water purifier. Filter element replacement time; according to the last alarm time and the corresponding filter element replacement time, determine the current filter element replacement forecast time of the first water purifier. Based on the above method, the usage of the filter element of the water purifier can be monitored, and the replacement time of the filter element can be predicted in time.
在本申请实施例中,可以将最近一次报警时间确定为接收净水机发送最近一次报警指令的时间。例如,上述步骤S102中获取第一净水机和第二净水机的最近一次报警时间的实现方式可以包括:记录接收第一净水机的最近一次报警指令的时间,将接收第一净水机的报警指令的时间标记为第一净水机的最近一次报警时间;记录接收第二净水机的最近一次报警指令的时间,将接收第二净水机的报警指令的时间标记为第二净水机的最近一次报警时间。其中,第一净水机的报警指令是在第一净水机判断滤芯剩余小于或等于预设门限的情况下发送的,第二净水机的报警指令也是在第二净水机判断滤芯剩余小于或等于预设门限的情况下发送的。例如,以第一净水机为例,假设最大水量为200立方米(为100%,即一立方米为0.5%),水流量传感器上报当前水量为V立方米,那么按照如下公式可以确定滤芯剩余F=V*0.5%,在净水机监测到滤芯剩余F小于或等于预设门限(例如,20立方米),则智能报警,发出报警指令。In this embodiment of the present application, the last alarm time may be determined as the time when the last alarm instruction sent by the water purifier is received. For example, the implementation manner of obtaining the last alarm time of the first water purifier and the second water purifier in the above step S102 may include: recording the time of receiving the last alarm command of the first water purifier, and receiving the first water purifier The time of the alarm command of the water purifier is marked as the last alarm time of the first water purifier; the time of receiving the latest alarm command of the second water purifier is recorded, and the time of receiving the alarm command of the second water purifier is marked as the second The last alarm time of the water purifier. Wherein, the alarm command of the first water purifier is sent when the first water purifier determines that the remaining filter element is less than or equal to the preset threshold, and the alarm command of the second water purifier is also sent when the second water purifier determines that the remaining filter element is left. Sent when it is less than or equal to the preset threshold. For example, taking the first water purifier as an example, assuming that the maximum water volume is 200 cubic meters (100%, that is, 1 cubic meter is 0.5%), and the current water volume reported by the water flow sensor is V cubic meters, then the filter element can be determined according to the following formula Remaining F=V*0.5%, when the water purifier detects that the remaining F of the filter element is less than or equal to the preset threshold (for example, 20 cubic meters), it will alarm intelligently and issue an alarm command.
相应地,在本申请实施例中,将滤芯更换时间确定为接收净水机发送更换完成指令的时间。例如,在接收到第一净水机发送的更换完成指令的情况下,将第一净水机发送的更换完成指令的接收时间确定为第一净水机的滤芯更换时间;在接收到第二净水机发送的更换完成指令的情况下,将第二净水机发送的更换完成指令的接收时间确定为第二净水机的滤芯更换时间。Correspondingly, in the embodiment of the present application, the filter element replacement time is determined as the time when the water purifier sends the replacement completion instruction. For example, in the case of receiving the replacement completion instruction sent by the first water purifier, the receiving time of the replacement completion instruction sent by the first water purifier is determined as the filter element replacement time of the first water purifier; In the case of the replacement completion instruction sent by the water purifier, the time of receiving the replacement completion instruction sent by the second water purifier is determined as the filter element replacement time of the second water purifier.
在一种示例中,上述步骤S103中,获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间的实现方式可以包括:在获取第一净水机的最近一次报警时间的情况下,若下一个接收到的第一净水机发送的指令为更换完成指令,则将第一净水机发送的更换完成指令的接收时间确定为与第一净水机的最近一次报警时间对应的滤芯更换时间;在获取第二净水机的最近一次报警时间的情况下,若下一个接收到的第二净水机发送的指令为更换完成指令,则将第二净水机发送的更换完成指令的接收时间确定为与第二净水机的最近一次报警时间对应的滤芯更换时间。In an example, in the above step S103, the implementation manner of acquiring the filter element replacement time corresponding to the latest alarm time of the first water purifier and the second water purifier may include: obtaining the latest time of the first water purifier. In the case of the alarm time, if the next received command sent by the first water purifier is a replacement completion command, then the reception time of the replacement completion command sent by the first water purifier is determined to be the closest to the first water purifier. The filter element replacement time corresponding to an alarm time; in the case of obtaining the latest alarm time of the second water purifier, if the next received command sent by the second water purifier is the replacement completion command, the second water purifier will The receiving time of the replacement completion instruction sent by the machine is determined as the filter element replacement time corresponding to the last alarm time of the second water purifier.
例如,以第一净水机为例,假设某个时刻接收到了第一净水机发送的报警指令,并将该报警指令的接收时间确定为第一净水机的最近一次报警时间,在间隔某段时间后,若接收到了第一净水机发送的更换完成指令,说明此次更换是由于第一净水机发出了报警,那么将此次更换完成指令的接收时间确定为与最近一次报警时间相对应的滤芯更换时间。进一步地,若此次更换完成后,下一次操作人员在报警之前及时更换了滤芯,净水机未发出报警指令,那么操作人员及时更换滤芯之后,净水机发送了更换完成指令,由于这次接收的更换完成指令之前接收的是上一次更换完成指令,两者之间并不存在报警指令。因此,仅将这次更换完成指令的接收时间确定为滤芯更换时间,其并不存在对应的报警时间。For example, taking the first water purifier as an example, it is assumed that an alarm command sent by the first water purifier is received at a certain time, and the receiving time of the alarm command is determined as the latest alarm time of the first water purifier. After a certain period of time, if the replacement completion command sent by the first water purifier is received, indicating that the replacement is due to the alarm issued by the first water purifier, the receiving time of the replacement completion command is determined to be the same as the last alarm. The time corresponding to the replacement time of the filter element. Further, if after the replacement is completed, the operator replaces the filter element in time before the alarm, and the water purifier does not issue an alarm command, then after the operator replaces the filter element in time, the water purifier sends a replacement completion instruction. The received replacement completion command is the last replacement completion command, and there is no alarm command between the two. Therefore, only the receiving time of the replacement completion instruction is determined as the filter element replacement time, and there is no corresponding alarm time.
在一种示例中,上述步骤S104中根据第一净水机的滤芯一次使用时间、第二净水机的滤芯一次使用时间,以及第一净水机的最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间的实现方式可以包括:根据第一净水机的滤芯一次使用时间和第二净水机的滤芯一次使用时间,确定滤芯一次使用的平均时间;根据平均时间和第一净水机的最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。In an example, in the above step S104, the first water purifier is determined according to the one-time use time of the filter element of the first water purifier, the one-time use time of the filter element of the second water purifier, and the most recent filter element replacement time of the first water purifier. The realization method of the predicted time for the replacement of the filter element of the water machine may include: determining the average time of the filter element for one use according to the one-time use time of the filter element of the first water purifier and the one-time use time of the filter element of the second water purifier; The most recent filter element replacement time of the first water purifier is used to determine the current filter element replacement prediction time of the first water purifier.
例如,假设平均时间为Tave,那么For example, assuming the average time is Tave , then
Tave=(T1time1+T2time1+T2time2+……+T2timen)/(n+1)Tave =(T1time1 +T2time1 +T2time2 +...+T2timen )/(n+1)
其中,T1time1表示第一净水机的滤芯一次使用时间,T2ime1表示第一个第二净水机的滤芯一次使用时间,T2ime2表示第二个第二净水机的滤芯一次使用时间,T2timen表示第n个第二净水机的滤芯一次使用时间。可以理解的是,在仅预设地理范围内仅存在一个第二净水机的情况下,n的取值为1。Among them, T1time1 represents the one-time use time of the filter element of the first water purifier, T2ime1 represents the one-time use time of the filter element of the first and second water purifier, and T2ime2 represents the one-time use time of the filter element of the second second water purifier, T2timen represents the one-time use time of the filter element of the nth second water purifier. It can be understood that, in the case where there is only one second water purifier within the preset geographic range, the value of n is 1.
设第一净水机的最近一次滤芯更换时间为T1,本次滤芯更换预测时间为Tf,那么Assuming that the last filter replacement time of the first water purifier is T1, and the predicted time of this filter replacement is Tf, then
Tf=T1+TaveTf=T1+Tave
基于上述方式确定第一净水机的本次滤芯更换时间后,可以在本次滤芯更换时间到达后,向计算机设备(例如,服务器、计算机等)发出提醒消息,以提醒操作人员及时更换滤芯。After determining the replacement time of the filter element of the first water purifier based on the above method, a reminder message can be sent to the computer equipment (eg, server, computer, etc.) after the replacement time of the filter element is reached to remind the operator to replace the filter element in time.
可选地,无论是第一净水机还是第二净水机,净水机发出的上述报警指令和/或更换完成指令中均携带有相应净水机的位置信息,即第一净水机发送的报警指令和/或更换完成指令中携带有第一净水机的位置信息,第二净水机发送的报警指令和/或更换完成指令中携带有第二净水机的位置信息。该位置信息可以为经纬度信息等,这样操作人员可以明确了解净水机的真实位置,从而基于该位置对净水机的滤芯进行及时更换。Optionally, whether it is the first water purifier or the second water purifier, the above-mentioned alarm instruction and/or replacement completion instruction issued by the water purifier carries the location information of the corresponding water purifier, that is, the first water purifier. The sent alarm instruction and/or replacement completion instruction carries the location information of the first water purifier, and the alarm instruction and/or replacement completion instruction sent by the second water purifier carries the location information of the second water purifier. The location information may be longitude and latitude information, etc., so that the operator can clearly understand the real location of the water purifier, and thus replace the filter element of the water purifier in time based on the location.
可以理解的是,在本申请实施例中,第二净水机作为参考的净水机,用于辅助确定第一净水机的本次滤芯更换时间。当然,在预测第二净水机的本次滤芯更换时间时,也可以将第一净水机作为参考净水机,辅助确定第二净水机的本次滤芯更换时间。It can be understood that, in the embodiment of the present application, the second water purifier is used as a reference water purifier to assist in determining the current filter replacement time of the first water purifier. Of course, when predicting the current filter replacement time of the second water purifier, the first water purifier can also be used as a reference water purifier to assist in determining the current filter replacement time of the second water purifier.
图2为本申请实施例提供的一种净水机滤芯更换时间的预测装置的结构示意图,如图2所示,该装置包括:确定模块201、获取模块202;FIG. 2 is a schematic structural diagram of a device for predicting replacement time of a water purifier filter element provided by an embodiment of the present application. As shown in FIG. 2 , the device includes: a
确定模块,用于根据第一净水机的TDS,确定预设地理范围内与第一净水机的TDS属于相同TDS预设范围的TDS对应的第二净水机;a determining module, configured to determine, according to the TDS of the first water purifier, a second water purifier corresponding to a TDS within a preset geographic range that belongs to the same TDS preset range as the TDS of the first water purifier;
获取模块,用于获取第一净水机和第二净水机的最近一次报警时间;an acquisition module for acquiring the latest alarm time of the first water purifier and the second water purifier;
获取模块,还用于获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间,以及第一净水机的最近一次滤芯更换时间;The acquiring module is further configured to acquire the filter element replacement time of the first water purifier and the second water purifier corresponding to the last alarm time, and the last filter element replacement time of the first water purifier;
确定模块,还用于根据上述最近一次报警时间和最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。The determining module is further configured to determine the current filter replacement prediction time of the first water purifier according to the last alarm time and the last filter replacement time.
在一种示例中,确定模块,用于记录接收第一净水机的最近一次报警指令的时间,将接收第一净水机的报警指令的时间标记为第一净水机的最近一次报警时间;以及,记录接收第二净水机的最近一次报警指令的时间,将接收第二净水机的报警指令的时间标记为第二净水机的最近一次报警时间;其中,第一净水机的报警指令是在第一净水机判断滤芯剩余小于或等于预设门限的情况下发送的,第二净水机的报警指令是在第二净水机判断滤芯剩余小于或等于预设门限的情况下发送的。In an example, the determining module is configured to record the time of receiving the last alarm instruction of the first water purifier, and mark the time of receiving the alarm instruction of the first water purifier as the last alarm time of the first water purifier And, record the time of receiving the last alarm instruction of the second water purifier, and mark the time of receiving the alarm instruction of the second water purifier as the last alarm time of the second water purifier; Wherein, the first water purifier The alarm command of the first water purifier is sent when the first water purifier judges that the remaining filter element is less than or equal to the preset threshold, and the alarm command of the second water purifier is sent when the second water purifier judges that the remaining filter element is less than or equal to the preset threshold. sent under the circumstances.
在一种示例中,获取模块,用于在接收到第一净水机发送的更换完成指令的情况下,将第一净水机发送的更换完成指令的接收时间确定为第一净水机的滤芯更换时间;以及,在接收到第二净水机发送的更换完成指令的情况下,将第二净水机发送的更换完成指令的接收时间确定为第二净水机的滤芯更换时间。In an example, the acquiring module is configured to, in the case of receiving the replacement completion instruction sent by the first water purifier, determine the receiving time of the replacement completion instruction sent by the first water purifier as the time of receiving the replacement completion instruction sent by the first water purifier filter element replacement time; and, in the case of receiving the replacement completion instruction sent by the second water purifier, determining the reception time of the replacement completion instruction sent by the second water purifier as the filter element replacement time of the second water purifier.
进一步地,获取模块,还用于在获取第一净水机的最近一次报警时间的情况下,若下一个接收到的第一净水机发送的指令为更换完成指令,则将第一净水机发送的更换完成指令的接收时间确定为与第一净水机的最近一次报警时间对应的滤芯更换时间;以及,在获取第二净水机的最近一次报警时间的情况下,若下一个接收到的第二净水机发送的指令为更换完成指令,则将第二净水机发送的更换完成指令的接收时间确定为与第二净水机的最近一次报警时间对应的滤芯更换时间。Further, the obtaining module is also used to obtain the latest alarm time of the first water purifier, if the next received command sent by the first water purifier is a replacement completion command, then the first water purifier will be replaced. The receiving time of the replacement completion instruction sent by the water purifier is determined as the filter element replacement time corresponding to the last alarm time of the first water purifier; If the received instruction sent by the second water purifier is a replacement completion instruction, the receiving time of the replacement completion instruction sent by the second water purifier is determined as the filter element replacement time corresponding to the last alarm time of the second water purifier.
在一种示例中,确定模块,还用于根据第一净水机的最近一次报警时间和对应的滤芯更换时间,确定第一净水机的滤芯一次使用时间;根据第二净水机的最近一次报警时间和对应的滤芯更换时间,确定第二净水机的滤芯一次使用时间;以及,根据第一净水机的滤芯一次使用时间、第二净水机的滤芯一次使用时间,以及第一净水机的最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。In an example, the determining module is further configured to determine the one-time use time of the filter element of the first water purifier according to the last alarm time of the first water purifier and the corresponding filter element replacement time; The one-time alarm time and the corresponding filter element replacement time determine the one-time use time of the filter element of the second water purifier; and, according to the one-time use time of the filter element of the first water purifier, the once-use time of the filter element of the second water purifier, and the The most recent filter element replacement time of the water purifier determines the predicted time for the current filter element replacement of the first water purifier.
可选地,确定模块,还用于根据第一净水机的滤芯一次使用时间和第二净水机的滤芯一次使用时间,确定滤芯一次使用的平均时间;以及,根据平均时间和第一净水机的最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。Optionally, the determining module is further configured to determine the average time of the filter element once used according to the one-time use time of the filter element of the first water purifier and the one-time use time of the filter element of the second water purifier; The most recent filter element replacement time of the water machine determines the predicted time for the current filter element replacement of the first water purifier.
可选地,第一净水机发送的报警指令和/或更换完成指令中携带有第一净水机的位置信息,第二净水机发送的报警指令和/或更换完成指令中携带有第二净水机的位置信息。Optionally, the alarm instruction and/or the replacement completion instruction sent by the first water purifier carries the location information of the first water purifier, and the alarm instruction and/or the replacement completion instruction sent by the second water purifier carries the first water purifier. Two water purifier location information.
本申请实施例所提供的净水机滤芯更换时间的预测装置可执行本申请图1实施例所提供的净水机滤芯更换时间的预测方法,具备执行方法相应的功能单元和有益效果。The device for predicting the replacement time of the water purifier filter element provided by the embodiment of the present application can execute the method for predicting the replacement time of the water purifier filter element provided by the embodiment of FIG. 1 of the present application, and has functional units and beneficial effects corresponding to the execution method.
图3为本申请实施例提供的一种计算机设备的结构示意图,如图3所示,该计算机设备包括处理器301、存储器302、输入装置303、输出装置304;计算机设备中处理器301的数量可以是一个或多个,图3中以一个处理器301为例;计算机设备中的处理器301、存储器302、输入装置303和输出装置304可以通过总线或其他方式连接,图3中以通过总线连接为例。FIG. 3 is a schematic structural diagram of a computer device provided by an embodiment of the application. As shown in FIG. 3 , the computer device includes a
存储器302作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例图1中的净水机滤芯更换时间的预测方法对应的程序指令/模块(例如,净水机滤芯更换时间的预测装置中的确定模块201、获取模块202)。处理器301通过运行存储在存储器302中的软件程序、指令以及模块,从而执行计算机设备的各种功能以及数据处理,即实现上述的净水机滤芯更换时间的预测方法。As a computer-readable storage medium, the
存储器302可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据云服务器的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器302可进一步包括相对于处理器301远程设置的存储器,这些远程存储器可以通过网络连接至计算机设备/终端/服务器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The
输入装置303可用于接收输入的数字或字符信息,以及产生与计算机设备的用户设置以及功能控制有关的键信号输入。输出装置304可包括显示屏等显示计算机设备。The
本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由处理器执行时用于执行一种净水机滤芯更换时间的预测方法,该方法包括:Embodiments of the present application also provide a storage medium containing computer-executable instructions, when the computer-executable instructions are executed by a processor for executing a method for predicting the replacement time of a water purifier filter element, the method includes:
根据第一净水机的TDS,确定预设地理范围内与第一净水机的TDS属于相同TDS预设范围的TDS对应的第二净水机;According to the TDS of the first water purifier, determine the second water purifier corresponding to the TDS of the same TDS preset range as the TDS of the first water purifier within the preset geographic range;
获取第一净水机和第二净水机的最近一次报警时间;Obtain the latest alarm time of the first water purifier and the second water purifier;
获取第一净水机和第二净水机的与最近一次报警时间对应的滤芯更换时间,以及第一净水机的最近一次滤芯更换时间;Obtain the filter element replacement time corresponding to the last alarm time of the first water purifier and the second water purifier, and the last filter element replacement time of the first water purifier;
根据最近一次报警时间和最近一次滤芯更换时间,确定第一净水机的本次滤芯更换预测时间。According to the latest alarm time and the latest filter element replacement time, determine the current filter element replacement prediction time of the first water purifier.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的净水机滤芯更换时间的预测方法。Of course, a storage medium containing computer-executable instructions provided by the embodiments of the present application, the computer-executable instructions of which are not limited to the above-mentioned method operations, and can also perform the replacement of the water purifier filter element provided by any embodiment of the present application. time prediction method.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and necessary general-purpose hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation manner . Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a computer device (which can be a personal computer, A server, or a network device, etc.) executes the methods described in the various embodiments of the present application.
值得注意的是,上述净水机滤芯更换时间的预测装置的实施例中,所包括的各个模块、单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。It is worth noting that in the above-mentioned embodiment of the device for predicting the replacement time of the filter element of the water purifier, the modules and units included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized. That is all; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application.
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present application and applied technical principles. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application. The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111333152.XACN114949989B (en) | 2021-11-11 | 2021-11-11 | Prediction method, device, equipment and medium for replacement time of filter element of water purifier |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111333152.XACN114949989B (en) | 2021-11-11 | 2021-11-11 | Prediction method, device, equipment and medium for replacement time of filter element of water purifier |
| Publication Number | Publication Date |
|---|---|
| CN114949989Atrue CN114949989A (en) | 2022-08-30 |
| CN114949989B CN114949989B (en) | 2024-08-02 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111333152.XAActiveCN114949989B (en) | 2021-11-11 | 2021-11-11 | Prediction method, device, equipment and medium for replacement time of filter element of water purifier |
| Country | Link |
|---|---|
| CN (1) | CN114949989B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160121246A1 (en)* | 2014-10-31 | 2016-05-05 | Xiaomi Inc. | Method and device for reminding user about smart water purifier |
| CN111189625A (en)* | 2020-01-09 | 2020-05-22 | 宁波科艺乐环保科技有限公司 | Water purifier filter element service life detection method and system and computer storage medium |
| CN112613163A (en)* | 2020-12-07 | 2021-04-06 | 成都清渟科技有限公司 | Filter element service life calculation method based on double engines |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160121246A1 (en)* | 2014-10-31 | 2016-05-05 | Xiaomi Inc. | Method and device for reminding user about smart water purifier |
| CN111189625A (en)* | 2020-01-09 | 2020-05-22 | 宁波科艺乐环保科技有限公司 | Water purifier filter element service life detection method and system and computer storage medium |
| CN112613163A (en)* | 2020-12-07 | 2021-04-06 | 成都清渟科技有限公司 | Filter element service life calculation method based on double engines |
| Publication number | Publication date |
|---|---|
| CN114949989B (en) | 2024-08-02 |
| Publication | Publication Date | Title |
|---|---|---|
| US10621873B1 (en) | Systems and methods for generating geofences | |
| US20120130625A1 (en) | Systems and methods for determining traffic intensity using information obtained through crowdsourcing | |
| CN112344990B (en) | Environment anomaly monitoring method, device, equipment and storage medium | |
| CN109558301A (en) | A kind of distributed system data monitoring method, device and relevant device | |
| CN109996193A (en) | Note transmission method, device, system and equipment based on intelligence letter platform | |
| US20120108261A1 (en) | Dynamic travel behavior estimation in mobile network | |
| JP7073952B2 (en) | Data collection system and data collection method | |
| CN106251017A (en) | Data predication method and device | |
| Booysen et al. | Results from a water-saving maintenance campaign at Cape Town schools in the run-up to Day Zero | |
| Lu et al. | Short-term highway traffic state prediction using structural state space models | |
| CN105547311A (en) | Route planning method, mobile terminal, and system | |
| CN108595687A (en) | Water consumption method for detecting abnormality and database server | |
| WO2018233593A1 (en) | Network situational awareness method, device, system and machine readable medium | |
| JP6499216B2 (en) | Communication band calculation device, communication band calculation method, and program | |
| CN110197582A (en) | Data analysing method, device and traffic prewarning method, apparatus | |
| CN115334560A (en) | Method, device and equipment for monitoring base station abnormity and computer readable storage medium | |
| Pamukcu et al. | Characterizing 311 system reactions to a global health emergency | |
| US20250270803A1 (en) | Decoupling tidal effects from water depth measurements in stormwater drainage systems | |
| CN116863677A (en) | Drainage well overflow early warning method and device, storage medium and electronic equipment | |
| CN114949989A (en) | Method, device, equipment and medium for predicting filter element replacement time of water purifier | |
| CN109146140A (en) | A kind of Urban Flood Waterlogging prediction technique | |
| Zhang et al. | Empirical study on taxi GPS traces for vehicular ad hoc networks | |
| CN113034201A (en) | Real-time early warning method, system and computer based on advertisement putting process | |
| Al-Deek et al. | Dynamic message sign deployment and diversion behavior of travelers on Central Florida toll roads | |
| CN110855484A (en) | Method, system, electronic device and storage medium for automatically detecting traffic change |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |