Device use time processing method, energy storage power supply, energy storage system and storage medium

CN122990850APending Publication Date: 2026-10-27SHENZHEN POWEROAK NEWENER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611437413.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-16
Publication Date
2026-10-27

AI Technical Summary

Benefits of technology

[0018]第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有处理器可执行的程序指令,所述程序指令在被处理器执行时,以使所述处理器执行第一方面提供的设备使用时间处理方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122990850A_ABST
    Figure CN122990850A_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of energy storage power supply, and particularly relate to a device usage time processing method, an energy storage power supply, an energy storage system and a storage medium. Embodiments of the present application compare a current timestamp with a shutdown timestamp to generate a timing identifier, thereby determining whether an RTC clock is invalid. When the RTC clock is invalid and a discharge port of the energy storage power supply is in a normal billing state, a target cutoff timestamp under a first type of failure or a second type of failure is obtained based on an original cutoff timestamp, a last valid timestamp and a current time zone time calibration time. Thus, in the case that the RTC clock is abnormal and causes inaccurate time, the accurate timing of the user's available device time can be restored, the calculation error of the remaining usage time caused by the RTC clock failure is avoided, the accuracy of the usage time limit of the energy storage power supply is ensured, and the fairness of the device usage billing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of energy storage power technology, and in particular to a method for processing device usage time, an energy storage power supply, an energy storage system, and a storage medium. Background Technology

[0002] In recent years, PAYGO (Pay-As-You-Go) has become a widely used business model and technological solution in off-grid energy systems, portable energy storage devices, and home appliances. The PAYGO model allows users to use devices through installment payments or pay-as-you-go options, eliminating the need for large upfront payments, making it particularly suitable for regions with underdeveloped financial infrastructure.

[0003] The PAYGO system or device works as follows: Each device is assigned a unique serial number and key at the factory and is in a locked state. After purchasing a number of days of use from a reseller, the reseller generates an activation code of a specific length based on the device's serial number and provides it to the user. The user enters the corresponding activation code on the device, and the device verifies the validity of the activation code using its built-in decryption algorithm. If the verification is successful, the device grants access for the corresponding number of days. An internal maintenance timer gradually decreases over time. When the remaining usage time reaches zero, the device enters and locks, automatically locking the discharge function until the user enters a new activation code.

[0004] In related technologies, Paygo devices primarily use real-time timing based on RTC (Real-Time Clock) hardware or relative timing based on software timers for time management. If, during actual use, a minor battery drain causes the RTC to fail, directly locking the device's discharge port negatively impacts user experience. Furthermore, if a user intentionally pauses device use, causing RTC timing to fail, this forced pausing renders the device idle for a period, effectively extending its usage time for free and resulting in financial loss for the business. However, current technologies lack methods to detect RTC failures, making it difficult to promptly identify and address these issues. This can lead to unfair billing practices and an imbalance between the interests of users and businesses when using Paygo devices. Summary of the Invention

[0005] One objective of this application is to provide a device usage time processing method, energy storage power supply, energy storage system, and storage medium to improve the unfair billing of PAYGO devices caused by RTC clock failure in related technologies.

[0006] In a first aspect, embodiments of this application provide a device usage time processing method applied to an energy storage power supply, the energy storage power supply including an RTC clock, the method comprising: obtaining a current timestamp and a shutdown timestamp, the current timestamp being the current time of the RTC clock of the energy storage power supply, and the shutdown timestamp being the time of the RTC clock when the energy storage power supply was last shut down; generating a timing identifier based on the current timestamp and the shutdown timestamp, the timing identifier including a failure identifier for indicating RTC clock failure or a valid identifier for indicating RTC clock normal operation; responding to a timing identifier being a failure identifier and the usage status of the discharge port of the energy storage power supply being a normal billing status, and based on the original cutoff timestamp, the last valid timestamp, and the clock calibration... The current time zone carried by the quasi-instruction is used to calibrate and obtain the target cutoff timestamp under the first type of fault or the second type of fault. The normal billing status means that the discharge port is enabled and the usage time is a limited specified duration. The original cutoff timestamp means the cutoff time before the RTC clock fails and the user can use the energy storage power supply. The last valid timestamp is the timestamp of the moment before the RTC clock fails. The first type of fault is the RTC clock failure caused by the user forcibly suspending the use of the energy storage power supply. The second type of fault is the RTC clock failure caused by the failure of the energy storage power supply itself. The target cutoff timestamp means the cutoff time after the RTC clock is calibrated and the user can use the energy storage power supply.

[0007] In some embodiments, calibrating to obtain a target cutoff time stamp under a first type of fault based on the original cutoff time stamp, the last valid time stamp, and the current time zone time carried by the clock calibration command includes: in response to the fault type of the RTC clock failure being a first type of fault, determining the original remaining duration based on the original cutoff time stamp and the last valid time stamp, the original remaining duration representing the remaining time the user can use the energy storage power supply before the RTC clock failure; determining the total failure duration experienced by the RTC clock failure based on the last valid time stamp and the current time zone time; determining the usage deduction duration caused by the RTC clock failure under the first type of fault based on the original remaining duration and the total failure duration; determining the target remaining duration based on the usage deduction duration and the original remaining duration; and determining the target cutoff time stamp based on the target remaining duration and the current time zone time.

[0008] In some embodiments, determining the usage deduction time for RTC clock failure caused by a first type of fault, based on the original remaining time and the total failure time, includes: determining an allowable deduction time based on the sum of a proportional deduction time and a preset baseline deduction time, where the proportional deduction time is the product of the original remaining time and a penalty ratio, and the penalty ratio is the ratio of a preset penalty deduction time to a preset baseline time; determining a fault penalty time based on the minimum of the allowable deduction time and the baseline time; and determining the usage deduction time based on the minimum of the fault penalty time and the total failure time.

[0009] In some embodiments, determining the target remaining time based on the deducted time and the original remaining time includes: determining the difference between the original remaining time and the deducted time as a first interval time; and determining the maximum value between the first interval time and zero as the target remaining time.

