CN116843348A - UPS warranty period calculation control method, device, equipment and storage medium - Google Patents

UPS warranty period calculation control method, device, equipment and storage medium Download PDF

Info

Publication number
CN116843348A
CN116843348A CN202310792802.XA CN202310792802A CN116843348A CN 116843348 A CN116843348 A CN 116843348A CN 202310792802 A CN202310792802 A CN 202310792802A CN 116843348 A CN116843348 A CN 116843348A
Authority
CN
China
Prior art keywords
time
system time
instruction
warranty
difference value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310792802.XA
Other languages
Chinese (zh)
Inventor
李毅
魏占祥
罗包才
黄新发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shangyu Shenzhen Technology Co ltd
Original Assignee
Shangyu Shenzhen Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shangyu Shenzhen Technology Co ltd filed Critical Shangyu Shenzhen Technology Co ltd
Priority to CN202310792802.XA priority Critical patent/CN116843348A/en
Publication of CN116843348A publication Critical patent/CN116843348A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/01Customer relationship services
    • G06Q30/012Providing warranty services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The application relates to the technical field of UPS equipment, in particular to a UPS warranty period calculation control method, a device, equipment and a storage medium, wherein the method comprises the steps of being applied to electronic equipment, wherein the electronic equipment is arranged on the UPS equipment and comprises the following steps: acquiring system time every first timing time; calculating a first time difference between the second system time and the first system time; judging whether the first time difference value is in a first preset time range or not; if the first time difference value is in the first preset time range, accumulating the first time difference value to the service time; calculating a warranty remaining time based on the warranty period and the usage time; the control display module displays the remaining time of maintenance; the second system time is the system time acquired adjacently to the first system time, the first system time is the system time acquired earlier, and the second system time is the system time acquired later. The application has better effect of controlling the warranty period of the UPS equipment.

Description

