Component usage period determination method, apparatus, and medium
By storing component usage cycle lists on control and storage components and using identification codes to identify replacements, and combining the two component usage cycle lists to determine the target usage cycle, the problem of component cycle reset or discard caused by main control board failure is solved, ensuring the safety and reliability of equipment component usage.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- QINGDAO HAIER WASHING MASCH CO LTD
- Filing Date
- 2025-01-14
- Publication Date
- 2026-07-21
AI Technical Summary
In the prior art, a failure of the main control board of the equipment can cause the service life of components to be reset or discarded, which may result in the components being used beyond their lifespan, posing a safety risk.
By storing component usage cycle lists on control and storage components, identifying component replacements using identification codes, and combining the two component usage cycle lists to determine the target usage cycle, the accuracy and completeness of component usage cycle is ensured.
In the event of a control component failure, the component's lifespan is not reset or discarded, thus avoiding safety risks associated with using components beyond their lifespan and improving the reliability and safety of the equipment.
Smart Images

Figure CN122433769A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of intelligent electrical appliance technology, specifically relating to a method, device and medium for determining the service life of a component. Background Technology
[0002] With the development of technology and the improvement of people's quality of life, more and more smart devices are appearing in people's daily lives, such as washing machines, dryers and dishwashers. These smart devices are usually composed of a variety of components, and the lifespan of each component may vary.
[0003] In existing technologies, the usage cycle of equipment and its components is typically stored in the main control board of the equipment. When the usage cycle of a certain component reaches its corresponding service life, the main control board will issue a prompt.
[0004] However, when the main control board of the equipment fails and needs to be replaced, the cycle count of the equipment components may be reset or they may be discarded, which may result in the equipment components still being used even after they have exceeded their lifespan. Summary of the Invention
[0005] This application provides a method, device, and medium for determining the lifespan of components, in order to solve the problem in the prior art where a main control board failure causes the lifespan of device components to be reset or discarded.
[0006] In a first aspect, this application provides a method for determining the lifespan of a component, applied to a first electronic device, the first electronic device being provided with a control element and a storage element, the method comprising:
[0007] Obtain the first identification code of the control element and the second identification code stored on the storage element, wherein the identification code is used to identify the unique serial number of the control element;
[0008] If the first identifier and the second identifier are not equal, obtain the first component usage cycle list stored on the control element and the second component usage cycle list stored on the storage element, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device;
[0009] Based on the first component usage cycle list and the second component usage cycle list, a target component usage cycle list for the first electronic device is determined.
[0010] In one possible design, determining the target component usage cycle list of the first electronic device based on the first component usage cycle list and the second component usage cycle list includes:
[0011] Obtain the first usage cycle of each component from the first component usage cycle list;
[0012] Obtain the second usage cycle for each component from the second component usage cycle list;
[0013] For each element in the second element usage cycle list, if the first usage cycle of the element is obtained, the target usage cycle of the element is determined, and the target usage cycle is the larger of the first usage cycle and the second usage cycle;
[0014] Based on the target usage period of each component, a list of target component usage periods is obtained.
[0015] In one possible design, the method further includes:
[0016] If the first usage period of the component is not obtained, the second usage period of the component in the second component usage period list shall be used as the target usage period.
[0017] In one possible design, the method further includes:
[0018] If the first identifier and the second identifier are equal, obtain the first component usage cycle list stored on the control element and the second component usage cycle list stored on the storage element;
[0019] For each component, if the first usage cycle in the first component usage cycle list is not equal to the second usage cycle in the second component usage cycle list, the second usage cycle is deleted, and the first usage cycle is written into the second usage cycle list.
[0020] Secondly, this application provides a method for determining the lifespan of a component, applied to a first electronic device, the method comprising:
[0021] Obtain the third identification code of the first electronic device and the fourth identification code stored in the second electronic device, wherein the second electronic device is associated with the first electronic device, and the identification code is used to identify the unique serial number of the first electronic device;
[0022] If the third identifier and the fourth identifier are not equal, obtain the third component usage cycle list stored on the first electronic device and the fourth component usage cycle list stored on the second electronic device, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device.
[0023] Based on the third component usage cycle list and the fourth component usage cycle list, the target component usage cycle list of the first electronic device is determined.
[0024] In one possible design, determining the target component usage cycle list of the first electronic device based on the third component usage cycle list and the fourth component usage cycle list includes:
[0025] Obtain the third usage cycle for each component from the third component usage cycle list;
[0026] Obtain the fourth usage cycle for each component from the fourth component usage cycle list;
[0027] For each element in the fourth element usage cycle list, if the third usage cycle of the element is obtained, the target usage cycle of the element is determined, and the target usage cycle is the larger of the third usage cycle and the fourth usage cycle.
[0028] Based on the target usage period of each component, a list of target component usage periods is obtained.
[0029] In one possible design, the method further includes:
[0030] If the third usage cycle of the component is not obtained, the fourth usage cycle of the target component in the fourth component usage cycle list shall be taken as the target usage cycle.
[0031] In one possible design, the method further includes:
[0032] When the third identifier and the fourth identifier are equal, the third component usage cycle list stored on the first electronic device and the fourth component usage cycle list stored on the second electronic device;
[0033] For each component, if the third usage cycle in the third component usage cycle list is not equal to the fourth usage cycle in the fourth component usage cycle list, the fourth usage cycle is deleted, and the third usage cycle is written into the fourth usage cycle list.
[0034] Thirdly, this application provides a device for determining the lifespan of a component, comprising: a processor, and a memory communicatively connected to the processor;
[0035] The memory stores computer-executed instructions;
[0036] The processor executes computer execution instructions stored in the memory to implement the component usage cycle determination method as described above.
[0037] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a computer, are used to implement the component usage period determination method described above.
[0038] The component usage cycle determination method, device, and medium provided in this application, when the first electronic device is not an IoT device, acquires a first identification code of the control element and a second identification code stored on the storage element, the identification code being used to identify the unique serial number of the control element; when the first identification code and the second identification code are not equal, acquires a first component usage cycle list stored on the control element and a second component usage cycle list stored on the storage element, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device; based on the first component usage cycle list and the second component usage cycle list, determines a target component usage cycle list for the first electronic device.
[0039] When the first electronic device is an IoT device, a third identification code of the first electronic device and a fourth identification code stored in the second electronic device are obtained, wherein the second electronic device is associated with the first electronic device, and the identification code is used to identify the unique serial number of the first electronic device; if the third identification code and the fourth identification code are not equal, a third component usage cycle list stored on the first electronic device and a fourth component usage cycle list stored on the second electronic device are obtained, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device; based on the third component usage cycle list and the fourth component usage cycle list, a target component usage cycle list of the first electronic device is determined.
[0040] In the above method, the control element of the first electronic device can store the usage cycle of at least one element on the first electronic device. Regardless of whether the first electronic device is a non-IoT device or an IoT device, by adding a storage location for the usage cycle of another element on the first electronic device, or by storing the usage cycle of the first electronic device on the second electronic device, the usage cycle of the element on the first electronic device will not be reset or discarded due to a failure of the control element of the first electronic device. Attached Figure Description
[0041] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0042] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;
[0043] Figure 2 This is a schematic diagram illustrating another application scenario provided by an embodiment of this application;
[0044] Figure 3 A flowchart of a method for determining the lifespan of a component provided in this application embodiment. Figure 1 ;
[0045] Figure 4 A flowchart of a method for determining the lifespan of a component provided in this application embodiment. Figure 2 ;
[0046] Figure 5 Flowchart of another component usage period determination method provided in the embodiments of this application Figure 1 ;
[0047] Figure 6 Flowchart of another component usage period determination method provided in the embodiments of this application Figure 2 ;
[0048] Figure 7 This is a hardware schematic diagram of a component usage cycle determination device provided in an embodiment of the present invention.
[0049] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. 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.
[0051] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.
[0052] In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0053] With the advent of the smart era, more and more smart devices are playing a vital role in people's daily lives. Smart devices generally have a defined design lifespan. When the device and its components exceed this lifespan, problems inevitably arise due to component aging, such as increased noise, reduced functionality, and in severe cases, safety risks. Therefore, current technology typically stores the lifespan of the device and its components in the device's main control board. The main control board monitors the usage of each component and promptly alerts the user when the lifespan is reached.
[0054] However, when the main control board of the equipment fails and needs to be replaced, the new main control board does not store the usage cycles of all the equipment's components, which may result in the usage cycles of the equipment components being reset or discarded.
[0055] Therefore, this application proposes a method for determining the component usage period of a first electronic device. When the first electronic device is a non-IoT device, the component usage period of the first electronic device is stored on both the control element and the storage element. When the control element fails, the final usage period of the component can be determined based on the two component usage periods on the new control element and the storage element.
[0056] When the first electronic device is an IoT device, both the first electronic device and its associated second electronic device store the component lifecycle of the first electronic device. When the control element of the first electronic device fails, the final lifecycle of the component can be determined based on the two component lifecycles stored in the first and second electronic devices. In this way, even if the control element of the first electronic device fails, it ensures that the component lifecycle of the first electronic device is stored in another storage location, and the final lifecycle of the component can be obtained by combining the component usage information in the two storage locations.
[0057] The following is combined with Figure 1 and Figure 2 The application scenarios of this application will be explained.
[0058] Figure 1 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. For example... Figure 1As shown, the scenario includes a first electronic device, which is equipped with a control element 101 and a storage element 102, as well as multiple other elements, such as other element 1, other element 2, ... other element N.
[0059] The first electronic device acquires the first identification code of the control element 101 and the second identification code stored on the storage element 102. The identification code is used to identify the unique serial number of the control element 101. The first electronic device can acquire the identification codes stored on the two elements at certain time intervals; it can also acquire the identification codes stored on the two elements when a component is replaced. The component replacement mentioned above can be the replacement of the control element 101 or the replacement of non-control elements (storage element 102 and / or other elements).
[0060] If the first identification code and the second identification code are not equal, the first component usage cycle list stored on the control element 101 and the second component usage cycle list stored on the storage element 102 are obtained, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device; based on the first component usage cycle list and the second component usage cycle list, the target component usage cycle list of the first electronic device is determined.
[0061] If the first identification code is not equal to the second identification code, it means that the control element 101 on the first electronic device has been replaced. The replaced control element 101 may carry the usage cycle of some components or it may not carry the usage cycle of any components. In this case, the usage cycle of the components on the control element 101 cannot be used as the sole criterion. It is necessary to combine the usage cycle of the components on the storage element 102 to determine the final usage cycle of the device components.
[0062] If the first identification code and the second identification code are equal, obtain the first component usage cycle list stored on the control element 101 and the second component usage cycle list stored on the storage element 102; for each component, if the first usage cycle in the first component usage cycle list is not equal to the second usage cycle in the second component usage cycle list, delete the second usage cycle and write the first usage cycle into the second usage cycle list.
[0063] If the first identifier code equals the second identifier code, it indicates that the control element 101 on the first electronic device has not been replaced. Based on this, if the first usage period in the first element usage period list stored on the control element 101 is not equal to the second usage period in the second element usage period list stored on the storage element 102, it may be that a non-control element on the first electronic device has been replaced, or that the control element 101 has failed to synchronize the element usage status with the storage element 102 in a timely manner, or that the storage element 102 has failed to update in a timely manner. In this case, the element usage period on the control element 101 shall prevail.
[0064] Based on the cooperation between the above components, it is possible not only to accurately identify whether the control element 101 has been replaced on the first electronic device, but also to ensure the effective storage and updating of component usage cycle data when the control element 101 or non-control element is replaced.
[0065] Figure 2 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. For example... Figure 2 As shown, the scenario includes a first electronic device 201 and a second electronic device 202. For example, the first electronic device 201 can be a clothing processing device, a robot vacuum cleaner, a dishwasher, etc.; the second electronic device 202 can be a repair device, a server, etc.
[0066] The first electronic device 201 acquires its own third identification code and the fourth identification code stored in the second electronic device 202. The second electronic device 202 is associated with the first electronic device 201, and the identification code is used to identify the unique serial number of the first electronic device 201. Similarly, the first electronic device 201 can acquire the above two identification codes at certain time intervals; it can also acquire the above two identification codes when a component is replaced on the first electronic device 201. The component replacement mentioned above can be a replacement of a control component or a replacement of a non-control component.
[0067] If the third and fourth identifiers are not equal, the third component usage cycle list stored on the first electronic device 201 and the fourth component usage cycle list stored on the second electronic device 202 are obtained, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device 201; based on the third component usage cycle list and the fourth component usage cycle list, the target component usage cycle list of the first electronic device 201 is determined.
[0068] If the third identification code of the first electronic device 201 is not equal to the fourth identification code stored on the second electronic device 202, it means that the control element on the first electronic device 101 has been replaced. The replaced control element may carry the usage cycle of some elements or may not carry the usage cycle of any elements. In this case, the usage cycle of the elements on the first electronic device 201 cannot be used as the sole criterion. It is necessary to combine the usage cycle of the elements on the second electronic device 202 to determine the final usage cycle of the elements on the first electronic device 201.
[0069] If the third identifier and the fourth identifier are equal, the third component usage cycle list stored on the first electronic device 201 and the fourth component usage cycle list stored on the second electronic device 202 are used. For each component, if the third usage cycle in the third component usage cycle list is not equal to the fourth usage cycle in the fourth component usage cycle list, the fourth usage cycle is deleted and the third usage cycle is written into the fourth usage cycle list.
[0070] If the third identifier code equals the fourth identifier code, it indicates that the control element on the first electronic device 201 has not been replaced. Based on this, if the third usage period in the third element usage period list stored on the first electronic device 201 is not equal to the fourth usage period in the fourth element usage period list stored on the second electronic device 202, it may be that a non-control element on the first electronic device 201 has been replaced, or that the first electronic device 201 has failed to synchronize element usage with the second electronic device 202 in a timely manner, or that the second electronic device 202 has failed to update in a timely manner. In this case, the element usage period on the first electronic device 201 shall prevail.
[0071] Based on the cooperation between the above-mentioned electronic devices, it is possible not only to accurately identify whether a control element has been replaced on the first electronic device 201, but also to ensure the effective storage and updating of the usage cycle data corresponding to the components on the first electronic device 201 when a control element or non-control element is replaced.
[0072] The technical solutions of this application and how they solve the aforementioned technical problems are described in detail below with specific embodiments. These specific embodiments may exist independently or in combination with each other. Identical or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0073] Figure 3 A flowchart of a method for determining the lifespan of a component provided in this application embodiment. Figure 1 .like Figure 3 As shown, the method is applied to a first electronic device, which is provided with a control element and a storage element. The method includes:
[0074] S301. Obtain the first identification code of the control element and the second identification code stored on the storage element. The identification code is used to identify the unique serial number of the control element.
[0075] In the above scheme, each control element has its own unique serial number, and the identification code can be used to identify the control element corresponding to the serial number. In this way, it can be determined whether the identification code of the control element itself is consistent with the identification code stored in the storage element.
[0076] S302, if the first identification code and the second identification code are not equal, obtain the first component usage cycle list stored on the control element and the second component usage cycle list stored on the storage element, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device.
[0077] In this step, if the first identification code and the second identification code are inconsistent, it means that the serial number of the control element has changed, and it is very likely that the control element has been replaced. At this time, the element cycle data of the first electronic device needs to be determined by combining the data stored on the control element and the storage element respectively.
[0078] In the specific implementation process, if the first identifier code of the control element and the second identifier code stored on the storage element are equal, it means that the control element of the first electronic device has not changed. At this time, the component usage cycle of the first electronic device can be based on the content stored in the control element. For example, when the first identifier code and the second identifier code are equal, the first component usage cycle list stored on the control element and the second component usage cycle list stored on the storage element are obtained. For each component, when the first usage cycle in the first component usage cycle list is not equal to the second usage cycle in the second component usage cycle list, the second usage cycle is deleted and the first usage cycle is written into the second usage cycle list.
[0079] S303. Based on the first component usage cycle list and the second component usage cycle list, determine the target component usage cycle list for the first electronic device.
[0080] In the above scheme, since the control element has changed, the first element usage cycle list may contain cycle usage data stored on other electronic devices, or it may not store any data, or it may be the latest cycle usage data synchronized from all the elements of the first electronic device. In this case, it is necessary to combine the second element usage cycle list to determine the cycle of the first electronic device element.
[0081] In this embodiment of the application, the control element of the first electronic device can store the usage cycle of at least one element on the first electronic device. By adding a storage location for the usage cycle of another element on the first electronic device, it can be ensured that the usage cycle of the element on the first electronic device will not be reset or discarded when the control element of the first electronic device is replaced.
[0082] The following is combined with Figure 3 The following specific embodiments illustrate the implementation process of determining the target component usage cycle list of the first electronic device based on the first component usage cycle list and the second component usage cycle list in the component usage cycle determination method of this application.
[0083] Figure 4 A flowchart of a method for determining the lifespan of a component provided in this application embodiment. Figure 2 .like Figure 4 As shown, the method includes:
[0084] S401. Obtain the first usage cycle of each component from the first component usage cycle list.
[0085] In the above scheme, since the first component usage cycle list stores the usage cycle of at least one component of the first electronic device, the first usage cycle corresponding to each component can be obtained from it.
[0086] S402. Obtain the second usage cycle for each component from the second component usage cycle list.
[0087] In this step, similarly, the second element usage cycle list stored on the storage element stores the usage cycle of at least one element of the first electronic device. Therefore, the second usage cycle corresponding to each element can be obtained from it. By comparing the first usage cycle and the second usage cycle of each element, the final usage cycle of each element can be determined.
[0088] S403. For each element in the second element usage cycle list, if the first usage cycle of the element is obtained, the target usage cycle of the element is determined. The target usage cycle is the larger of the first usage cycle and the second usage cycle.
[0089] In the above scheme, since the first component usage cycle list is component cycle data stored in the control element, it may be stored on other electronic devices by the control element before, or it may be recently synchronized from all components of the first electronic device. Therefore, in this embodiment, the second component usage cycle list is used as a reference, and the first usage cycle corresponding to the first component usage cycle list is obtained for each component in the second component usage cycle list.
[0090] If a corresponding first usage period is obtained from the first component usage period list, the larger of the first usage period and the second usage period is taken as the target usage period. In this way, it can be ensured that the component usage period of the first electronic device is not underestimated, and the safety risks that may be caused by using components beyond their lifespan can be avoided.
[0091] Of course, in other embodiments, a threshold value can also be set to determine the target usage period of each component. For example, when the difference between the first usage period and the second usage period is less than or equal to the threshold value, the first usage period, the second usage period, or the average of the first usage period and the second usage period is used as the target usage period; when the difference between the first usage period and the second usage period is greater than the threshold value, the larger of the first usage period and the second usage period is used as the target usage period.
[0092] S404. Based on the target usage period of each component, obtain a list of target component usage periods.
[0093] In this step, after determining the target usage period of each component in the second component usage period list as a reference, a usage period list containing the usage status of all components on the first electronic device can be obtained.
[0094] S405. If the first usage cycle of a component is not obtained, the second usage cycle of the component in the second component usage cycle list shall be used as the target usage cycle.
[0095] In the above scheme, if the corresponding first usage cycle is not obtained from the first component usage cycle list, it means that the first component usage cycle list does not store the usage status of the corresponding component. The first component usage cycle list may be data previously stored on other electronic devices. In this case, the cycle data in the second component usage cycle list is directly used as the target cycle data.
[0096] S406. Based on the target usage period of each component, obtain a list of target component usage periods.
[0097] In this step, the first component usage cycle list may contain cycle usage data corresponding to components that do not exist in the second component usage cycle list. In this case, the second component usage cycle list shall still be used as the standard, and the cycle usage data corresponding to these components shall be directly discarded or deleted. This is because these components do not exist in the second component usage cycle list, that is, they do not exist on the first electronic device.
[0098] In this embodiment of the application, each element in the second element usage cycle list is used as a benchmark. By comparing the usage cycle data stored in the first element usage cycle list and the second element usage cycle list respectively, the usage cycle of each element is determined, thereby obtaining the element usage cycle of the first electronic device.
[0099] Figure 5 Flowchart of another component usage period determination method provided in the embodiments of this application Figure 1 .like Figure 5 As shown, the method is applied to a first electronic device, and the method includes:
[0100] S501. Obtain the third identification code of the first electronic device and the fourth identification code stored in the second electronic device, wherein the second electronic device is associated with the first electronic device, and the identification code is used to identify the unique serial number of the first electronic device.
[0101] In the above scheme, each first electronic device has its own unique serial number, and the identification code can be used to identify the first electronic device corresponding to the serial number. In this way, it can be determined whether the identification code of the first electronic device itself is consistent with the identification code stored in the second electronic device.
[0102] S502. If the third identifier and the fourth identifier are not equal, obtain the third component usage cycle list stored on the first electronic device and the fourth component usage cycle list stored on the second electronic device, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device.
[0103] In this step, if the third and fourth identification codes are inconsistent, it means that the serial number of the first electronic device has changed, and it is very likely that the main control board of the first electronic device has been replaced. At this time, the component cycle data of the first electronic device needs to be determined by combining the data stored on the first and second electronic devices respectively.
[0104] In the specific implementation process, if the third identification code of the first electronic device is equal to the fourth identification code stored on the second electronic device, it means that the control element of the first electronic device has not changed. In this case, the component usage cycle of the first electronic device can be based on the content stored on the first electronic device. For example, when the third identification code and the fourth identification code are equal, the third component usage cycle list stored on the first electronic device and the fourth component usage cycle list stored on the second electronic device are used. For each component, when the third usage cycle in the third component usage cycle list is not equal to the fourth usage cycle in the fourth component usage cycle list, the fourth usage cycle is deleted and the third usage cycle is written into the fourth usage cycle list.
[0105] S503. Based on the third component usage cycle list and the fourth component usage cycle list, determine the target component usage cycle list of the first electronic device.
[0106] In the above scheme, since the control element of the first electronic device has changed, the third element usage cycle list may contain cycle usage data stored on other electronic devices, or it may not store any data, or it may be the latest cycle usage data synchronized from all the elements of the first electronic device. In this case, it is necessary to combine the fourth element usage cycle list to determine the cycle of the first electronic device element.
[0107] In this embodiment of the application, the main control board of the first electronic device can store the usage cycle of at least one component on the first electronic device. By storing the usage cycle of another component of the first electronic device on the second electronic device associated with the first electronic device, it can be ensured that the usage cycle of the component on the first electronic device will not be reset or discarded when the main control board of the first electronic device is replaced.
[0108] The following is combined with Figure 6 The following specific embodiments illustrate the implementation process of determining the target component usage cycle list of the first electronic device based on the third component usage cycle list and the fourth component usage cycle list in the component usage cycle determination method of this application.
[0109] Figure 6 A flowchart of a method for determining the lifespan of a component provided in this application embodiment. Figure 2 .like Figure 6 As shown, the method includes:
[0110] S601. Obtain the third usage cycle for each component from the third component usage cycle list.
[0111] In the above scheme, since the third component usage cycle list stores the usage cycle of at least one component of the first electronic device, the third usage cycle corresponding to each component can be obtained from it.
[0112] S602. Obtain the fourth usage cycle for each component from the fourth component usage cycle list.
[0113] In this step, similarly, the fourth component usage cycle list stored on the second electronic device stores the usage cycle of at least one component of the first electronic device. Therefore, the fourth usage cycle corresponding to each component can be obtained from it. By comparing the third usage cycle and the fourth usage cycle of each component, the final usage cycle of each component can be determined.
[0114] S603. For each element in the fourth element usage cycle list, if the third usage cycle of the element is obtained, the target usage cycle of the element is determined. The target usage cycle is the larger of the third usage cycle and the fourth usage cycle.
[0115] In the above scheme, since the third component usage cycle list is component cycle data stored in the first electronic device, it may be stored on other electronic devices by the main control board of the first electronic device, or it may be recently synchronized from all components of the first electronic device. Therefore, in this embodiment, the third usage cycle corresponding to the third component usage cycle list is obtained for each component in the fourth component usage cycle list based on the fourth component usage cycle list.
[0116] If the corresponding third usage cycle is obtained from the third component usage cycle list, the larger of the third and fourth usage cycles is taken as the target usage cycle. In this way, it can be ensured that the component usage cycle of the first electronic device is not underestimated, and the safety risks that may be caused by using components beyond their lifespan can be avoided.
[0117] Of course, in other embodiments, a threshold value can also be set to determine the target usage period of each component. For example, when the difference between the third usage period and the fourth usage period is less than or equal to the threshold value, the third usage period or the fourth usage period or the average of the third and fourth usage periods is used as the target usage period; when the difference between the third usage period and the fourth usage period is greater than the threshold value, the larger of the third and fourth usage periods is used as the target usage period.
[0118] S604. Based on the target usage period of each component, obtain a list of target component usage periods.
[0119] In this step, after determining the target usage period of each component in the fourth component usage period list based on the fourth component usage period list, a usage period list containing the usage status of all components on the first electronic device can be obtained.
[0120] S605. If the third usage cycle of a component is not obtained, the fourth usage cycle of the target component in the fourth component usage cycle list shall be used as the target usage cycle.
[0121] In the above scheme, if the corresponding third usage cycle is not obtained from the third component usage cycle list, it means that the usage status of the corresponding component is not stored in the third component usage cycle list. The third component usage cycle list may be the data stored on other electronic devices before the new control element on the first electronic device. In this case, the cycle data in the fourth component usage cycle list is directly used as the target cycle data.
[0122] S606. Based on the target usage period of each component, obtain a list of target component usage periods.
[0123] In this step, the third component usage cycle list may contain cycle usage data corresponding to components that do not exist in the fourth component usage cycle list. In this case, the fourth component usage cycle list shall still be used as the standard, and the cycle usage data corresponding to these components shall be directly discarded or deleted. This is because these components do not exist in the fourth component usage cycle list, that is, they do not exist on the first electronic device.
[0124] In this embodiment of the application, each element in the fourth element usage cycle list is used as a benchmark. By comparing the usage cycle data stored in the third element usage cycle list and the fourth element usage cycle list respectively, the usage cycle of each element is determined, thereby obtaining the element usage cycle of the first electronic device.
[0125] In summary, the component lifecycle determination method provided in this application allows for the determination of component lifecycles based on the following: When the first electronic device is a non-IoT device, both the control element and the storage element store the component lifecycle of the first electronic device. When the control element fails, the final lifecycle of the component can be determined based on the two component lifecycles stored on the new control element and the storage element. When the first electronic device is an IoT device, both the first electronic device and the associated second electronic device store the component lifecycle of the first electronic device. When the control element of the first electronic device fails, the final lifecycle of the component can be determined based on the two component lifecycles stored on the first and second electronic devices.
[0126] This application also provides a device for determining the lifespan of components, comprising: at least one processor and a memory;
[0127] The memory stores instructions that the computer executes;
[0128] At least one processor executes computer execution instructions stored in memory, such that at least one processor execution element uses a cycle determination method.
[0129] Figure 7 This is a hardware schematic diagram of a component usage period determination device provided in an embodiment of the present invention. Figure 7 As shown, the component usage cycle determination device 70 provided in this embodiment includes at least one processor 701 and a memory 702. The device 70 also includes a communication component 703. The processor 701, memory 702, and communication component 703 are connected via a bus 704.
[0130] In the specific implementation process, at least one processor 701 executes computer execution instructions stored in memory 702, causing at least one processor 701 to execute the above-mentioned component usage cycle determination method.
[0131] The specific implementation process of processor 701 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0132] In the above Figure 7 In the illustrated embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0133] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0134] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0135] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the component usage cycle determination method described above.
[0136] The aforementioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0137] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0138] The division of units described herein is merely a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0139] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0140] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0141] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0142] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0143] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. 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.
Claims
1. A method for determining the service life of a component, characterized in that, Applied to a first electronic device, the first electronic device having a control element and a storage element, the method includes: Obtain the first identification code of the control element and the second identification code stored on the storage element, wherein the identification code is used to identify the unique serial number of the control element; If the first identifier and the second identifier are not equal, obtain the first component usage cycle list stored on the control element and the second component usage cycle list stored on the storage element, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device; Based on the first component usage cycle list and the second component usage cycle list, a target component usage cycle list for the first electronic device is determined.
2. The method according to claim 1, characterized in that, Determining the target component usage cycle list of the first electronic device based on the first component usage cycle list and the second component usage cycle list includes: Obtain the first usage cycle of each component from the first component usage cycle list; Obtain the second usage cycle for each component from the second component usage cycle list; For each element in the second element usage cycle list, if the first usage cycle of the element is obtained, the target usage cycle of the element is determined, and the target usage cycle is the larger of the first usage cycle and the second usage cycle; Based on the target usage period of each component, a list of target component usage periods is obtained.
3. The method according to claim 2, characterized in that, The method further includes: If the first usage period of the component is not obtained, the second usage period of the component in the second component usage period list shall be used as the target usage period.
4. The method according to claim 3, characterized in that, The method further includes: If the first identifier and the second identifier are equal, obtain the first component usage cycle list stored on the control element and the second component usage cycle list stored on the storage element; For each component, if the first usage cycle in the first component usage cycle list is not equal to the second usage cycle in the second component usage cycle list, the second usage cycle is deleted, and the first usage cycle is written into the second usage cycle list.
5. A method for determining the service life of a component, characterized in that, Applied to a first electronic device, the method includes: Obtain the third identification code of the first electronic device and the fourth identification code stored in the second electronic device, wherein the second electronic device is associated with the first electronic device, and the identification code is used to identify the unique serial number of the first electronic device; If the third identifier and the fourth identifier are not equal, obtain the third component usage cycle list stored on the first electronic device and the fourth component usage cycle list stored on the second electronic device, wherein the component usage cycle list stores the usage cycle of at least one component of the first electronic device. Based on the third component usage cycle list and the fourth component usage cycle list, the target component usage cycle list of the first electronic device is determined.
6. The method according to claim 5, characterized in that, The step of determining the target component usage cycle list for the first electronic device based on the third component usage cycle list and the fourth component usage cycle list includes: Obtain the third usage cycle for each component from the third component usage cycle list; Obtain the fourth usage cycle for each component from the fourth component usage cycle list; For each element in the fourth element usage cycle list, if the third usage cycle of the element is obtained, the target usage cycle of the element is determined, and the target usage cycle is the larger of the third usage cycle and the fourth usage cycle. Based on the target usage period of each component, a list of target component usage periods is obtained.
7. The method according to claim 6, characterized in that, The method further includes: If the third usage cycle of the component is not obtained, the fourth usage cycle of the target component in the fourth component usage cycle list shall be taken as the target usage cycle.
8. The method according to claim 7, characterized in that, The method further includes: When the third identifier and the fourth identifier are equal, the third component usage cycle list stored on the first electronic device and the fourth component usage cycle list stored on the second electronic device; For each component, if the third usage cycle in the third component usage cycle list is not equal to the fourth usage cycle in the fourth component usage cycle list, the fourth usage cycle is deleted, and the third usage cycle is written into the fourth usage cycle list.
9. A device for determining the lifespan of a component, characterized in that, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the steps of the component usage cycle determination method as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the component usage period determination method as described in any one of claims 1 to 8.