[0010] In some embodiments, calibrating to obtain a target cutoff time stamp under a second type of fault based on the original cutoff time stamp, the last valid time stamp, and the current time zone time carried by the clock calibration command includes: in response to the fault type of the RTC clock failure being a second type of fault, determining the original remaining duration based on the original cutoff time stamp and the last valid time stamp, wherein the original remaining duration represents the remaining time that the user can use the energy storage power supply before the RTC clock failure; determining the total failure duration experienced by the RTC clock failure based on the last valid time stamp and the current time zone time; determining the target remaining duration based on the original remaining duration and the total failure duration; and determining the target cutoff time stamp based on the target remaining duration and the current time zone time.

[0011] In some embodiments, determining the original remaining duration based on the original cutoff timestamp and the last valid timestamp includes: determining the difference between the original cutoff timestamp and the last valid timestamp as the second interval duration; and determining the maximum value between the second interval duration and zero as the original remaining duration.

[0012] In some embodiments, determining the total duration of the RTC clock failure based on the last valid timestamp and the current time zone includes: determining the difference between the current time zone and the last valid timestamp as the third interval duration; and determining the maximum value between the third interval duration and zero as the total duration of the failure.

[0013] In some embodiments, determining the target remaining time based on the original remaining time and the total failure time includes: determining the difference between the original remaining time and the total failure time as the fourth interval time; and determining the maximum value between the fourth interval time and zero as the target remaining time.

[0014] In some embodiments, the device usage time processing method further includes: in response to the timing flag being a failure flag and the usage state being a locked state, determining the current time zone time as a target cutoff timestamp, the locked state being used to indicate that the discharge port is in a disabled state; in response to the timing flag being a failure flag and the usage state being a permanently unlocked state, determining a preset permanent timestamp as a target cutoff timestamp, the permanently unlocked state being used to indicate that the discharge port is in an enabled state and the usage time is unlimited.

[0015] In some embodiments, a timing identifier is generated based on the current timestamp and the power-off timestamp, including: generating a failure identifier in response to the current timestamp being less than the power-off timestamp, and / or the current timestamp being a preset factory default time; and generating a valid identifier in response to the current timestamp being greater than or equal to the power-off timestamp and the current timestamp not being a factory default time.

[0016] Secondly, embodiments of this application provide an energy storage power supply, including a controller and an RTC clock and a discharge port connected to the controller. The controller includes a processor and a memory. The processor is communicatively connected to the memory. The memory stores program instructions executable by the processor. When the program instructions are executed by the processor, the controller executes the device usage time processing method provided in the first aspect.

[0017] Thirdly, embodiments of this application provide an energy storage system, including an energy storage power supply as provided in the second aspect and an external communication system. The external communication system is communicatively connected to the energy storage power supply and is used to send a clock calibration command carrying the current time zone to the energy storage power supply.

[0018] Fourthly, embodiments of this application provide a computer-readable storage medium storing processor-executable program instructions, which, when executed by a processor, cause the processor to perform the device usage time processing method provided in the first aspect.

[0019] The embodiments of this application have the following beneficial effects: Unlike related technologies, the embodiments of this application generate a timing identifier by comparing the current timestamp with the power-off timestamp, thereby determining whether the RTC clock has failed. When the RTC clock fails and the discharge port of the energy storage power supply is in normal billing status, the target cutoff timestamp under the first type of fault or the second type of fault is obtained based on the original cutoff timestamp, the last valid timestamp, and the current time zone time calibration time. Therefore, in the case of inaccurate time due to RTC clock abnormalities, the accurate timing of the user's usable device time can be restored, avoiding errors in the calculation of remaining usage time due to RTC clock failure, thereby ensuring the accuracy of the energy storage power supply's usage time limit and improving the fairness of device usage billing. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the accompanying drawings used in the description of the related technologies or embodiments will be briefly introduced below. Obviously, the drawings described below only show some embodiments of this application and should not be considered as limiting the scope of protection. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram illustrating application scenarios for processing device usage time in some embodiments of this application; Figure 2 These are schematic diagrams of the energy storage system provided in some embodiments of this application; Figure 3 This is a schematic flowchart of a device usage time processing method provided in some embodiments of this application; Figure 4 yes Figure 3 A schematic diagram of a sub-process of step S33 in the device usage time processing method shown in the embodiment. Detailed Implementation

[0022] To make the objectives and advantages of the embodiments of this application more readily understood, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. The detailed description of the embodiments of this application in the accompanying drawings is not intended to limit the scope of protection claimed by this application, but only represents selected embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0023] It should be noted that, unless there is a conflict, the various technical features involved in the embodiments of this application described below can be combined with each other, and all are within the protection scope of this application. Furthermore, although functional modules are divided in the device or structural schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. In addition, the terms "first," "second," "third," and other similar expressions used herein do not limit the data or execution order, but are only for illustrative purposes and to distinguish identical or similar items with substantially the same function and effect, and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features.

[0024] Unless otherwise defined, the technical and scientific terms used in this specification have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this application. It should be understood that the term "and / or" as used in this specification includes any and all combinations of one or more of the listed items.

[0025] This application's embodiments generate a timing identifier by comparing the current timestamp with the power-off timestamp, thereby determining whether the RTC clock has failed. When the RTC clock fails but the energy storage power supply's discharge port is in normal billing status, the target cutoff timestamp for either the first or second type of fault is obtained based on the original cutoff timestamp, the last valid timestamp, and the current time zone time calibration time. Therefore, in cases where RTC clock malfunctions cause inaccurate timekeeping, the accurate timing of the user's device usage time can be restored, avoiding errors in calculating remaining usage time due to RTC clock failure. This ensures the accuracy of the energy storage power supply's usage time limit, improves the fairness of device usage billing, and balances the interests of users and businesses during device use.

[0026] Please refer to the following: Figure 1 as well as Figure 2 , Figure 1 The illustrations depict application scenarios for processing device usage time in some embodiments of this application. Figure 2 The schematic diagram illustrates the structure of an energy storage system provided in some embodiments of this application.

