Water purifier lease time calculation method, water purifier and storage medium

By using the main control module and clock module in the water purifier, combined with cloud computing and 24-hour mode cumulative timing, the problem of miscalculation of rental time caused by damage to the networking module or unstable network signal is solved, and accurate rental time calculation and Reduce labor costs.

CN118674532APending Publication Date: 2024-09-20NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410550141.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing water purifier rental time calculation method is prone to miscalculation when the networking module is damaged or the network signal is unstable, affecting user experience and increasing labor costs.

Method used

By setting up the main control module and clock module in the water purifier, the cloud is used to calculate the remaining rental days, and the 24-hour mode is used to accumulate time when the network is disconnected, ensuring the accuracy of rental time calculation and avoiding manual intervention.

Benefits of technology

It achieves accurate calculation of remaining lease time in both networked and non-networked states, reduces labor costs, and improves the accuracy and reliability of lease management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674532A
    Figure CN118674532A
Patent Text Reader

Abstract

The invention relates to a water purifier lease time calculation method, which comprises the following steps: when a water purifier starts a lease working mode, uploading a lease expiration date to a cloud, and calculating the remaining lease day number T0 in real time by the cloud based on the current date and the lease expiration date; in the renting process of the water purifier, if the water purifier is in a networking state, the main control module in the water purifier is based on the time of the cloud, the real-time updating time of the remaining renting days and the remaining renting days T0; in the renting process of the water purifier, if the water purifier is in an off-network state, the main control module autonomously performs cumulative timing in a 24-hour mode on the basis of the currently stored remaining renting day number T0, and the main control module calculates the remaining renting day number T0 = T0-1 every 24-hour cumulative timing; and when T0 is equal to 0, the master control module judges that the lease deadline is reached. According to the method for calculating the lease time of the water purifier, the remaining lease time can be accurately calculated when the network is disconnected. The invention also relates to a water purifier applying the water purifier lease time calculation method, and relates to a storage medium which stores computer instructions which can be executed to realize the water purifier lease time calculation method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a water purifier rental time calculation method, a water purifier and a storage medium. Background Art

[0002] With economic development, people pay more and more attention to the quality of life. Water purifiers are widely used in daily life as a device for filtering and purifying water. At present, high-quality water purifiers on the market are expensive. For some occasions where water purifiers are needed for a short period of time due to special circumstances, it is not cost-effective to purchase water purifiers on demand. Therefore, leasing water purifiers has gradually developed into an emerging business.

[0003] The accurate calculation of the rental time of a water purifier directly affects its usage fee. Currently, the rental time of a water purifier is usually calculated manually, and the user is notified after the rental time expires. Manual calculation and notification have high labor and maintenance costs. In order to reduce labor costs, water purifiers that use the Internet to calculate the rental time and notify the expiration of the rental time have emerged. However, when this type of water purifier is used, there will be problems with incorrect calculation of the rental time due to damage to the networking module or poor network signal, which affects the user experience. Summary of the invention

[0004] The first technical problem to be solved by the present invention is to provide a method for calculating the rental time of a water purifier, which can accurately calculate the remaining rental time in an online and / or offline state, in response to the above-mentioned prior art.

[0005] The second technical problem to be solved by the present invention is to provide a water purifier using the above-mentioned water purifier rental time calculation method in response to the above-mentioned prior art.

[0006] The third technical problem to be solved by the present invention is to provide a storage medium for the above-mentioned prior art, storing computer instructions that can be executed to implement the above-mentioned water purifier rental time calculation method.

[0007] The technical solution adopted by the present invention to solve the above-mentioned first technical problem is: a method for calculating the rental time of a water purifier, characterized in that: judging whether the water purifier starts the rental working mode according to the rental information of the water purifier;

[0008] When the water purifier starts the rental working mode, the lease expiration date is uploaded to the cloud, and the cloud calculates the remaining rental days T0 in real time based on the current date and the lease expiration date;

[0009] During the leasing process of the water purifier, if the water purifier is connected to the Internet, the main control module in the water purifier will update the time and the remaining rental days T0 in real time based on the time in the cloud.

[0010] During the leasing process of the water purifier, if the water purifier is disconnected from the Internet, the main control module will autonomously perform cumulative timing in 24-hour mode based on the currently stored remaining rental days T0. Every 24 hours of cumulative timing, the main control module calculates the remaining rental days T0 = T0-1;

[0011] When T0=0, the main control module determines that the lease term has expired.

[0012] Preferably, when the main control module determines that the lease term has arrived, it controls the water purifier to self-lock and prompts the lease expiration information.

[0013] Preferably, when the water purifier is not started in the rental working mode, the whole water purifier is controlled to work normally.

[0014] In order to more accurately determine the disconnection status of the water purifier, during the water purifier rental process, when the main control module detects that the water purifier is disconnected from the network, the disconnection time Td of the water purifier is measured. When Td reaches the first time threshold T1, it is determined that the water purifier is in the disconnection state.

[0015] Preferably, when in the networking state, the accumulated timing of the 24-hour mode of the main control module is reset.

[0016] In order to avoid affecting the rental time, when the water purifier is disconnected from the network, the time in the clock module of the water purifier is compared with the time in the main control module. If the time in the clock module is earlier than the date in the main control module, the water purifier is judged to be abnormal.

[0017] Accumulate and count the number of abnormalities N of the water purifier;

[0018] When N reaches the abnormal number threshold N0, it is judged that the rental status of the water purifier is abnormal, and the water purifier is controlled to self-lock accordingly.

[0019] As an improvement, when the water purifier is connected to the Internet, the current time in the cloud is updated to the main control module and clock module of the water purifier, and the number of abnormal times N of the water purifier is cleared.

[0020] In order to improve the timing accuracy of the main control module, if the time in the clock module is earlier than the time in the main control module, the time in the main control module is updated to the time in the current clock module.

[0021] As an improvement, when the water purifier is in an offline state, the time in the clock module of the water purifier is compared with the time in the main control module. If the time in the clock module is not earlier than the time in the main control module, the date difference ΔT between the clock module and the main control module is calculated, and then based on ΔT and the remaining rental days T0 currently stored in the main control module, the remaining rental days T0 is calculated as T0=T0-ΔT; and the time in the main control module is updated to the time in the current clock module.

[0022] The technical solution adopted by the present invention to solve the above-mentioned second technical problem is: a cleaning machine, including a main body, a control unit and a memory arranged in the main body, the control unit including a main control module and a clock module, characterized in that: computer instructions are stored in the memory, and the computer instructions are used to enable the control unit to execute and realize the working method of the cleaning machine as mentioned above.

[0023] The technical solution adopted by the present invention to solve the third technical problem mentioned above is: a computer-readable storage medium, characterized in that: the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute and implement the working method of the cleaning machine as mentioned above.

[0024] Compared with the prior art, the advantages of the present invention are: the water purifier rental time calculation method of the present invention can accurately calculate the remaining rental time even when the network is disconnected, which solves the instability problem of network rental time calculation and reduces labor costs.

[0025] When a water purifier to which the water purifier rental time calculation method is applied is leased, the calculation of the remaining rental time is more accurate and the management cost is low. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 The present invention is a flowchart of a method for calculating the rental time of a water purifier in an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The present invention is further described in detail below with reference to the accompanying drawings.

[0028] like Figure 1 As shown, the water purifier rental time calculation method in this embodiment includes the following steps S1 to S13.

[0029] S1. Determine whether the water purifier has started the rental working mode according to the rental information of the water purifier. If the water purifier has started the rental working mode, proceed to S2; otherwise proceed to S13. For water purifiers that can be rented, some self-locking structures will be set up inside. When the self-locking structure is in the self-locking state, the water purifier cannot be used normally. When the self-locking structure is in the unlocked state, the entire water purifier can be used normally. In addition, for water purifiers that can be rented, their coding information, rental status information, etc. will also be stored in the main control module. When the water purifier is placed at a rental location for use, the rental status information in the main control module will be set to the rental status. Based on the rental status information, the use of the water purifier within the rental time interval is controlled. In order to facilitate the management of a large number of rentable water purifiers, a cloud will also be set up. These rented water purifiers can communicate with the cloud to achieve autonomous management of these water purifiers.

[0030] S2. When the water purifier starts the rental working mode, the main control module will upload the rental expiration date to the cloud. The cloud will calculate the remaining rental days T0 in real time based on the current date and the rental expiration date.

