Testing method of double electric control boards, computer readable storage medium and program product
By calculating the power life and power attenuation value of the dual-power control board, determining the degree of loss and setting the switching time point, the problem of insufficient timeliness of power switching of the dual-power control board is solved, and accurate switching is achieved before the power is exhausted, ensuring stable power supply to the load.
Patent Information
- Application Number
- CN202511303979.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-11
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2045-09-11
AI Technical Summary
In the existing technology, the timeliness of power switching of the dual-electric control board is difficult to guarantee, which may cause the load to lose power or be damaged during power switching.
By acquiring the lifespan decay value and power decay value of the target power supply, the degree of loss is calculated, and a reference switching time point is determined based on the degree of loss and the preset power supply duration to generate test results, thereby evaluating the accuracy of the switching time point of the dual-power control board.
It improves the timeliness of power switching, ensuring timely switching before the target power supply runs out of power, thus avoiding power outages or damage to the load.
Smart Images

Figure CN121069157A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of device testing, in particular to a test method for a dual-power control board, a computer readable storage medium and a program product. BACKGROUND
[0002] A control board is one of the key devices for controlling the operation of a device, and therefore the performance of the control board is tested before the control board is put into use, to ensure that the control board can stably control the corresponding device in the actual use process. For example, a dual-power control board, which usually has two power supplies connected in parallel, when one power supply cannot normally supply power to the load, the dual-power control board will switch to use the other power supply to supply power, to ensure the stability and durability of the load power supply. The dual-power control board is widely used in the field of automobiles and the like.
[0003] Currently, when testing the dual-power control board, one of the power supplies cannot normally supply power, and the duration of the dual-power control board discovering this phenomenon and the rate of making a corresponding response scheme are monitored, to test the performance of the dual-power control board before the dual-power supply switches.
[0004] However, this test method only tests the basic functions of the dual-power control board, and the timeliness of the dual-power control board switching power supply cannot be guaranteed. SUMMARY
[0005] The embodiments of the present application provide a test method for a dual-power control board, a computer readable storage medium and a program product, to at least solve the technical problem of testing the timeliness of power supply switching.
[0006] According to a first aspect of the embodiments of the present application, a test method for a dual-power control board is provided, the method comprising: obtaining a life attenuation value and an electric quantity attenuation value of a target power supply for supplying power to a load; determining a loss degree of the target power supply according to the life attenuation value and the electric quantity attenuation value, wherein the greater the loss degree, the greater the attenuation amplitude of the power supply duration of the target power supply; determining a reference switching time point according to the loss degree and a preset power supply duration of the target power supply; obtaining a target switching time point output by the dual-power control board; generating a first test result according to the matching of the reference switching time point and the target switching time point.
[0007] According to the embodiment, when the double-electricity control panel is tested, the loss degree of the target power supply can be calculated by obtaining the life attenuation value and the electricity attenuation value of the target power supply. Since different loss degrees can cause different degrees of decline in the durability of the target power supply, the reference switching time point of the target power supply can be determined according to the loss degree and the preset power supply duration, and then matched with the target switching time point output by the double-electricity control panel to generate the first test result of the target power supply. Since the switching time point is calculated, the accuracy of the target switching time point calculated by the double-electricity control panel can be evaluated, so that the double-electricity control panel can calculate a more accurate switching time point in actual use, facilitating switching of the power supply before the target power supply is exhausted, improving the timeliness of power supply switching, and achieving testing of the timeliness of power supply switching.
[0008] In combination with the first aspect, in an optional implementation manner of the embodiment of the present application, the determining the loss degree of the target power supply according to the life attenuation value and the electricity attenuation value comprises: calculating a ratio of the life attenuation value and the electricity attenuation value, wherein the life attenuation value is the numerator and the electricity attenuation value is the denominator; The greater the ratio is, the greater the loss degree is.
[0009] In the implementation manner, the loss degree is determined by comparing the life attenuation value with the electricity attenuation value, so that the loss degree takes into account both the life attenuation and the electricity attenuation, and the greater the ratio is, the greater the loss degree is, so that the determined loss degree is more in line with the actual use of the target power supply, and the accuracy of the loss degree is improved.
[0010] In combination with the first aspect, in an optional implementation manner of the embodiment of the present application, the determining the reference switching time point according to the loss degree and the preset power supply duration of the target power supply comprises: retrieving an attenuation ratio from a preset mapping table according to the loss degree, wherein the mapping table is a relationship table between the loss degree and the attenuation ratio, and the greater the loss degree in the mapping table is, the greater the corresponding attenuation ratio is; multiplying the preset power supply duration by the retrieved attenuation ratio to obtain the reference switching time point, wherein the reference switching time point represents the duration to the power supply switching.
[0011] In the implementation manner, the loss degree is converted into the attenuation ratio for calculation by the preset mapping table, improving the calculation convenience of the reference switching time point.
[0012] In combination with the first aspect, in an optional implementation manner of the embodiment of the present application, before the preset power supply duration is multiplied by the retrieved attenuation ratio, the method further comprises: acquire an actual power consumption of the target power supply in a target time length; calculate a deviation between the actual power consumption and a preset rated power consumption; correct the attenuation ratio according to the deviation.
[0013] With the present implementation, the durability of the target power supply is related to the attenuation of the life and the attenuation of the power, and the attenuation of the durability can also be reflected by the actual power consumption rate. Therefore, the attenuation ratio is corrected based on the deviation between the actual power consumption and the rated power consumption, which can reflect the degree of change of the target power supply power consumption rate, and is beneficial to improve the accuracy of the attenuation ratio.
[0014] In combination with the first aspect, in an optional implementation of the embodiments of the present application, the reference switching time point is determined according to the loss degree and the preset power supply time length of the target power supply, including: dividing the preset power supply time length into multiple time periods; taking the loss degree as an average value and generating a sub-loss degree corresponding to each time period according to the number of time periods; multiplying the time length of each time period by the respective sub-loss degree and summing up to obtain the reference switching time point.
[0015] With the present implementation, when determining the reference switching time point, the preset power supply time length is divided into multiple time periods, and then the attenuation of each time period is calculated, and finally the reference switching time point is obtained by summation, which is beneficial to improve the accuracy of the reference switching time point.
[0016] In combination with the first aspect, in an optional implementation of the embodiments of the present application, the first test result is generated according to the matching of the reference switching time point and the target switching time point, including: if the reference switching time point is later than the target switching time point and the difference between the two is less than a preset difference threshold, a first test result of test pass is generated, otherwise a first test result of test fail is generated.
[0017] With the present implementation, the reference switching time point must be later than the target switching time point to pass the test, which ensures the accuracy of the test result of the dual-power control panel, so that the dual-power control panel can switch the power supply in time in the actual use process.
[0018] In combination with the first aspect, in an optional implementation of the embodiments of the present application, the method further includes: subtracting the used time length from the total life length of the target power supply to obtain the life attenuation value; and / or, subtracting the current maximum power from the initial total power of the target power supply to obtain the power attenuation value.
[0019] With the present implementation, the calculation of the life attenuation value and the power attenuation value is simple and convenient, which is conducive to saving computing resources and improving computing efficiency.
[0020] In combination with the first aspect, in an optional implementation of the embodiments of the present application, the dual-power control panel is connected in parallel with two power supplies, the target power supply is a first power supply, and the other power supply is a second power supply. The method further includes: obtaining a first total use duration of the first power supply and a second total use duration of the second power supply; obtaining a first total use duration of the first power supply and a second total use duration of the second power supply; correcting the degree of loss according to the corrected proportion, and determining a reference available duration of the second power supply according to the corrected degree of loss and a preset power supply duration of the second power supply; obtaining a target available duration of the second power supply output by the dual-power control panel; generating a second test result according to a matching condition of the reference available duration and the target available duration.
[0021] With the present implementation, the test of the second power supply is completed on the basis of the first power supply, which improves the test comprehensiveness and also improves the test efficiency and reduces repeated calculation steps.
[0022] According to a second aspect of the embodiments of the present application, an electronic device is provided, which includes a memory and a processor. The memory is configured to store a computer program. The processor is configured to execute the computer program to implement the steps of the method described above.
[0023] According to a third aspect of the embodiments of the present application, a computer readable storage medium is provided, which stores a computer program. When the computer program runs on a computer or a processor, the computer or the processor executes the steps of the method described above.
[0024] According to a fourth aspect of the embodiments of the present application, a computer program product is provided, which includes computer instructions. When the computer instructions are executed by a computer or a processor, the steps of the method described above are executed.
[0025] The technical effects obtained by the second aspect to the fourth aspect above are similar to the technical effects obtained by the corresponding technical means in the first aspect, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS
[0026] Figure 1is a flowchart of a test method of a dual power control panel provided by an embodiment of the present application. Figure 2 is a structural block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0027] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative work should fall within the scope of protection of the present application.
[0028] It should be understood that the "multiple" mentioned herein refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" herein is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the same items or similar items with basically the same function and role are distinguished by using "first", "second", etc. The person skilled in the art can understand that "first", "second", etc. do not limit the quantity and execution order, and "first", "second", etc. also do not limit the difference.
[0029] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] A control program is preset in the dual power control panel, which includes a program for controlling dual power supply logic, so that the dual power control panel can control power switching or generate corresponding action instructions in time when power switching is needed, so that other mechanical devices perform power switching actions. The target dual power control panel is in the testing process or actual use process, when it is detected that the current power supply cannot continue to supply power (for example, power consumption or failure), power switching is performed through efficient action to ensure the continuity of power supply.
[0031] But in actual use, with the extension of the power supply time, the durability of the power supply will gradually decrease, and even the display power supply remaining 10% of the power, but suddenly power off. In view of the above situation, if the double power control panel cannot find in time, it will cause the load power off, affect the use of the load, and even damage the load. Based on this, the embodiment of the application provides a test method for double power control panel, which can test the accuracy of double power control panel calculating switching power time point.
[0032] Next, the test method for the double power control panel provided by the embodiment is further described, referring to the flowchart of the test method for the double power control panel shown in Figure 1 The method comprises the following processing process.
[0033] S100, obtaining the life attenuation value and the power attenuation value of the target power supply for supplying power to the load.
[0034] In an embodiment, the double power control panel is connected in parallel with two power supplies, and only one power supply as the target power supply supplies power to the load at a time. The load can be any electrical equipment, such as a vehicle-mounted sensor, a vehicle-mounted air conditioner, etc. The target power supply has a total life time length when it is shipped, such as 10 years, 20 years, etc., which can also be converted into days or hours. Similarly, the target power supply also has an initial total power when it is shipped, and the target power supply can be used for how long and the current maximum power can be calculated, and then the life attenuation value and the power attenuation value can be obtained by difference.
[0035] Among them, the life attenuation value refers to the proportion of the life used by the target power supply, and the power attenuation value refers to the maximum power value reduced by the target power supply. For example, the total life time length of the target power supply is 10000 hours, the initial total power is 50000 electric energy, and it has been used for 1000 hours. At present, the power of full charge is 40000 electric energy, and after conversion, the life attenuation value is 0.1, and the power attenuation value is 0.2.
[0036] S102, determining the loss degree of the target power supply according to the life attenuation value and the power attenuation value.
[0037] Among them, the greater the loss degree, the greater the attenuation amplitude of the power supply time of the target power supply. That is, the greater the determined loss degree, the shorter the duration that the target power supply can be used, and the more the durability decreases.
[0038] In an embodiment, the loss degree can be a numerical value or a grade, which is not limited in the embodiment.
[0039] S104, determining the reference switching time point according to the loss degree and the preset power supply time of the target power supply.
[0040] After the degree of loss is known, the preset power supply duration can be attenuated according to the degree of loss, so that it can be known how long the target power supply will be exhausted after use, that is, the reference switching time point is obtained. For example, the reference switching time point is 150 minutes, which means that after using the target power supply for 150 minutes, another power supply needs to be switched for power supply.
[0041] S106, obtaining the target switching time point output by the dual-power control panel.
[0042] In an embodiment, the dual-power control panel can calculate the switching time point in the same way to obtain the target switching time point. Specifically, the same way refers to the way of steps S100-S104 in the embodiment. In another embodiment, the dual-power control panel obtains the electrical parameters of the target power supply, such as current, voltage, harmonic, etc., determines the attenuation amplitude according to the change of the electrical parameters within a certain time, such as the change amplitude or the change rate, and then obtains the target switching time point in the way of step S104. Specifically, for example, the dual-power control panel determines the degree of loss according to the voltage change amplitude, and the greater the voltage change amplitude, the greater the determined degree of loss.
[0043] S108, generating a first test result according to the matching of the reference switching time point and the target switching time point.
[0044] Whether the matching can be realized by judging whether the reference switching time point is the same as the target switching time point or the deviation between the two is small, which is not specifically limited in the embodiment.
[0045] In the embodiment, when the dual-power control panel is tested, the degree of loss of the target power supply can be calculated by obtaining the life attenuation value and the power attenuation value of the target power supply. Since different degrees of loss will cause the durability of the target power supply to decrease to different degrees, the reference switching time point of the target power supply can be determined according to the degree of loss and the preset power supply duration, and then matched with the target switching time point output by the dual-power control panel to generate the first test result of the target power supply. Since the switching time point is calculated, the accuracy of the target switching time point calculated by the dual-power control panel can be evaluated, so that the dual-power control panel can calculate a more accurate switching time point in actual use, which facilitates switching the power supply before the target power supply is exhausted, improves the timeliness of power switching, and realizes the test of the timeliness of power switching.
[0046] In an optional implementation manner of the embodiment of the application, the degree of loss of the target power supply is determined according to the life attenuation value and the power attenuation value, including: The ratio of the life attenuation value and the power attenuation value is calculated, wherein the life attenuation value is the numerator and the power attenuation value is the denominator. The greater the ratio is, the greater the degree of loss is.
[0047] In an embodiment, the greater the ratio is, the more serious the power attenuation is in a short time, and the greater the degree of loss is. On the contrary, the smaller the ratio is, the more slight the power attenuation is in a long time, and the less the quality of the power supply is affected.
[0048] In the implementation, the degree of loss is determined by comparing the life attenuation value with the power attenuation value, so that the degree of loss takes into account both the life attenuation and the power attenuation, and the greater the ratio is, the greater the degree of loss is, so that the determined degree of loss is more in line with the actual use of the target power supply, and the accuracy of the degree of loss is improved.
[0049] In an optional implementation of the embodiment, the method further includes: retrieving an attenuation ratio from a preset mapping table according to the degree of loss.
[0050] The mapping table is a relationship table between the degree of loss and the attenuation ratio, and the greater the degree of loss in the mapping table is, the greater the corresponding attenuation ratio is. multiplying the preset power supply time length by the retrieved attenuation ratio to obtain the reference switching time point, wherein the reference switching time point represents a time length from switching the power supply.
[0051] In the implementation, the degree of loss is converted into the attenuation ratio for calculation by the preset mapping table, so that the calculation convenience of the reference switching time point is improved.
[0052] In an optional implementation of the embodiment, before the preset power supply time length is multiplied by the retrieved attenuation ratio, the method further includes: obtaining an actual power consumption of the target power supply in a target time length; calculating a deviation of the actual power consumption from a preset rated power consumption; correcting the attenuation ratio according to the deviation.
[0053] In an embodiment, the actual power consumption can be a power consumption percentage, for example, 5% of power is consumed in 10 minutes, and the actual power consumption is 5%. The calculation environment of the rated power consumption is the same as that of the actual power consumption, that is, the rated power consumption is calculated under the condition that the load is the same and the target time length is the same, and the rated power consumption is calculated when the target power supply is not used.
[0054] When the deviation is calculated, the actual power consumption and the rated power consumption are compared. If the result is less than 1, the attenuation ratio is increased in proportion. If the result is greater than 1, the attenuation ratio is decreased in proportion.
[0055] With the implementation, the durability of the target power supply can reflect the attenuation of the durability in addition to the attenuation of the life and the power consumption. Therefore, the attenuation ratio is corrected based on the deviation of the actual power consumption and the rated power consumption. The deviation can reflect the change degree of the power consumption rate of the target power supply, which is beneficial to improve the accuracy of the attenuation ratio.
[0056] In an optional implementation of the embodiment, the reference switching time point is determined according to the loss degree and the preset power supply duration of the target power supply, including: dividing the preset power supply duration into multiple time periods; taking the loss degree as an average value and generating a sub-loss degree corresponding to each time period according to the number of time periods; multiplying the duration of each time period by the corresponding sub-loss degree and summing the products to obtain the reference switching time point.
[0057] In an embodiment, the number of time periods can be preset or randomly generated, which is not limited in the embodiment. The duration of each time period can be the same or different. Preferably, the duration of the later time period is shorter.
[0058] In an embodiment, the sub-loss degree can be generated by random number software or by a corresponding calculation model or neural model, as long as the average value of all generated sub-loss degrees is equal to the loss degree.
[0059] With the implementation, when the reference switching time point is determined, the preset power supply duration is divided into multiple time periods, the attenuation of each time period is calculated, and finally the reference switching time point is obtained by summation, which is beneficial to improve the accuracy of the reference switching time point.
[0060] In an optional implementation of the embodiment, the first test result is generated according to the matching of the reference switching time point and the target switching time point, including: If the reference switching time point is later than the target switching time point and the difference between them is less than a preset difference threshold, a first test result of test pass is generated, otherwise a first test result of test fail is generated.
[0061] With the implementation, the reference switching time point must be later than the target switching time point to pass the test, which ensures the accuracy of the test result of the dual-power control board and enables the dual-power control board to switch the power supply in time in actual use.
[0062] In an optional implementation of the embodiment of the application, the method further includes: subtracting the used time length from the total life time length of the target power supply to obtain the life attenuation value; and / or subtracting the current maximum power from the initial total power of the target power supply to obtain the power attenuation value.
[0063] With this implementation, the life attenuation value and the power attenuation value are calculated in a simple and convenient manner, which is conducive to saving computing resources and improving computing efficiency.
[0064] In an optional implementation of the embodiment of the application, the dual-power control panel is connected in parallel with two power supplies, the target power supply is a first power supply, and the other power supply is a second power supply. The method further includes: obtaining a first total use time length of the first power supply and a second total use time length of the second power supply; obtaining a correction ratio by comparing the first total use time length with the second total use time length; correcting the degree of wear according to the correction ratio, and determining a reference available time length of the second power supply according to the corrected degree of wear and a preset power supply time length of the second power supply; obtaining a target available time length of the second power supply output by the dual-power control panel; generating a second test result according to a matching condition of the reference available time length and the target available time length.
[0065] With this implementation, the test of the second power supply is completed on the basis of the first power supply, which improves the test comprehensiveness and also improves the test efficiency and reduces repeated calculation steps.
[0066] The method embodiment according to the application is exemplified above, and the embodiment of the application further provides an electronic device including a memory and a processor. The memory is configured to store a computer program. The processor is configured to execute the computer program to implement the steps of the method.
[0067] The embodiment of the application further provides a computer readable storage medium storing a computer program, when the computer program runs on a computer or a processor, the computer or the processor executes the steps of the method.
[0068] The embodiment of the present application also provides a computer program product, which contains computer instructions, when the computer instructions are executed by a computer or a processor, the steps of the above method are executed.
[0069] Specifically, as shown in the figure, Figure 2 The electronic device includes a processor 100, at least one communication bus 200, a user interface 300, at least one external communication interface 400 and a memory 500. Among them, the communication bus 200 is configured to realize the connection communication between the components. Among them, the user interface 300 can include a display screen, and the external communication interface 400 can include a standard wired interface and a wireless interface. Among them, the memory 500 stores the data crawling method. Among them, the processor 100 is used to adopt the above method when executing the XX method stored in the memory 500.
[0070] The description of the above computer program product, computer readable storage medium and electronic device is similar to the description of the above method embodiment, and has similar beneficial effects to the method embodiment. For the technical details of the computer program product, computer readable storage medium and electronic device not disclosed in the present application, please refer to the description of the method embodiment of the present application.
[0071] The order of the embodiments of the present application or the introduction is only for description, not representing the advantages or disadvantages of the embodiments.
[0072] In several embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented by other ways. Among them, the above-mentioned device embodiment is only schematic, for example, the division of the unit can be a logical function division, and actual implementation can have another division way, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be through some interface, indirect coupling or communication connection between units or modules, which can be electrical or other forms.
[0073] The unit described as a separate component can be or can not be physically separated, and the component displayed as a unit can be or can not be a physical unit, that is, it can be located in one place, or it can be distributed to multiple units. According to the actual needs, part or all of the units can be selected to achieve the purpose of the embodiment scheme.
[0074] In addition, each of the function units in the embodiments of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.
[0075] In the above embodiments, all or part of the embodiments can be realized by software, hardware, firmware or any combination thereof. When realized by software, all or part of the embodiments can be realized in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through wired (for example: coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example: infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (for example: floppy disk, hard disk, magnetic tape), optical media (for example: digital versatile disc (DVD)) or semiconductor media (for example: solid state disk (SSD)) and the like. It should be noted that the computer readable storage medium mentioned in the embodiments of the present application can be a non-volatile storage medium, in other words, it can be a non-transitory storage medium. It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the scene data of the current frame in the three-dimensional virtual scene, the device information of the client and the scene interaction information involved in the embodiments of the present application are all obtained under sufficient authorization.
[0076] The above merely describes the preferred embodiments of the present application, and it should be pointed out that, for those skilled in the art, some improvements and refinements can be made without departing from the principles of the present application, and these improvements and refinements should also be considered as the protection scope of the present application.
Claims
1. A testing method for a dual-electric control board, characterized in that, The method comprises: obtaining a life attenuation value and an electricity attenuation value of a target power supply for powering a load; determining a loss degree of the target power supply according to the life attenuation value and the electricity attenuation value, wherein the greater the loss degree, the greater the attenuation amplitude of the powering time length of the target power supply; determining a reference switching time point according to the loss degree and a preset powering time length of the target power supply; obtaining a target switching time point output by a dual-electricity control panel; generating a first test result according to a matching condition of the reference switching time point and the target switching time point.
2. The method of testing dual electrical control boards of claim 1, wherein, The determining of the loss degree of the target power supply according to the life attenuation value and the electricity attenuation value comprises: calculating a ratio of the life attenuation value and the electricity attenuation value, wherein the life attenuation value is the numerator and the electricity attenuation value is the denominator; the greater the ratio, the greater the loss degree.
3. The method of testing dual electrical control boards of claim 1, wherein, The determining of the reference switching time point according to the loss degree and the preset powering time length of the target power supply comprises: obtaining an attenuation ratio from a preset mapping table according to the loss degree, wherein the mapping table is a relationship table between the loss degree and the attenuation ratio, and the greater the loss degree in the mapping table, the greater the corresponding attenuation ratio; multiplying the preset powering time length and the obtained attenuation ratio to obtain the reference switching time point, wherein the reference switching time point represents a time length to the switching power supply.
4. The method of testing dual electrical control boards of claim 3, wherein, Before the multiplying of the preset powering time length and the obtained attenuation ratio, the method further comprises: obtaining an actual electricity consumption of the target power supply within a target time length; calculating a deviation of the actual electricity consumption from a preset rated electricity consumption; correcting the attenuation ratio according to the deviation.
5. The method of testing dual electrical control boards of claim 1, wherein, The determining of the reference switching time point according to the loss degree and the preset powering time length of the target power supply comprises: dividing the preset powering time length into multiple time periods; taking the loss degree as an average value and generating a sub-loss degree corresponding to each time period according to the number of the time periods; multiplying the time length of each time period and the corresponding sub-loss degree and summing the products to obtain the reference switching time point.
6. The method of testing dual electrical control boards of claim 1, wherein, The generating of the first test result according to the matching condition of the reference switching time point and the target switching time point comprises: if the reference switching time point is later than the target switching time point and the difference between the two is less than a preset difference threshold, generating a first test result of test pass, otherwise generating a first test result of test fail.
7. The method of testing dual electrical control boards according to any one of claims 1-6, wherein, The method further comprises: obtaining the life attenuation value by subtracting a used time length from a total life time length of the target power supply; and / or, obtaining the electricity attenuation value by subtracting a current maximum electricity from an initial total electricity of the target power supply.
8. The method of testing dual electrical control boards according to any one of claims 1-6, wherein, The dual-electricity control panel is connected in parallel with two power supplies, the target power supply is a first power supply, and the other power supply is a second power supply; The method further comprises: obtaining a first total use time length of the first power supply and a second total use time length of the second power supply; obtaining a correction ratio by comparing the first total use time length with the second total use time length; According to the modified proportion, the loss degree is modified, and a reference available time length of the second power supply is determined according to the modified loss degree and a preset power supply time length of the second power supply; A target available time length of the second power supply output by the dual-electricity control panel is acquired; A second test result is generated according to matching of the reference available time length and the target available time length.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and when the computer program runs on a computer or a processor, the computer or the processor executes the steps of the method in any one of claims 1-8.
10. A computer program product, characterised in that, The computer program product contains computer instructions, and when the computer instructions are executed by a computer or a processor, the steps of the method in any one of claims 1-8 are executed.
Citation Information
Patent Citations
Power failure detection circuit and method, and MCU chip
CN112649724A
Control method of electronic equipment, electronic equipment and computer readable storage medium
CN116191609A
Method, device and equipment for testing high-power uninterruptible power supply and storage medium
CN118348450A
Power supply control method and device of photovoltaic energy storage charging pile, medium, equipment and product
CN120056797A
Intelligent management method and system of uninterruptible power supply and storage medium
CN120546247A