[0027] For example, the energy storage system 1000 includes an energy storage power supply 100 and an external communication system 200. The energy storage power supply 100 and the external communication system 200 maintain a communication connection via a network, examples of which include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The external communication system 200 can be, but is not limited to, a mobile app, a host computer, and a backend cloud platform. The host computer includes, but is not limited to, any suitable type of device such as mobile devices, terminal devices, communication devices, computing devices, vehicle-mounted devices, handheld devices, and cloud devices. The host computer can be a desktop computer, laptop computer, all-in-one computer, tablet computer, or other such devices or devices.

[0028] For example, the energy storage power supply 100 includes a controller 110, an RTC clock 120, a discharge port 130, and a charging port 140, wherein the RTC clock 120, the discharge port 130, and the charging port 140 are all connected to the controller 110 (including communication connection, electrical connection, etc.).

[0029] RTC clock 120 is a real-time timer based on RTC (Real-Time Clock) hardware, configured to time the duration of user use of energy storage power supply 100. Discharge port 130 is configured to output electrical energy from energy storage power supply 100 to the load device. Figure 1 and Figure 2 (Not shown in the image). The charging port 140 is configured to transmit electrical energy from an external charging device to the energy storage power supply 100 to charge the energy storage power supply 100.

[0030] The controller 110 is configured to coordinate and control the various components of the energy storage power supply 100 (such as the RTC clock 120, the discharge port 130, and the charging port 140) to execute the device usage time processing method provided in this application embodiment. It is understood that engineers can select any suitable device or component, such as a microcontroller, digital signal processor, or FPGA chip, as the controller 110 based on engineering experience and actual needs; this application embodiment does not impose any limitations on this.

[0031] When an RTC clock 120 failure is detected, the external communication system 200 will also receive the RTC clock 120 failure information from the energy storage power supply 100. At this time, the external communication system 200 sends a clock calibration command to the energy storage power supply 100 via the network. The clock calibration command carries the current time zone time, which is the real-world time of the region where the energy storage power supply is located at the current moment.

[0032] For example, embodiments of this application perform the following operation on processing device usage time to calibrate and obtain a target cutoff timestamp.

[0033] Get the current timestamp and power-off timestamp. The current timestamp is the current time of the RTC clock of the energy storage power supply, and the power-off timestamp is the time of the RTC clock when the energy storage power supply was last powered off.

[0034] A timing identifier is generated based on the current timestamp and the power-off timestamp. This timing identifier includes either a failure identifier to indicate RTC clock failure or a valid identifier to indicate that the RTC clock is functioning correctly.

[0035] In response to a timing flag indicating failure and the energy storage power supply's discharge port being in normal billing status, the target deadline timestamp is calibrated based on the original deadline timestamp, the last valid timestamp, and the current time zone carried by the clock calibration command, to obtain either a first-type or second-type fault. Normal billing status indicates that the discharge port is enabled and used for a limited, specified duration. The original deadline timestamp indicates the cutoff time before the RTC clock fails. The last valid timestamp indicates the timestamp immediately preceding the RTC clock failure. A first-type fault is an RTC clock failure caused by the user forcibly suspending the use of the energy storage power supply; a second-type fault is an RTC clock failure caused by a fault in the energy storage power supply itself. The target deadline timestamp indicates the cutoff time after RTC clock calibration before the user can use the energy storage power supply.

[0036] By using the above methods, the accurate timing of the user's device usage time can be restored, avoiding errors in the calculation of remaining usage time due to RTC clock failure. This ensures the accuracy of the energy storage power supply's usage time limit, improves the fairness of device usage billing, and balances the interests between users and merchants during device use.

[0037] It should be understood that Figure 1 and Figure 2 The illustrated embodiments are merely illustrative of one scenario for handling the usage time of the energy storage power supply 100 in some embodiments of this application, and do not limit the structure, type, quantity, or any other aspects of the energy storage power supply 100 in other embodiments. For example, the energy storage power supply in some other embodiments may also include more than Figure 2 The structure shown has more or fewer components, or has the same Figure 2 The diagram shows different configurations of the structure.

[0038] To facilitate understanding of the device usage time processing method provided in the embodiments of this application, the controller of the energy storage power supply provided in the embodiments of this application will be described in detail first.

[0039] like Figure 2 As shown, the controller 110 includes at least one processor 111 and at least one memory 112 connected in communication, wherein, Figure 2 Taking a bus system 113, a processor 111, and a memory 112 as an example, the various components of the controller 110 are coupled together through the bus system 113, which is used to realize the connection and communication between the various components. It is easy to understand that the bus system 113 may include a power bus, control bus, and status signal bus, in addition to the data bus; however, for clarity and brevity, these will not be discussed further. Figure 2 In this designation, all buses are labeled as Bus System 113. Understandably, Figure 2 The structures shown in the embodiments are merely illustrative and do not limit the structure of the energy storage power source described above. For example, the energy storage power source may also include components that are more... Figure 2 The structure shown has more or fewer components, or has the same Figure 2 The diagram shows different configurations of the structure.

[0040] Specifically, the processor 111 provides computational and control capabilities to support the controller 110 in executing corresponding business logic and functions. For example, it supports the controller 110 in executing the device usage time processing method provided in this application embodiment, or in executing the steps in any possible implementation of the device usage time processing method provided in this application embodiment. The processor 111 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), or a digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0041] The memory 112, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, instructions, and modules, such as the program, instructions, and modules corresponding to the device usage time processing method in the embodiments of this application. In some embodiments, the memory 112 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function, and the data storage area may store data created according to the use of the processor 111. The processor 111 executes various functional applications and data processing of the controller 110 by running the non-transitory software programs, instructions, and modules stored in the memory 112, thereby implementing the device usage time processing method provided in the embodiments of this application, or executing the steps in any possible implementation of the device usage time processing method provided in the embodiments of this application. In some embodiments, the memory 112 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 112 may also include memory remotely located relative to the processor 111, and these remotely located memories may be connected to the processor 111 through a communication network. Understandably, examples of the aforementioned communication networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0042] As can be understood from the above, the device usage time processing method provided in this application embodiment can be implemented by any suitable type of energy storage power source with certain computing and control capabilities, such as the aforementioned energy storage power source 100. In some feasible implementations, the device usage time processing method provided in this application embodiment can be implemented by a processor executing program instructions stored in a memory.