[0031] S3. During the water purifier rental process, the main control module determines the networking status of the water purifier. If the water purifier is in the networking state, S4 is performed; if the water purifier is in the disconnected state, S5 is performed.

[0032] S4. The main control module in the water purifier keeps communicating with the cloud in real time, because the leasing information of the water purifier in the cloud is updated in real time and is accurate. Therefore, the main control module in the water purifier updates the time and the remaining leasing days T0 in the main control module in real time based on the time and the remaining leasing days on the cloud to keep them consistent with the cloud, thereby ensuring the accuracy of the information in the main control module.

[0033] In addition, when the water purifier is in the online state, the cumulative time of the 24-hour mode of the main control module described below is cleared. The current time in the cloud is updated to the main control module and clock module of the water purifier, and the number of abnormal times N of the water purifier described below is cleared.

[0034] Then proceed to S8.

[0035] S5. When the main control module detects that the water purifier is disconnected from the network, the disconnection time Td of the water purifier is counted. If Td is less than the first time threshold T1, the process returns to S3.

[0036] If Td reaches the first time threshold T1, it is determined that the water purifier is in an off-grid state, and then proceeds to S6.

[0037] By comparing the network disconnection time Td with the first time threshold T1, the network disconnection state can be judged more accurately, avoiding misjudgment caused by touching the networked device or short-term network instability.

[0038] S6. In addition to the main control module, the control module of the water purifier also has a clock module. The clock module will set the corresponding initial time value when the water purifier leaves the factory. Usually, the clock module is more accurate in the absence of external interference. When the main control module is disconnected from the Internet and there is no accurate time update from the cloud, there is usually an error in its timing. In the case of an error, the time of the main control module is usually earlier than the time of the clock module.

[0039] During the leasing and use of the water purifier, there are cases where the tenant interferes with the timing of the clock module by removing the battery that powers the clock module. In this case, the time in the clock module will be restored to the initial time value at the factory. The tenant intends to interfere with the normal calculation of the remaining rental time in this way.

[0040] In order to avoid affecting the rental time timing, when the water purifier is in an offline state, the time in the clock module of the water purifier is compared with the time in the main control module. If the time in the clock module is earlier than the date in the main control module, proceed to S7; otherwise, proceed to S9.

[0041] S7. Determine whether the water purifier is abnormal, and count the number of abnormal times N of the water purifier.

[0042] S8, comparing N with the abnormal number threshold N0;

[0043] If N<N0, the time in the main control module is updated to the time in the current clock module, so that the time on the main control module remains consistent with the clock module, which is convenient for subsequent abnormal judgment and improves the timing accuracy of the main control module.

[0044] Then proceed to S10;

[0045] If N reaches the abnormal number threshold N0, the water purifier rental status is judged to be abnormal, and the water purifier is controlled to self-lock accordingly.

[0046] S9. Calculate the date difference ΔT between the clock module and the main control module, and then calculate the remaining rental days T0=T0-ΔT based on ΔT and the remaining rental days T0 currently stored in the main control module; and update the time in the main control module to the time in the current clock module, so that the time on the main control module remains consistent with the clock module, which is convenient for subsequent abnormal judgment.

[0047] S10, the main control module independently performs cumulative timing in 24-hour mode based on the currently stored remaining rental days T0. Every 24 hours of cumulative timing, the main control module calculates the remaining rental days T0=T0-1, and then proceeds to S11.

[0048] The 24-hour mode of cumulative timing avoids the problem of being unable to effectively update the remaining rental days when the network is disconnected. The calculation of the remaining rental days based on the cumulative timing makes the statistics of the remaining rental days of the water purifier more accurate, avoids manual statistics, and reduces manual management costs. In addition, it also avoids the problem of users maliciously interfering with the calculation of the remaining rental time due to artificial network disconnection.

[0049] S11, determine whether T0 is 0, if so, the main control module determines that the lease term has arrived, and proceeds to S12; if not, return to S3.

[0050] S12, control the water purifier to self-lock and prompt the lease expiration information. The lease expiration information can be prompted by an information prompt module on the water purifier. The information prompt module can be set to various devices capable of providing information prompts in the prior art, such as a display screen, a display light, or a buzzer.

[0051] S13: When the water purifier is not in the rental working mode, the water purifier is controlled to work normally.

[0052] The water purifier rental time calculation method of the present invention can accurately calculate the remaining rental time even when the network is disconnected, thereby solving the instability problem of network rental time calculation and reducing labor costs. In addition, based on the processing of the time difference between the clock module and the main control module, it can effectively identify the situation where the user maliciously interferes with the rental time calculation, thereby ensuring the normal calculation of the remaining rental time, reducing the uncontrollability of the water purifier that can be rented, and reducing labor costs.

[0053] The present invention also relates to a cleaning machine, comprising a body, a control unit and a memory arranged in the body, wherein the control unit comprises a main control module and a clock module, and the memory stores computer instructions, which are used to make the control unit execute and realize the working method of the cleaning machine as described above. When the water purifier using the above water purifier rental time calculation method is leased, the remaining rental time is calculated more accurately and the management cost is low.

[0054] The present invention also relates to a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute and implement the working method of the cleaning machine as described above.

Claims

1. A method for calculating the leasing time of a water purifier, characterized in that: Determine whether the water purifier starts the rental working mode according to the rental information of the water purifier; When the water purifier starts the rental working mode, the lease expiration date is uploaded to the cloud, and the cloud calculates the remaining rental days T0 in real time based on the current date and the lease expiration date; During the leasing process of the water purifier, if the water purifier is connected to the Internet, the main control module in the water purifier will update the time and the remaining rental days T0 in real time based on the time in the cloud. During the leasing process of the water purifier, if the water purifier is disconnected from the Internet, the main control module will autonomously perform cumulative timing in 24-hour mode based on the currently stored remaining rental days T0. Every 24 hours of cumulative timing, the main control module calculates the remaining rental days T0 = T0-1; When T0=0, the main control module determines that the lease term has expired.

2. The method for calculating the rental time of a water purifier according to claim 1, characterized in that: When the main control module determines that the lease period has arrived, it controls the water purifier to self-lock and prompts the lease expiration information.

3. The method for calculating the rental time of a water purifier according to claim 1, characterized in that: When the water purifier is not in rental mode, the whole water purifier is controlled to work normally.

4. The method for calculating the rental time of a water purifier according to claim 1, characterized in that: During the water purifier rental process, when the main control module detects that the water purifier is disconnected from the network, it counts the disconnection time Td of the water purifier. When Td reaches the first time threshold T1, it is determined that the water purifier is in an offline state.

5. The method for calculating the rental time of a water purifier according to claim 1, characterized in that: When in the networking state, the accumulated time of the 24-hour mode of the main control module is cleared.

6. The method for calculating the rental time of a water purifier according to any one of claims 1 to 5, characterized in that: When the water purifier is in an off-network state, the time in the clock module of the water purifier is compared with the time in the main control module. If the time in the clock module is earlier than the date in the main control module, the water purifier is judged to be abnormal; Accumulate and count the number of abnormalities N of the water purifier; When N reaches the abnormal number threshold N0, it is judged that the rental status of the water purifier is abnormal, and the water purifier is controlled to self-lock accordingly.

7. The method for calculating the rental time of a water purifier according to claim 6, characterized in that: When the water purifier is connected to the Internet, the current time in the cloud is updated to the main control module and clock module of the water purifier, and the number of abnormal times N of the water purifier is cleared.

8. The method for calculating the rental time of a water purifier according to claim 6, characterized in that: If the time in the clock module is earlier than the time in the main control module, the time in the main control module is updated to the time in the current clock module.

9. The method for calculating the rental time of a water purifier according to claim 6, characterized in that: When the water purifier is in an offline state, the time in the clock module of the water purifier is compared with the time in the main control module. If the time in the clock module is not earlier than the time in the main control module, the date difference ΔT between the clock module and the main control module is calculated, and then the remaining rental days T0 is calculated based on ΔT and the remaining rental days T0 currently stored in the main control module, and the time in the main control module is updated to the time in the current clock module.

10. A cleaning machine, comprising a body, a control unit and a memory arranged in the body, wherein the control unit comprises a main control module and a clock module, characterized in that: The memory stores computer instructions, and the computer instructions are used to enable the control unit to execute and implement the working method of the cleaning machine according to any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute to implement the working method of the cleaning machine according to any one of claims 1 to 9.