UPS warranty period calculation control method, device, equipment and storage medium
Technical Field
The present application relates to the technical field of UPS devices, and in particular, to a method, an apparatus, a device, and a storage medium for controlling UPS warranty calculation.
Background
The warranty period refers to a period of time when a manufacturer promises to offer free repair and maintenance to a user when the manufacturer sells goods and fails due to quality problems, and is a benefit guarantee for the user.
UPS devices are used as an uninterruptible power supply device in various power supply fields, and the UPS devices can prevent a portion to be supplied from being shut down and not operating due to power failure.
In the related art, a warranty card is adopted for warranty of the UPS device, that is, a warranty period is written on a paper warranty card, but the warranty card is adopted, so that manual monitoring time is required, control is difficult, convenience is low, and the UPS device is easy to lose or damage, so that warranty cannot be ensured, or warranty disputes and the like are caused.
Disclosure of Invention
In order to better control the warranty period of the UPS equipment, the application provides a UPS warranty period calculation control method, device, equipment and storage medium.
The application provides a UPS warranty period calculation control method, which adopts the following technical scheme:
a UPS warranty period calculation control method is applied to electronic equipment, the electronic equipment is installed on the UPS equipment, and the method comprises the following steps:
acquiring system time every first timing time;
calculating a first time difference between the second system time and the first system time;
judging whether the first time difference value is in a first preset time range or not;
if the first time difference value is in the first preset time range, accumulating the first time difference value to the service time;
calculating a warranty remaining time based on the warranty period and the usage time;
the display module is controlled to display the remaining time of the warranty;
the second system time is a system time acquired adjacently to the first system time, the first system time is the system time acquired earlier, and the second system time is the system time acquired later.
By adopting the technical scheme, the electronic equipment acquires the system time once every the first timing time, and among the system time acquired by two adjacent times, the system time acquired in advance is the first system time, and the system time acquired in later is the second system time. The electronic device calculates a first time difference value between the second system time and the first system time, then judges whether the first time difference value is in a first preset time range, if the first time difference value is in the first preset time range, the first time difference value is accumulated to the service time, then the electronic device can calculate the warranty remaining time based on the warranty period and the service time, and the electronic device controls the display module to display the warranty remaining time. And the maintenance period set in the electronic equipment and the calculation of the electronic equipment are utilized, so that the calculation of the maintenance period by the UPS equipment is realized. Compared with the mode of adopting a warranty card in the related art, the method is more convenient and rapid, and the convenience is greatly improved.
Optionally, when the first time difference value is not in the first preset time range, the method further includes:
resetting the first system time and the second system time;
acquiring a current system time assignment to a first system time;
and then executing the step of acquiring the system time every other first timing time.
By adopting the technical scheme, the user has the operation of resetting the system, and the system time is changed at the moment, so the electronic equipment reacquires the current system time and assigns the current system time to the first system time, and then the step of acquiring the system time once for each first timing time is executed.
Optionally, judging whether a system shutdown instruction is received;
if a system shutdown instruction is received, recording a third system time in which the system shutdown instruction is received;
acquiring a system startup instruction, and judging whether a time modification instruction is received or not;
if the time modification instruction is received, acquiring modified system time and assigning the modified system time to the second system time, and assigning the third system time to the first system time;
calculating a second time difference between the second system time and the first system time;
acquiring the second time difference value and accumulating the second time difference value to the use time;
the warranty remaining time is calculated based on the warranty period and the usage time.
By adopting the technical scheme, the system time is stagnant after the UPS equipment is shut down, so after the electronic equipment receives a system shutdown instruction, the electronic equipment acquires a third system time for receiving the system shutdown instruction, after the electronic equipment acquires a system startup instruction, the electronic equipment judges whether a time modification instruction is received or not, if the system modification instruction is received, the electronic equipment acquires the modified system time and assigns the modified system time to the second system time, and meanwhile, the third system time amplitude is given to the first system time. A second time difference between the second system time and the first system time is then calculated, and the second time difference is then added to the usage time. The warranty remaining time is then calculated. And calculating by utilizing the system time of shutdown thousand of the UPS equipment and the correct system time modified after startup, so as to obtain the time during shutdown, and further obtain the use time and the remaining warranty time.
Optionally, before said calculating the second time difference between the second system time and the first system time, the method further comprises:
judging whether the second system time is earlier than the first system time;
if the second system time is earlier than the first system time, a locking instruction is sent out so that the UPS equipment cannot be used;
and sending a device locked instruction to a manufacturer, and sending the first system time and the second system time to the manufacturer.
By adopting the technical scheme, before calculating the second time difference value between the second system time and the first system time, judging whether the second system time is earlier than the first system time, and if so, the electronic equipment sends a locking instruction, so that the UPS equipment cannot be used, namely, judging that the user possibly wants to increase the warranty time to a certain extent by modifying the system time, and locking the equipment because the user possibly sets the time before the user modifies the time.
Optionally, before the issuing of the lock instruction to disable the UPS device, the method further includes:
starting timing and obtaining second timing time when the time modification instruction is received;
judging whether the second timing time is smaller than a preset time or not;
if the second timing time is smaller than the preset time, judging whether the time modification instruction is received again or not;
if the time modification instruction is received again, the step of sending a locking instruction is not executed, so that the UPS equipment cannot be used;
and if the second timing time is equal to the preset time and the time modification instruction is not received again, executing the step of sending a locking instruction so as to make the UPS equipment unusable.
By adopting the technical scheme, after the user inputs the time modification instruction, the timing is started, the second timing time is obtained, then the electronic equipment judges whether the second timing time is smaller than the preset time, if the second timing time is smaller than the preset time, the electronic equipment judges whether the time modification instruction is received again, and if the time modification instruction is received again, the electronic equipment does not send out the locking instruction. When the time set by the user is earlier than the third system time, the electronic equipment gives the user preset time as the buffer time, and the user modifies the system time again within the preset time, so that the UPS equipment is not locked.
Optionally, before the issuing of the lock instruction to disable the UPS device, the method further includes:
calculating a third time difference between the first system time and the second system time;
judging whether the third time difference value is larger than a preset value or not;
if the third time difference value is not greater than the preset value, the step of sending out a locking instruction is not executed so that the UPS equipment cannot be used, and the third time difference value is accumulated to the using time;
and if the third time difference value is larger than the preset value, executing the step of sending out a locking instruction so as to make the UPS equipment unusable.
By adopting the technical scheme, the third time difference value between the first system time and the second system time is calculated, then whether the third system time is larger than a preset value is judged, if the third time difference value is not larger than the preset value, the electronic equipment judges that the time difference at the moment is not large, so that the third time difference value between the first system time and the second system time is added into the using time to serve as punishment. If the third time difference value is larger than the preset value, the fact that the time difference is large is judged, and therefore the UPS equipment is locked.
Optionally, judging whether to acquire the permission password;
if the authority password is obtained, comparing the authority password with the stored password;
if the authority password is the same as the stored password, entering a modification mode;
after entering the modification mode, judging whether to acquire a warranty period modification instruction;
and if the warranty period modification instruction is acquired, deleting the original warranty period and storing a new warranty period.
By adopting the technical scheme, the manufacturer can modify the warranty period through the right authority password, so that the manufacturer can correspondingly modify the warranty period when the user performs delay warranty.
In a second aspect, the present application provides a UPS warranty period calculation control apparatus, which adopts the following technical scheme:
the acquisition module is used for acquiring the system time every other first timing time;
the first calculating module is used for calculating a first time difference value between the second system time and the first system time;
the judging module is used for judging whether the first time difference value is in a first preset time range or not; if the first time difference value is in the first preset time range, accumulating the first time difference value to the service time;
a second calculation module for calculating a warranty remaining time based on the warranty period and the usage time;
the control module is used for controlling the display module to display the remaining time of the warranty;
the second system time is a system time acquired adjacently to the first system time, the first system time is the system time acquired earlier, and the second system time is the system time acquired later.
In a third aspect, the present application provides an electronic device, which adopts the following technical scheme:
an electronic device comprising a processor coupled with a memory; the processor is configured to execute a computer program stored in the memory to cause the electronic device to perform the method according to the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium comprising a computer program or instructions which, when run on a computer, cause the computer to perform the method of the first aspect.
Drawings
FIG. 1 is a flow chart showing the overall process according to an embodiment of the present application.
FIG. 2 is a block diagram illustrating a UPS warranty calculation control device according to an embodiment of the present application.
FIG. 3 is a block diagram showing an electronic device according to an embodiment of the application.
Detailed Description
The application is described in further detail below with reference to fig. 1-3.
The present embodiment is merely illustrative of the application and not intended to be limiting, and a person skilled in the art, after having read the present description, may make modifications to the embodiment without creative contribution as required, but is protected by patent laws within the scope of the claims of the present application.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by a user of ordinary skill in the art without inventive effort, are within the scope of the present application based on the embodiments of the present application.
In addition, the term "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In this context, unless otherwise specified, the term "/" generally indicates that the associated object is an "or" relationship.
The embodiment of the application discloses a UPS warranty period calculation control method. The UPS warranty calculation control method can be executed by the electronic equipment.
The embodiment of the application discloses a method for calculating and controlling a warranty period of UPS equipment. Referring to fig. 1, a UPS warranty calculation control method includes the main flow described below (S100 to S600):
step S100, acquiring system time every first timing time;
step S200, calculating a first time difference value between the second system time and the first system time;
step S300, judging whether the first time difference value is in a first preset time range; if the first time difference value is in the first preset time range, the step S400 is shifted to;
step S400, accumulating the first time difference value to the service time;
step S500, calculating the warranty remaining time based on the warranty period and the service time;
step S600, controlling a display module to display the remaining time of the warranty;
the second system time is the system time acquired adjacently to the first system time, the first system time is the system time acquired earlier, and the second system time is the system time acquired later.
The electronic equipment acquires system time once every first timing time, names two times of adjacent acquired time, the acquired system time is first system time, the acquired system time is second system time, a first time difference value between the second system time and the first system time is calculated, then the electronic equipment judges whether the first system time difference value is in a first preset time range, if the first system time difference value is in the first preset time range, the system time is judged to be unmodified at the moment, or the system time is not modified, but the difference between the system time before modification and the system time after modification is small and can be ignored, and the first time difference value is accumulated to be the use time at the moment. And then the electronic equipment calculates the warranty remaining time based on the warranty period and the service time, and the display module displays the warranty remaining time under the control of the electronic equipment, so that the user can know the warranty remaining time conveniently.
Wherein for the first system time and the second system time, there is a relative preceding and a relative following relationship. I.e. the system time of two adjacent acquisitions, the system time of the previous acquisition is the first system time, and the system time of the later acquisition is the second system time.
As an optional implementation manner of the embodiment of the present application, when the first time difference value is not in the first preset time range, the method further includes: resetting the first system time and the second system time; acquiring a current system time assignment to a first system time; and then executing the step of acquiring the system time every first timing time.
However, the first time difference value does not show a range with the first preset time, which indicates that the user resets the system at this time, so that the time difference is large, and therefore, the first system time and the second system time are cleared, then the electronic device obtains the current system time and assigns the current system time to the first system time, and then the step of obtaining the system time once for each first timing time is executed.
As an optional implementation manner of the embodiment of the application, whether a system shutdown instruction is received is judged; if a system shutdown instruction is received, recording a third system time at which the system shutdown instruction is received; acquiring a system startup instruction, and judging whether a time modification instruction is received or not; if a time modification instruction is received, acquiring modified system time, assigning the modified system time to the second system time, and assigning the third system time to the first system time; calculating a second time difference between the second system time and the first system time; acquiring a second time difference value and accumulating the second time difference value to the service time; an intermediate warranty remaining time is calculated based on the current warranty remaining time and the usage time.
The electronic equipment judges whether a system shutdown instruction is received or not, and if the electronic equipment receives the system shutdown instruction, the electronic equipment records the third system time for receiving the system shutdown instruction before the system shutdown. The electronic equipment acquires a system startup instruction and judges whether a time modification instruction is received or not, and after the UPS equipment is started, the electronic equipment judges whether the time modification instruction is received or not, and because the system time is in a stagnation state after the UPS equipment is shut down and the system time is wrong after the UPS equipment is started, the electronic equipment judges whether the time modification instruction is received or not after the UPS equipment is started; if the electronic equipment receives the time modification instruction, the electronic equipment gives the third system time amplitude value to the first system time, and the electronic equipment acquires the system time modified by the user and assigns the system time to the second system time.
Then the electronic device calculates a second time difference between the second system time and the first system time, acquires the second time difference and accumulates the second time difference to the use time, and then the electronic device calculates the warranty remaining time according to the use time and the warranty period.
As an optional implementation manner of the embodiment of the present application, after the electronic device obtains the modified system time and assigns the modified system time to the second system time, and assigns the third system time to the first system time, before calculating the second time difference between the second system time and the first system time, the method further includes: judging whether the second system time is earlier than the first system time; if the second system time is earlier than the first system time, a locking instruction is sent out so that the UPS equipment cannot be used; and sending a device locked instruction to the manufacturer, and sending the first system time and the second system time to the manufacturer.
The electronic equipment judges whether the second system time is earlier than the first system time, if the second system time is earlier than the first system time, the electronic equipment sends a locking instruction, so that the UPS equipment is locked and cannot be used, and meanwhile, the electronic equipment sends an equipment locked instruction to a manufacturer, so that the manufacturer knows that the equipment is locked, and the manufacturer can know the situation as early as possible. And simultaneously, the first system time and the second system time are also sent to the manufacturer, so that the manufacturer can know the condition of the user modification time.
As an alternative implementation manner of the embodiment of the present application, before issuing the lock instruction to disable the UPS device, the method further includes: starting timing and obtaining second timing time when receiving the time modification instruction; judging whether the second timing time is smaller than a preset time or not; if the second timing time is smaller than the preset time, judging whether a time modification instruction is received again or not; if the time modification instruction is received again, the step of sending a locking instruction is not executed, so that the UPS equipment cannot be used; and if the second timing time is equal to the preset time and the time modification instruction is not received again, executing the step of sending a locking instruction so that the UPS equipment cannot be used.
Before the electronic equipment sends out the locking instruction so that the UPS equipment cannot be used, the electronic equipment starts timing when receiving the time modification instruction and obtains second timing time, whether the second timing time is smaller than preset time or not is judged, if the second timing time is smaller than the preset time, the electronic equipment judges that the time modification instruction is received again, and if the electronic equipment receives the time modification instruction again, the electronic equipment does not execute the step of sending out the locking instruction so that the UPS equipment cannot be used. If the second timing time is equal to the preset time and the time modification instruction is not received again, the electronic equipment executes the step of sending a locking instruction so that the UPS equipment cannot be used. The preset time is given, so that the user modifies the system time again to correct the system time modification, and the user does not send a locking instruction at the moment when the user modifies the time again within the preset time. The situation that the user modifies the system time in disorder so as to prolong the warranty time to a certain extent can be avoided.
As an optional implementation manner of the embodiment of the present application, before issuing a lock instruction to disable the UPS device, the method further includes: calculating a third time difference between the first system time and the second system time; judging whether the third time difference value is larger than a preset value or not; if the third time difference value is not greater than the preset value, the step of sending a locking instruction is not executed so that the UPS equipment cannot be used, and the third time difference value is accumulated to the using time; and if the third time difference value is larger than the preset value, executing the step of sending out a locking instruction so as to make the UPS equipment unusable.
The electronic equipment calculates a third time difference value between the first system time and the second system time, then judges whether the third time difference value is larger than a preset value, if the third time difference value is not larger than the preset value, the electronic equipment does not execute the step of sending a locking instruction so that the UPS equipment cannot be used, and the electronic equipment accumulates the third time difference value to the using time. At this time, it is determined that there is an action of increasing the warranty time by modifying the system time, but the increased time is small, so at this time, as a penalty, the time that the user wants to increase is added to the use time, that is, the warranty remaining time is reduced to some extent to realize the penalty. If the third time difference is greater than the preset value, the electronic equipment executes the step of sending a locking instruction to enable the UPS equipment to be unusable, at the moment, the user is judged to want to utilize the system time modification to increase a large amount of warranty time, at the moment, the penalty of shortening the warranty time is not done, and the UPS equipment is locked and waits for the manufacturer to make processing.
As an optional implementation manner of the embodiment of the application, judging whether to acquire the authority password; if the authority password is obtained, comparing the authority password with the stored password; if the authority password is the same as the stored password, entering a modification mode; after entering the modification mode, judging whether to acquire a warranty period modification instruction; if the warranty period modification instruction is acquired, the original warranty period is deleted and a new warranty period is stored.
The electronic equipment judges whether to acquire the permission password, if the permission password is acquired, the electronic equipment compares the permission password with the stored password, if the permission password is the same as the stored password, the electronic equipment enters a modification mode, after the electronic equipment enters the modification mode, the electronic equipment judges whether to acquire a warranty period modification instruction, and if the electronic equipment acquires the warranty period modification instruction, the original warranty period is deleted and a new warranty period is acquired. And after the authentication is successful, the electronic equipment enters a modification mode, and the modification of the warranty period can be performed at the moment. When the electronic device receives the new warranty period, the new warranty period is stored.
Fig. 2 is a block diagram of a UPS warranty calculation control device 700 according to an embodiment of the present application, and as shown in fig. 2, the UPS warranty calculation control device 700 includes:
an acquiring module 701, configured to acquire a system time every a first timing time;
a first calculating module 702, configured to calculate a first time difference between the second system time and the first system time;
a determining module 703, configured to determine whether the first time difference value is in a first preset time range; if the first time difference value is in the first preset time range, accumulating the first time difference value to the service time;
a second calculation module 704 for calculating a warranty remaining time based on the warranty period and the usage time;
the control module 705 is configured to control the display module to display the remaining time of the warranty;
the second system time is the system time acquired adjacently to the first system time, the first system time is the system time acquired earlier, and the second system time is the system time acquired later.
In this alternative embodiment, the UPS warranty calculation control apparatus 700 further includes:
the zero clearing module is used for clearing the first system time and the second system time when the first time difference value is not in a first preset time range;
the first acquisition sub-module is used for acquiring the current system time assignment to the first system time; and then proceeds to the acquisition module 701.
In this alternative embodiment, the UPS warranty calculation control apparatus 700 further includes:
the first judging sub-module is used for judging whether a system shutdown instruction is received or not; if a system shutdown instruction is received, transferring to a recording module;
the recording module is used for recording a third system time when the system shutdown instruction is received;
the acquisition judging module is used for acquiring a system startup instruction and judging whether a time modification instruction is received or not; if a time modification instruction is received, acquiring modified system time, assigning the modified system time to the second system time, and assigning the third system time to the first system time;
the first calculating sub-module is used for calculating a second time difference value between the second system time and the first system time;
the acquisition accumulation module is used for acquiring a second time difference value and accumulating the second time difference value to the service time;
and a second calculation sub-module for calculating a warranty remaining time based on the warranty period and the usage time.
In this alternative embodiment, the UPS warranty calculation control apparatus 700 further includes:
the second judging sub-module is used for judging whether the second system time is earlier than the first system time or not before calculating a second time difference value between the second system time and the first system time; if the second system time is earlier than the first system time, a locking instruction is sent out so that the UPS equipment cannot be used;
and the sending submodule is used for sending the equipment locked instruction to the manufacturer and sending the first system time and the second system time to the manufacturer.
In this alternative embodiment, the UPS warranty calculation control apparatus 700 further includes:
the timing sub-module is used for starting timing and obtaining second timing time when receiving the time modification instruction before sending a locking instruction to enable the UPS equipment to be unavailable;
the third judging submodule is used for judging whether the second timing time is smaller than the preset time or not; if the second timing time is smaller than the preset time, transferring to a fourth judging sub-module; if the second timing time is equal to the preset time and the time modification instruction is not received again, executing the step of sending a locking instruction so that the UPS equipment cannot be used;
a fourth judging sub-module, configured to judge whether a time modification instruction is received again; if the time modification instruction is received again, the step of sending out the locking instruction is not executed, so that the UPS equipment cannot be used.
In this alternative embodiment, the UPS warranty calculation control apparatus 700 further includes:
a third calculation sub-module, configured to calculate a third time difference between the first system time and the second system time before a lock instruction is issued to disable the UPS device;
a fifth judging sub-module, configured to judge whether the third time difference is greater than a preset value; if the third time difference value is not greater than the preset value, the step of sending a locking instruction is not executed so that the UPS equipment cannot be used, and the third time difference value is accumulated to the using time; and if the third time difference value is larger than the preset value, executing the step of sending out a locking instruction so as to make the UPS equipment unusable.
In this alternative embodiment, the UPS warranty calculation control apparatus 700 further includes:
a sixth judging sub-module, configured to judge whether to acquire the permission password; if the authority password is obtained, comparing the authority password with the stored password; if the authority password is the same as the stored password, entering a modification mode;
a seventh judging sub-module, configured to judge whether to obtain a warranty period modification instruction after entering a modification mode; if the warranty period modification instruction is acquired, the original warranty period is deleted and a new warranty period is stored.
Fig. 3 is a block diagram of an electronic device 800 according to an embodiment of the present application. The electronic device 800 may be a mobile phone, tablet computer, PC, server, etc. As shown in fig. 3, the electronic device 800 includes a memory 801, a processor 802, and a communication bus 803; the memory and processor 802 are connected by a communication bus 803. The memory 801 has stored thereon a computer program that can be loaded by the processor 802 and execute the UPS device warranty calculation control method as provided by the above-described embodiment.
The memory 801 may be used to store instructions, programs, code sets, or instruction sets. The memory 801 may include a storage program area and a storage managed data area, wherein the storage program area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the UPS device warranty calculation control method provided by the above embodiment, and the like; the storage managed data area may store managed data and the like involved in the UPS device warranty calculation control method provided in the above embodiment.
The processor 802 may include one or more processing cores. The processor 802 performs various functions of the present application and processes the managed data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 801, invoking the managed data stored in the memory 801. The processor 802 may be at least one of an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronics for implementing the functions of the processor 802 described above may be other for different devices, and embodiments of the present application are not particularly limited.
Communication bus 803 may include a pathway to transfer information between the aforementioned components. The communication bus 803 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus 803 may be divided into an address bus, a managed data bus, a control bus, and the like. For ease of illustration, only one double arrow is shown in FIG. 3, but not only one bus or one type of bus.
An embodiment of the present application provides a computer storage medium storing a computer program capable of being loaded by a processor and executing the UPS device warranty calculation control method provided in the above embodiment.
In this embodiment, the computer storage medium may be a tangible device that holds and stores instructions for use by the instruction execution apparatus. The computer storage medium may be, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination of the preceding. In particular, the computer storage medium may be a portable computer diskette, hard disk, U disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), podium random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital Versatile Disk (DVD), memory stick, floppy disk, optical disk, magnetic disk, mechanical coding device, and any combination of the foregoing.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The foregoing description of the preferred embodiments of the application is not intended to limit the scope of the application in any way, including the abstract and drawings, in which case any feature disclosed in this specification (including abstract and drawings) may be replaced by alternative features serving the same, equivalent purpose, unless expressly stated otherwise. That is, each feature is one example only of a generic series of equivalent or similar features, unless expressly stated otherwise.