[0043] The following will describe in detail the device usage time processing method provided in this application embodiment, with reference to exemplary applications and implementations of the energy storage power supply provided in the embodiments of this application.

[0044] Please see Figure 3 As shown, the device usage time processing method provided in this application embodiment includes steps S31 to S33 to realize the processing of device usage time.

[0045] Step S31: Obtain the current timestamp and the shutdown timestamp.

[0046] The current timestamp is the current time of the RTC clock of the energy storage power supply, and the shutdown timestamp is the time of the RTC clock when the energy storage power supply was last shut down.

[0047] For example, after the energy storage power supply is powered on or during normal operation, this embodiment of the application accesses the time register of the RTC clock with a preset detection cycle, reads the year, month, day, hour, minute, second and other information currently recorded in the time register of the RTC clock, and uses the reading result as the current time data.

[0048] The system performs timestamp conversion on the current time data, transforming time information such as year, month, day, hour, minute, and second into continuous time values ​​according to a preset time base to obtain the current timestamp. For example, it converts the current time into the number of seconds or milliseconds that have elapsed relative to a preset base time for time difference calculation.

[0049] Each time the energy storage power supply is powered off, this embodiment reads the current time from the RTC clock and writes the corresponding time data into a non-volatile storage area to form power-off time data. When the energy storage power supply is restarted, the most recent valid power-off time data is read from the non-volatile storage area. The read power-off time data is converted according to the same time base and time unit as the current timestamp to obtain a power-off timestamp, thereby ensuring that the current timestamp and the power-off timestamp have a unified time scale.

[0050] The current timestamp and the power-off timestamp are saved, thus providing basic data for subsequent determination of whether the RTC clock has malfunctioned based on the time difference between the current timestamp and the power-off timestamp.

[0051] Step S32: Generate a timing identifier based on the current timestamp and the shutdown timestamp.

[0052] In this embodiment, the timing flag includes a failure flag indicating RTC clock failure or a valid flag indicating RTC clock normal operation. RTC clock failure means the RTC clock malfunctions and cannot accurately record time; RTC clock normal operation means the RTC clock is working properly and can accurately record time. The timing flag can be represented in any suitable form; for example, rtcFailureFlag=0 indicates a valid timing flag, and rtcFailureFlag=1 indicates a failure timing flag.

[0053] For example, after obtaining the current timestamp and the shutdown timestamp, the time difference between the current timestamp and the shutdown timestamp is calculated using a uniform time unit. The time difference is used to characterize the length of time that the energy storage power supply has been in operation since the last shutdown.

[0054] By obtaining the preset time difference threshold, engineers can customize the time difference threshold based on the normal timing characteristics of the RTC clock during the power storage power supply shutdown period. The time difference threshold is used to determine whether the time recorded by the current RTC clock is continuous.

[0055] For example, the current timestamp is compared with the power-off timestamp; if the current timestamp is greater than or equal to the power-off timestamp and the time difference between the current timestamp and the power-off timestamp is less than or equal to the time difference threshold, it is determined that the current time record of the RTC clock meets the preset normal timing conditions, and a valid identifier is generated; if the current timestamp is less than the power-off timestamp, and / or the time difference between the current timestamp and the power-off timestamp is greater than the time difference threshold, it is determined that the current time record of the RTC clock does not meet the normal timing conditions, and a failure identifier is generated.

[0056] For example, the generated timing identifier is associated with the time information collected during this test (i.e., the current timestamp and the power-off timestamp) so that different usage time processing methods can be selected later based on whether the RTC clock is normal. When the timing identifier is valid, the normal cutoff time can be determined based on the time recorded by the RTC clock; when the timing identifier is invalid, the cutoff time of the device is calibrated.

[0057] By using the above method, the continuity of RTC time before and after the energy storage power supply is turned off can be used to determine whether the RTC clock is abnormal, thereby providing a reliable basis for calibrating user time in the event of RTC clock failure.

[0058] In some implementations, the embodiments of this application generate a timing identifier based on the current timestamp and the power-off timestamp through steps S321 to S322.

[0059] Step S321: If the current timestamp is less than the power-off timestamp, and / or the current timestamp is the preset factory default time, generate a failure flag.

[0060] Step S322: In response to the current timestamp being greater than or equal to the power-off timestamp and the current timestamp not being the factory default time, generate a valid identifier.

[0061] The factory default time can be any suitable time that has been pre-calibrated, such as January 1, 1970, 00:00:00. This application embodiment does not impose any limitation on this.

[0062] For example, in this application embodiment, the current timestamp is compared with the power-off timestamp, and it is determined whether the current timestamp is the preset factory default time; when the current timestamp is less than the power-off timestamp, and / or the current timestamp is the factory default time, a failure flag is generated to indicate that the RTC clock has failed.

[0063] For example, when the current timestamp is greater than or equal to the power-off timestamp and the current timestamp is not the factory default time, a valid identifier is generated to indicate that the RTC clock is normal.

[0064] Step S33: In response to the timing indicator being a failure indicator and the energy storage power supply's discharge port being in normal billing status, calibrate to obtain the target deadline time stamp under the first type of fault or the second type of fault based on the original cutoff time stamp, the last valid time stamp, and the current time zone time carried by the clock calibration command.

[0065] Usage status characterizes the usage duration of the discharge port of the energy storage power supply. For example, when the usage status is normal billing status, it means that the usage duration of the discharge port of the energy storage power supply is a limited specified duration, which is the duration for which the user purchases and uses the energy storage power supply (e.g., purchasing 30 days of usage).

[0066] The "normal billing status" indicates that the discharge port is enabled and the usage time is a limited, specified duration. Under normal billing status, the user can purchase and use the energy storage power supply for a limited, specified period. For example, at the current moment, if the energy storage power supply's discharge port is in normal billing status for a specified duration of 15 days, then the energy storage power supply will keep its discharge port enabled for 15 days, meaning the user can use the energy storage power supply for that specified 15-day period.

[0067] RTC clock failures can be categorized into two types: Type 1 and Type 2. Type 1 failures are caused by the user forcibly suspending the use of the energy storage power supply. For example, if a user uses brute-force methods to forcibly suspend the energy storage power supply, resulting in RTC clock failure, the user will have their device usage time extended free of charge. Type 2 failures are caused by a fault in the energy storage power supply itself. It is understood that, to distinguish between Type 1 and Type 2 failures, the corresponding failure identifiers can be different letters or numbers.

[0068] Understandably, when the RTC clock fails (i.e., the timing flag is invalid), a cutoff time calibration operation is performed based on the fault type of the RTC clock failure. When the RTC clock is normal (i.e., the timing flag is valid), the normal time processing flow based on the RTC clock is maintained.

[0069] In this embodiment, the original cutoff timestamp represents the cutoff time before the RTC clock fails, during which the user can use the energy storage power supply. The last valid timestamp is the timestamp of the moment before the RTC clock fails, representing the time recorded just before the RTC clock fails. The target cutoff timestamp represents the cutoff time after the RTC clock is calibrated, during which the user can use the energy storage power supply.

[0070] Different calculation methods are used depending on the type of fault (i.e., type I fault or type II fault). The target remaining time is calculated based on the original cutoff timestamp, the last valid timestamp, and the current time zone time carried by the clock calibration command. The target cutoff timestamp under type I fault or type II fault is calibrated and determined based on the current time zone time and the target remaining time.

[0071] The original deadline timestamp is updated to the target deadline timestamp, and the subsequent usage period is determined based on the new target deadline timestamp. When the target deadline timestamp is reached, the energy storage power supply stops providing preset available functions to the discharge port, thereby reducing or avoiding the situation where the actual usable time of the user is incorrectly extended or shortened due to RTC clock failure.

[0072] By using the above method, when the RTC clock fails and the discharge port of the energy storage power supply is in normal billing status, the cutoff time under the first type of fault or the second type of fault can be re-determined by combining the original cutoff timestamp, the last valid timestamp and the current time zone of the site where the energy storage power supply is located, thereby improving the accuracy and reliability of the energy storage power supply service life management.

[0073] See Figure 4As shown, in some embodiments, the present application embodiments achieve, through steps S33A1 to S33A5, calibration to obtain the target cutoff time stamp under the first type of fault based on the original cutoff time stamp, the last valid time stamp and the current time zone time carried by the clock calibration command.

[0074] Step S33A1: In response to the fault type of RTC clock failure being the first type of fault, determine the original remaining duration based on the original cutoff timestamp and the last valid timestamp.

[0075] In this embodiment, the original remaining time represents the remaining time that the user can use the energy storage power source before the RTC clock fails.

[0076] Understandably, the first type of failure mainly refers to users who intentionally suspend the use of energy storage power sources when they have usage rights and remaining usage time, thereby forcibly delaying the use of the equipment. This is unfair to the merchants. Therefore, it is necessary to recalibrate to obtain the target deadline timestamp in order to balance the interests between users and merchants and achieve fairness in usage billing.

[0077] In some implementations, in step S33A1 above, when the fault type of the RTC clock failure is a first type of fault, the original remaining duration is determined based on the original cutoff timestamp and the last valid timestamp, including: determining the difference between the original cutoff timestamp and the last valid timestamp as the second interval duration; and determining the maximum value between the second interval duration and zero as the original remaining duration.

[0078] For example, the embodiments of this application are based on the formula: Calculate the original remaining time. This is the original remaining time. It is zero, that is ; This is the original deadline timestamp. This is the last valid timestamp. This is the second interval duration; This is a function for finding the maximum value.

[0079] Step S33A2: Based on the last valid timestamp and the current time zone, determine the total duration of the RTC clock failure, including: determining the difference between the current time zone and the last valid timestamp as the third interval duration; and determining the maximum value between the third interval duration and zero as the total duration of the failure.

[0080] For example, the embodiments of this application are based on the formula: Calculate the total failure duration. Among them, Total duration of failure It is zero, that is ; This is the current time zone. This is the last valid timestamp. This is the duration of the third interval; This is a function for finding the maximum value.

[0081] Step S33A3: Based on the original remaining time and the total failure time, determine the usage deduction time caused by the RTC clock failure under the first type of fault.

[0082] Understandably, in cases where users intentionally do not use the device despite having usage rights and remaining usage time, a reasonable usage time deduction needs to be determined to compensate for the merchant's losses. This deduction time should be deducted from the original remaining usage time to punish and restrain the behavior of forcibly suspending device use in order to extend device usage for free, thus ensuring the interests and fairness of both the merchant and the user as much as possible.

[0083] For example, a baseline deduction duration is determined based on the hardware characteristics of the energy storage power supply. A penalty ratio is determined based on the preset baseline duration. A proportional deduction duration is determined based on the penalty ratio and the original remaining duration. The sum of the baseline deduction duration and the proportional deduction duration is determined as the usage deduction duration for RTC clock failure under the first type of fault. The preset baseline duration is the number of days in a preset month, which can be 30 days, 31 days, or 28 days.

[0084] In some embodiments, in step S33A3, the usage deduction time for RTC clock failure caused by the first type of fault is determined based on the original remaining time and the total failure time, including: determining the allowable deduction time based on the sum of the proportional deduction time and the preset base deduction time; determining the fault penalty time based on the minimum of the allowable deduction time and the base time; and determining the usage deduction time based on the minimum of the fault penalty time and the total failure time.

[0085] In this embodiment, the base duration The preset time is 30 days, that is Disciplinary ratio Deduct time for preset penalty Compared with the baseline duration The ratio. Disciplinary ratio. The penalty ratio is set with a preset percentage weight to balance fairness between merchants and users. A suitable threshold needs to be set. When a Type I failure occurs, the user's remaining 30 days of usage time (i.e., the baseline time) is considered. If this occurs, 1.2 days of usage time will be deducted (i.e., penalty deduction of usage time). Therefore, the punishment ratio can be calculated. Among them, the deduction period is proportional. Original remaining time With the proportion of punishment The product of, i.e.: .

[0086] Among them, the basic deduction duration The value of this parameter is related to the hardware characteristics of the energy storage power supply. After a power outage, the backup battery of the RTC clock (such as a supercapacitor or button cell battery) can ensure that the RTC clock remains uninterrupted for a preset number of days. This preset number of days is the base time deducted. It's understandable; without a base period for time reduction... When a user has very little remaining usage time (e.g., intentionally causing an RTC clock failure when there is only one day left to use the service), the calculated percentage of time deducted is used. Since it takes approximately one day (about one hour) for merchants to effectively curb such behavior, a basic deduction period needs to be preset. .

[0087] For example, embodiments of this application are based on the formula: Calculate the fault penalty duration. Among them, For the duration of fault penalty, Based on the base duration; The duration of the reduction is proportional. Based on the deduction period, To allow for the deduction of time; This represents the minimum value function, used to find the minimum value.

[0088] For example, embodiments of this application are based on the formula: The usage time deducted is calculated. To use the deducted time, Total duration of failure The duration of the fault penalty; This represents the minimum value function, used to find the minimum value.

[0089] Step S33A4: Based on the usage deduction time and the original remaining time, determine the target remaining time, including: determining the difference between the original remaining time and the usage deduction time as the first interval time; determining the maximum value between the first interval time and zero as the target remaining time.

[0090] For example, embodiments of this application are based on the formula: Calculate the remaining time for the target. Among them, For the remaining time of the target, It is zero, that is: ; This is the original remaining time. This indicates the use of deducted time. This is the duration of the first interval; This is a function for finding the maximum value.

[0091] Step S33A5: Determine the target deadline timestamp based on the remaining time of the target and the current time zone.

[0092] For example, the sum of the remaining time of the target and the current time zone is determined as the target's deadline timestamp, i.e. , The target deadline timestamp, This is the current time zone. The remaining time for the target.

[0093] In some implementations, when the discharge port of the energy storage power supply is in normal billing status, but the RTC clock failure is of the second type of fault, the second type of fault is mainly for the situation where the user cannot use the energy storage power supply due to the fault of the energy storage power supply itself. In the embodiments of this application, through steps S33B1 to S33B4, the target cutoff time stamp under the second type of fault is calibrated based on the original cutoff time stamp, the last valid time stamp and the current time zone time carried by the clock calibration command.

[0094] Step S33B1: In response to the fault type of RTC clock failure being the second type of fault, determine the original remaining duration based on the original cutoff timestamp and the last valid timestamp.

[0095] In this embodiment, the second type of fault mainly refers to situations where the user is unable to use the energy storage power supply due to a fault in the power supply itself. A fault in the device itself causing the RTC clock to malfunction will result in incorrect usage time statistics; therefore, recalibration is required to obtain the target cutoff timestamp. Faults in the energy storage power supply itself include device-specific malfunctions such as battery power loss, low battery level, or circuit problems.

[0096] In some embodiments, in step S33B1 above, when the fault type of the RTC clock failure is a second type of fault, the original remaining duration is determined based on the original cutoff timestamp and the last valid timestamp, including: determining the difference between the original cutoff timestamp and the last valid timestamp as the second interval duration; and determining the maximum value between the second interval duration and zero as the original remaining duration.

[0097] For example, the embodiments of this application are based on the formula: Calculate the original remaining time. This is the original remaining time. It is zero, that is ; This is the original deadline timestamp. This is the last valid timestamp. This is the second interval duration; This is a function for finding the maximum value.

[0098] Step S33B2: Based on the last valid timestamp and the current time zone, determine the total duration of the RTC clock failure, including: determining the difference between the current time zone and the last valid timestamp as the third interval duration; and determining the maximum value between the third interval duration and zero as the total duration of the failure.

[0099] For example, the embodiments of this application are based on the formula: Calculate the total failure duration. Among them, Total duration of failure It is zero, that is ; This is the current time zone. This is the last valid timestamp. This is the duration of the third interval; This is a function for finding the maximum value.

[0100] Step S33B3: Based on the original remaining time and the total failure time, determine the target remaining time, including: determining the difference between the original remaining time and the total failure time as the fourth interval time; determining the maximum value between the fourth interval time and zero as the target remaining time.

[0101] For example, embodiments of this application are based on the formula: Calculate the remaining time for the target. Among them, For the remaining time of the target, It is zero, that is: ; This is the original remaining time. Indicates the total duration of failure. This is the fourth interval duration; This is a function for finding the maximum value.

[0102] Step S33B4: Determine the target deadline timestamp based on the remaining time of the target and the current time zone.

[0103] For example, the sum of the remaining time of the target and the current time zone is determined as the target's deadline timestamp, i.e. , The target deadline timestamp, This is the current time zone. The remaining time for the target.

[0104] In one or more embodiments, the device usage time processing method provided in this application further includes steps S41 to S42.

[0105] Step S41: In response to the timing flag being invalid and the usage state being locked, the current time zone time is determined as the target deadline timestamp.

[0106] The locked state indicates that the discharge port is disabled, meaning the user has not purchased and used the energy storage power supply for a specified period. Therefore, after calibrating the RTC clock, access to the discharge port is not granted to the user, thus prohibiting the user from using the energy storage power supply.