Claims (10)

1. A UPS warranty calculation control method, applied to an electronic device, the electronic device being mounted on a UPS device, comprising:
acquiring system time every first timing time;
calculating a first time difference between the second system time and the first system time;
judging whether the first time difference value is in a first preset time range or not;
if the first time difference value is in the first preset time range, accumulating the first time difference value to the service time;
calculating a warranty remaining time based on the warranty period and the usage time;
the display module is controlled to display the remaining time of the warranty;
the second system time is a system time acquired adjacently to the first system time, the first system time is the system time acquired earlier, and the second system time is the system time acquired later.
2. The method of claim 1, wherein when the first time difference value is not within the first preset time range, further comprising:
resetting the first system time and the second system time;
acquiring a current system time assignment to a first system time;
and then executing the step of acquiring the system time every other first timing time.
3. The method according to claim 1, characterized in that it comprises:
judging whether a system shutdown instruction is received or not;
if a system shutdown instruction is received, recording a third system time in which the system shutdown instruction is received;
acquiring a system startup instruction, and judging whether a time modification instruction is received or not;
if the time modification instruction is received, acquiring modified system time and assigning the modified system time to the second system time, and assigning the third system time to the first system time;
calculating a second time difference between the second system time and the first system time;
acquiring the second time difference value and accumulating the second time difference value to the use time;
the warranty remaining time is calculated based on the warranty period and the usage time.
4. A method according to claim 3, further comprising, prior to said calculating a second time difference between said second system time and said first system time:
judging whether the second system time is earlier than the first system time;
if the second system time is earlier than the first system time, a locking instruction is sent out so that the UPS equipment cannot be used;
and sending a device locked instruction to a manufacturer, and sending the first system time and the second system time to the manufacturer.
5. The method of claim 4, further comprising, prior to said issuing a lock instruction to disable the UPS device:
starting timing and obtaining second timing time when the time modification instruction is received;
judging whether the second timing time is smaller than a preset time or not;
if the second timing time is smaller than the preset time, judging whether the time modification instruction is received again or not;
if the time modification instruction is received again, the step of sending a locking instruction is not executed, so that the UPS equipment cannot be used;
and if the second timing time is equal to the preset time and the time modification instruction is not received again, executing the step of sending a locking instruction so as to make the UPS equipment unusable.
6. The method of claim 4, further comprising, prior to said issuing a lock instruction to disable the UPS device:
calculating a third time difference between the first system time and the second system time;
judging whether the third time difference value is larger than a preset value or not;
if the third time difference value is not greater than the preset value, the step of sending out a locking instruction is not executed so that the UPS equipment cannot be used, and the third time difference value is accumulated to the using time;
and if the third time difference value is larger than the preset value, executing the step of sending out a locking instruction so as to make the UPS equipment unusable.
7. The method according to claim 1, characterized in that it comprises:
judging whether to acquire the authority password;
if the authority password is obtained, comparing the authority password with the stored password;
if the authority password is the same as the stored password, entering a modification mode;
after entering the modification mode, judging whether to acquire a warranty period modification instruction;
and if the warranty period modification instruction is acquired, deleting the original warranty period and storing a new warranty period.
8. A UPS warranty calculation control apparatus, comprising:
the acquisition module is used for acquiring the system time every other first timing time;
the first calculating module is used for calculating a first time difference value between the second system time and the first system time;
the judging module is used for judging whether the first time difference value is in a first preset time range or not; if the first time difference value is in the first preset time range, accumulating the first time difference value to the service time;
a second calculation module for calculating a warranty remaining time based on the warranty period and the usage time;
the control module is used for controlling the display module to display the remaining time of the warranty;
the second system time is a system time acquired adjacently to the first system time, the first system time is the system time acquired earlier, and the second system time is the system time acquired later.
9. An electronic device comprising a processor coupled to a memory; the processor is configured to execute a computer program stored in the memory to cause the electronic device to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium comprising a computer program or instructions which, when run on a computer, cause the computer to perform the method of any of claims 1 to 7.
CN202310792802.XA 2023-06-29 2023-06-29 UPS warranty period calculation control method, device, equipment and storage medium Pending CN116843348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310792802.XA CN116843348A (en) 2023-06-29 2023-06-29 UPS warranty period calculation control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310792802.XA CN116843348A (en) 2023-06-29 2023-06-29 UPS warranty period calculation control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116843348A true CN116843348A (en) 2023-10-03