[0107] For example, when the timing indicator is invalid and the discharge port is in a locked state, this embodiment of the application will set the current time zone time. Determined as the target deadline timestamp (Right now: Therefore, users are prohibited from using energy storage power sources.

[0108] Step S42: In response to the timing flag being invalid and the usage status being permanently unlocked, the preset permanent timestamp is determined as the target expiration timestamp.

[0109] In this embodiment, the permanent unlock state indicates that the discharge port is in the enabled state and the usage time is unlimited. This means that the user can purchase and use the energy storage power for an unlimited duration. The energy storage power enables the discharge port to be in the enabled state, thereby opening the discharge port to the user for an unlimited usage time, and the user can use the energy storage power permanently.

[0110] For example, when the timing indicator is invalid and the discharge port is permanently unlocked, a preset permanent timestamp will be applied. Determined as the target deadline timestamp (Right now: Thus, the discharge port can be opened to users for an unlimited period of time, allowing users to use the energy storage power source permanently.

[0111] The following describes, with some specific embodiments, how the processing device usage time is handled in the embodiments of this application.

[0112] Example 1: Normal usage scenario. Relevant parameters are shown in Table 1 below.

[0113] Table 1:

[0114] Based on the method of processing device usage time provided in the embodiments of this application, and in conjunction with Table 1, the following parameters are calculated.

[0115] Original remaining time sky.

[0116] Total duration of failure sky.

[0117] Target remaining time sky.

[0118] Target deadline timestamp .

[0119] Conclusion: After calibrating the RTC clock, the deadline for users to use the energy storage power supply is still March 31, 2026. 14 days have actually passed (i.e., the total failure time is 14 days). Therefore, the target remaining time has changed from 30 days to 16 days, which is completely reasonable.

[0120] In comparison, the equipment usage time using the relevant technology was calculated based on Table 1, yielding the following parameters.

[0121] Original remaining time sky.

[0122] Total duration of failure The RTC clock failed and stopped on March 15, 2026. The original remaining time was still 30 days. The RTC clock was calibrated on March 15, 2026.

[0123] Keeping the original remaining time of 30 days unchanged, the target deadline timestamp .

[0124] Conclusion: Users gain an additional 14 days of free use, while merchants lose 14 days of revenue.

[0125] As can be seen from the comparison, by adopting the method of processing device usage time provided in the embodiments of this application, the user neither gains additional usage time nor loses the purchased time, thus achieving fair billing.

[0126] Example 2: During the RTC clock failure period, the user fully utilizes the original remaining time. Relevant parameters are shown in Table 2 below.

[0127] Table 2:

[0128] Based on the processing device usage time method provided in the embodiments of this application, and in conjunction with Table 2, the following parameters are calculated.

[0129] Original remaining time sky.

[0130] Total duration of failure sky.

[0131] Target remaining time sky.

[0132] Target deadline timestamp .

[0133] Conclusion: After calibrating the RTC clock, the target remaining duration was set to 0 days. The discharge port was disabled to put it in a disabled state, and the discharge port was enabled to enter a locked state. The user actually used the device for 19 days (14 days of which were the purchased duration and 5 days of which were overdue). Immediately locking the discharge port after calibration is fair and reasonable.

[0134] Example 3: Time rollback protection. Relevant parameters are shown in Table 3 below.

[0135] Table 3:

[0136] Based on the processing device usage time method provided in the embodiments of this application, and in conjunction with Table 3, the following parameters are calculated.

[0137] Original remaining time sky.

[0138] Total duration of failure sky.

[0139] Target remaining time sky.

[0140] Target deadline timestamp .

[0141] Conclusion: After calibrating the RTC clock, the remaining time of the target is still 30 days, but the deadline timestamp changes from April 14, 2026 to March 31, 2026.

[0142] In summary, this application's embodiments generate a timing identifier by comparing the current timestamp with the power-off timestamp to determine whether the RTC clock has failed. When the RTC clock fails but the energy storage power supply's discharge port is in normal billing status, the target cutoff timestamp for either the first or second type of fault is obtained based on the original cutoff timestamp, the last valid timestamp, and the current time zone time calibration time. Therefore, in cases where RTC clock malfunctions cause inaccurate timekeeping, the accurate timing of the user's device usage time can be restored, avoiding errors in calculating remaining usage time due to RTC clock failure. This ensures the accuracy of the energy storage power supply's usage time limit, improves the fairness of device usage billing, and balances the interests of businesses and users during device use.

[0143] This application provides a computer-readable storage medium storing processor-executable program instructions. When executed by a processor, the program instructions cause the processor to perform the device usage time processing method provided in this application, or to perform the steps in any possible implementation of the device usage time processing method provided in this application.

[0144] In some embodiments, the storage medium may be a flash memory, a hard disk, an optical disk, a register, a magnetic surface memory, a removable disk, a CD-ROM, a random access memory (RAM), a read-only memory (ROM), an electrically programmable ROM, and an electrically erasable programmable ROM, or any other form of storage medium known in the art, or various devices including one or any combination of the above storage media.

[0145] In some embodiments, program instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0146] As an example, program instructions may, but do not necessarily, correspond to files in the file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, or in a single file dedicated to the program in question, or in multiple collaborative files (such as files that store one or more modules, subroutines, or code sections).

[0147] As an example, program instructions can be deployed to execute on a computing device (including devices such as smart terminals and servers), or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network. It is understood that all or part of the steps of the methods described in the embodiments provided in this application can be implemented directly using electronic hardware or processor-executable program instructions, or a combination of both.

[0148] Those skilled in the art will understand that the embodiments provided in this application are merely illustrative. The order in which the steps in the methods of the embodiments are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The order can be adjusted, merged, and deleted according to actual needs. Modules or sub-modules, units or sub-units in the apparatus or system of the embodiments can be merged, divided, and deleted according to actual needs. For example, the division of units is only a logical functional division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0149] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, and of course, it can also be implemented using hardware. Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. It should be understood that the storage medium can be flash memory, hard disk, optical disk, register, magnetic surface memory, removable disk, CD-ROM, random access memory (RAM), read-only memory (ROM), electrically programmable ROM, and electrically erasable programmable ROM, etc.

[0150] It should be noted that the above embodiments are for illustrating the technical concept and features of this application, and are intended to enable those skilled in the art to understand the content of this application and implement it accordingly. They should not be construed as limiting the scope of protection of this application. Those skilled in the art can understand that all or part of the processes of the above embodiments can be implemented, modified according to the technical solutions described in the embodiments of this application, or equivalent substitutions can be made to some of the technical features. It is understood that these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and should be considered as equivalent changes and modifications made based on the embodiments of this application, all of which should fall within the scope of the claims of this application.

Claims

1. A method for processing equipment usage time, characterized in that, Applied to an energy storage power supply, the energy storage power supply including an RTC clock, the method includes: Obtain the current timestamp and the power-off timestamp, wherein the current timestamp is the current time of the RTC clock of the energy storage power supply, and the power-off timestamp is the time of the RTC clock when the energy storage power supply was last powered off; Based on the current timestamp and the power-off timestamp, a timing identifier is generated, wherein the timing identifier includes a failure identifier for indicating that the RTC clock has failed or a valid identifier for indicating that the RTC clock is normal; In response to the timing flag being a failure flag and the energy storage power supply's discharge port being in normal billing status, a target cutoff time stamp is calibrated to obtain either a first-type fault or a second-type fault based on the original cutoff timestamp, the last valid timestamp, and the current time zone carried by the clock calibration command. The normal billing status indicates that the discharge port is enabled and used for a limited, specified duration. The original cutoff timestamp indicates the cutoff time before the RTC clock fails, and the last valid timestamp is the timestamp at the moment before the RTC clock fails. The first-type fault is the RTC clock failure caused by the user forcibly suspending the use of the energy storage power supply, and the second-type fault is the RTC clock failure caused by a fault in the energy storage power supply itself. The target cutoff timestamp indicates the cutoff time after the RTC clock is calibrated to allow the user to use the energy storage power supply.

2. The equipment usage time processing method according to claim 1, characterized in that, Based on the original cutoff timestamp, the last valid timestamp, and the current time zone carried by the clock calibration command, the target cutoff timestamp under the first type of fault is calibrated to obtain the following: In response to the failure type of the RTC clock being a first type of failure, the original remaining time is determined based on the original cutoff timestamp and the last valid timestamp, wherein the original remaining time represents the remaining time that the user can use the energy storage power source before the RTC clock failure. Based on the last valid timestamp and the current time zone, determine the total duration of the RTC clock failure. Based on the original remaining time and the total failure time, determine the usage deduction time that causes RTC clock failure under the first type of fault; The target remaining time is determined based on the usage deduction time and the original remaining time; The target deadline timestamp is determined based on the remaining time of the target and the current time zone.

3. The equipment usage time processing method according to claim 2, characterized in that, The determination of the usage deduction time caused by the RTC clock failure under the first type of fault, based on the original remaining time and the total failure time, includes: The allowed deduction time is determined based on the sum of the proportional deduction time and the preset baseline deduction time. The proportional deduction time is the product of the original remaining time and the penalty ratio, and the penalty ratio is the ratio of the preset penalty deduction time to the preset baseline time. The fault penalty duration is determined based on the minimum of the allowed deduction duration and the baseline duration; The usage deduction time is determined based on the minimum value between the fault penalty duration and the total failure duration.

4. The equipment usage time processing method according to claim 2, characterized in that, The determination of the target remaining time based on the deducted usage time and the original remaining time includes: The difference between the original remaining time and the used deducted time is determined as the first interval duration; The maximum value between the first interval duration and zero is determined as the target remaining duration.

5. The equipment usage time processing method according to claim 1, characterized in that, Based on the original cutoff timestamp, the last valid timestamp, and the current time zone carried by the clock calibration command, the target cutoff timestamp under the second type of fault is calibrated to obtain the following: In response to the failure type of the RTC clock being a second type of failure, the original remaining time is determined based on the original cutoff timestamp and the last valid timestamp, wherein the original remaining time represents the remaining time that the user can use the energy storage power source before the RTC clock fails. Based on the last valid timestamp and the current time zone, determine the total duration of the RTC clock failure. The target remaining time is determined based on the original remaining time and the total failure time; The target deadline timestamp is determined based on the remaining time of the target and the current time zone.

6. The equipment usage time processing method according to claim 2 or 5, characterized in that, The determination of the original remaining duration based on the original cutoff timestamp and the last valid timestamp includes: The difference between the original cutoff timestamp and the last valid timestamp is determined as the second interval duration; The maximum value between the second interval duration and zero is determined as the original remaining duration.

7. The equipment usage time processing method according to claim 2 or 5, characterized in that, The determination of the total duration of the RTC clock failure based on the last valid timestamp and the current time zone includes: The difference between the current time zone time and the last valid timestamp is determined as the third interval duration; The maximum value between the third interval duration and zero is determined as the total failure duration.

8. The equipment usage time processing method according to claim 5, characterized in that, The determination of the target remaining time based on the original remaining time and the total failure time includes: The difference between the original remaining time and the total failure time is determined as the fourth interval duration; The maximum value between the fourth interval duration and zero is determined as the target remaining duration.

9. The equipment usage time processing method according to claim 1, characterized in that, The device usage time processing method further includes: In response to the timing flag being a failure flag and the usage state being locked, the current time zone time is determined as the target cutoff timestamp, wherein the locked state indicates that the discharge port is in a disabled state; In response to the timing flag being a failure flag and the usage status being a permanently unlocked status, a preset permanent timestamp is determined as the target expiration timestamp, wherein the permanently unlocked status is used to indicate that the discharge port is in an enabled state and the usage time is unlimited.

10. The device usage time processing method according to claim 1, characterized in that, The step of generating a timing identifier based on the current timestamp and the power-off timestamp includes: In response to the current timestamp being less than the power-off timestamp, and / or the current timestamp being a preset factory default time, the failure identifier is generated; The valid identifier is generated in response to the current timestamp being greater than or equal to the power-off timestamp and the current timestamp not being the factory default time.

11. An energy storage power source, characterized in that, The device includes a controller and an RTC clock and a discharge port connected to the controller. The controller includes a processor and a memory. The processor is communicatively connected to the memory. The memory stores program instructions executable by the processor. When executed by the processor, the program instructions cause the controller to perform the device usage time processing method as described in any one of claims 1-10.

12. An energy storage system, characterized in that, include: The energy storage power supply as described in claim 11; as well as An external communication system is connected to the energy storage power source and is used to send a clock calibration command carrying the current time zone to the energy storage power source.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores processor-executable program instructions, which, when executed by the processor, cause the processor to perform the device usage time processing method as described in any one of claims 1-10.