Family

ID=88159358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310792802.XA Pending CN116843348A (en) 2023-06-29 2023-06-29 UPS warranty period calculation control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116843348A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996314A (en) * 2019-12-03 2020-04-10 Oppo(重庆)智能科技有限公司 Information processing method and device, electronic equipment and computer readable medium
CN111164439A (en) * 2017-07-28 2020-05-15 北极星电池有限责任公司 System and method for determining battery start-up health
CN113628392A (en) * 2021-08-19 2021-11-09 上海擎朗智能科技有限公司 Time management method, device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111164439A (en) * 2017-07-28 2020-05-15 北极星电池有限责任公司 System and method for determining battery start-up health
CN110996314A (en) * 2019-12-03 2020-04-10 Oppo(重庆)智能科技有限公司 Information processing method and device, electronic equipment and computer readable medium
CN113628392A (en) * 2021-08-19 2021-11-09 上海擎朗智能科技有限公司 Time management method, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐文静;张春业;曹永绍;: "IEEE802.16系统的QoS分组调度算法", 电气电子教学学报, no. 05, 15 October 2007 (2007-10-15) *

Similar Documents

Publication Publication Date Title
KR100801894B1 (en) Apparatus and method for program execution considering memory size in portable communication system
GB2381901A (en) Install system with re-boot suppression
CN107590016B (en) Power-down restarting identification method and device
TW202030602A (en) The method and system of bios recovery and update
CN111694760A (en) Server system, flash memory module and method for updating firmware mapping file
CN105159727A (en) Firmware upgrade processing method, apparatus and system
CN111475218A (en) Server starting method, server and computer readable storage medium
CN116843348A (en) UPS warranty period calculation control method, device, equipment and storage medium
CN110908943A (en) Board card automatic adapting method, device, network equipment and storage medium
JPH07129407A (en) Version managing method
US10379832B2 (en) Software introduction support device and software introduction support method
CN111131131B (en) Vulnerability scanning method and device, server and readable storage medium
WO2020066552A1 (en) Bmc and method for determining bmc firmware
CN111221553A (en) Firmware upgrading method and device
CN116225832A (en) Automatic detection method, storage medium and equipment for automatic deployment of database cluster
CN114741031A (en) Automatic partitioning method, disk partitioning method, operating system installation method and device
US20080066028A1 (en) Logic circuit verifying apparatus
CN112306527A (en) Server upgrading method and device, computer equipment and storage medium
TWI633454B (en) Verifying method and verifying device
CN114391136A (en) Enhanced virtual machine image management system
CN112083964A (en) Method for deploying operating system
CN110569088A (en) client plug-in management method and device, electronic equipment and storage medium
CN117240645B (en) OTA upgrading method and device of intelligent home system, electronic equipment and medium
CN116546551B (en) Wireless network equipment detection method, device and system
US20240061665A1 (en) Information processing device, information processing method, and non-transitory storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination