Test method and device, equipment, storage medium and computer program product

Through testing methods and devices in electronic systems, the voltage resistance performance of the electronic system is evaluated based on the voltage test mode and diagnostic information, which solves the problem of difficulty in testing the voltage resistance performance of the power module when the voltage of the power module is abnormal in the existing technology, and improves the stability of the system. performance and reliability.

CN118604489APending Publication Date: 2024-09-06CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

It is difficult to effectively test and evaluate the withstand voltage performance of electronic systems under abnormal power module voltage conditions with existing technology, which affects system stability and reliability.

Method used

By introducing test methods and devices into the electronic system, the voltage test mode, voltage amplitude and holding time are determined based on the initial voltage amplitude and triggering operation, the corresponding voltage is output, and diagnostic information is obtained to evaluate the voltage withstand performance of the system.

Benefits of technology

It improves the voltage resistance performance evaluation and optimization of electronic systems under abnormal power module voltage conditions, and enhances the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604489A
    Figure CN118604489A
Patent Text Reader

Abstract

The embodiment of the invention provides a test method and device, equipment, a storage medium and a computer program product. The test method comprises the steps of determining a voltage test mode corresponding to a first trigger operation, a voltage amplitude corresponding to the voltage test mode and retention time in response to the acquired first trigger operation under the condition that an initial voltage is output to a target system according to an initial voltage amplitude; in response to an obtained second trigger operation, outputting a first voltage to the target system according to the retention time and the voltage amplitude; and obtaining diagnosis information sent by the target system, and determining a test result of the target system corresponding to the voltage test mode according to the diagnosis information. According to the embodiment of the invention, the test result is determined according to the diagnosis information sent by the target system in the voltage test mode corresponding to the first trigger operation, so that the voltage withstanding performance of the target system is maintained and optimized according to the test results of the target system corresponding to different voltage test modes. Therefore, the stability and reliability of the target system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic system testing, and in particular to a testing method, device, equipment, storage medium and computer program product. Background Art

[0002] Currently, when the voltage of a power module of an electronic system is normal, an automated test can be performed on the electronic system, so as to more efficiently monitor the electronic system through the automated test results.

[0003] In actual scenarios, the power module of the electronic system may have abnormal conditions such as undervoltage and overvoltage. Whether the electronic system can operate normally when the power module voltage is abnormal is an important aspect of measuring the voltage resistance performance of the electronic system. How to test the voltage resistance performance of the electronic system when the voltage is abnormal is crucial to improving the stability of the electronic system. Summary of the invention

[0004] The embodiments of the present application provide a testing method, apparatus, device, storage medium and computer program product, which can implement testing of a target system under different voltage test modes to improve the stability of the target system according to the obtained test results.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a testing method, comprising: in response to an acquired first trigger operation, determining a voltage test mode corresponding to the first trigger operation, a voltage amplitude corresponding to the voltage test mode, and a holding time, while outputting an initial voltage to a target system according to an initial voltage amplitude; in response to an acquired second trigger operation, outputting a first voltage to the target system according to the holding time and the voltage amplitude; obtaining diagnostic information sent by the target system, and determining a test result of the target system corresponding to the voltage test mode according to the diagnostic information.

[0007] In an embodiment of the present application, the test results are determined based on the diagnostic information sent by the target system under the voltage test mode corresponding to the first trigger operation, so as to maintain and optimize the voltage resistance performance of the target system according to the test results of the target system corresponding to different voltage test modes, thereby improving the stability and reliability of the target system.

[0008] In some embodiments, the first trigger operation includes an overvoltage mode trigger operation and an undervoltage mode trigger operation, and the voltage test mode includes an overvoltage test mode and an undervoltage test mode; the determination of the voltage test mode corresponding to the first trigger operation in response to the acquired first trigger operation includes: in response to the overvoltage mode trigger operation, determining that the voltage test mode corresponding to the first trigger operation is the overvoltage test mode; in response to the undervoltage mode trigger operation, determining that the voltage test mode corresponding to the first trigger operation is the undervoltage test mode.

[0009] In the above embodiments, the voltage test mode can be determined as an overvoltage test mode or an undervoltage test mode in response to an overvoltage mode trigger operation or an undervoltage mode trigger operation, respectively, so as to subsequently output a corresponding first voltage to the target system according to the overvoltage test mode or the undervoltage test mode, thereby respectively determining the test results of the target system corresponding to the overvoltage test mode and the undervoltage test mode.

[0010] In some embodiments, the first trigger operation includes a boost trigger operation and a decompression trigger operation; when the initial voltage is output to the target system according to the initial voltage amplitude, determining the voltage amplitude corresponding to the voltage test mode in response to the acquired first trigger operation includes: determining a first numerical value in response to the boost trigger operation, and determining the voltage amplitude corresponding to the voltage test mode according to the first numerical value and the initial voltage amplitude; determining a second numerical value in response to the decompression trigger operation, and determining the voltage amplitude corresponding to the voltage test mode according to the second numerical value and the initial voltage amplitude.

[0011] In the above embodiments, different calculations can be performed on the initial voltage amplitude in response to the boost trigger operation or the decompression trigger operation to obtain the voltage amplitude corresponding to the voltage test mode, so as to subsequently output the corresponding first voltage to the target system according to the different voltage amplitudes, thereby determining the test results of the target system corresponding to the different voltage amplitudes.

[0012] In some embodiments, in response to the acquired second trigger operation, after outputting the first voltage to the target system according to the holding time and the voltage amplitude, the method further includes: outputting the initial voltage to the target system according to the initial voltage amplitude.

[0013] In the above embodiment, after the first voltage is output to the target system for a period of time corresponding to the holding time, the first voltage is restored to the initial voltage to facilitate testing of the recovery capability of the target system after the voltage is restored and to reduce the damage to the target system caused by being at the first voltage for a long time.

[0014] In some embodiments, outputting the first voltage to the target system based on the holding time and the voltage amplitude includes: during the holding time, converting the voltage amplitude in the voltage test mode into an analog amplitude through a digital / analog conversion module; determining the first voltage based on the analog amplitude, and outputting the first voltage to the target system.

[0015] In the above embodiment, the voltage amplitude is converted into an analog amplitude by a digital / analog conversion module, so that the circuit adjusts the initial voltage amplitude to a voltage amplitude corresponding to the analog amplitude according to the analog amplitude, and outputs a first voltage corresponding to the voltage amplitude to the target system.

[0016] In some embodiments, after outputting the first voltage to the target system, the method further includes: acquiring a first analog amplitude of the first voltage through an analog / digital conversion module, converting the first analog amplitude into a digital amplitude, and correcting the voltage amplitude according to the digital amplitude.

[0017] In the above embodiment, the digital amplitude corresponding to the first analog amplitude of the first voltage output by the circuit is obtained in real time through the analog / digital conversion module, and the digital amplitude is compared with the voltage amplitude to see if they are consistent. When the digital amplitude is inconsistent with the voltage amplitude, the voltage amplitude is corrected according to the digital amplitude, thereby avoiding the voltage amplitude error caused by hardware deviation and improving the accuracy of the test results.

[0018] In a second aspect, an embodiment of the present application provides a testing device, including:

[0019] A first determining unit is used to determine, in response to the acquired first trigger operation, a voltage test mode corresponding to the first trigger operation, a voltage amplitude and a holding time corresponding to the voltage test mode when an initial voltage is output to a target system according to the initial voltage amplitude;

[0020] An output unit, configured to output a first voltage to the target system according to the holding time and the voltage amplitude in response to the acquired second trigger operation;

[0021] The second determining unit is configured to obtain the diagnostic information sent by the target system, and determine a test result of the target system corresponding to the voltage test mode according to the diagnostic information.

[0022] In a third aspect, an embodiment of the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the above test methods when executing the computer program.

[0023] In a fourth aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the test method described in any one of the above items is implemented.

[0024] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which implements any of the above-described testing methods when executed by a processor.

[0025] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings are embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0027] Figure 1A A schematic diagram of the test system architecture provided in an embodiment of the present application;

[0028] Figure 1B A schematic diagram of a power module architecture provided in an embodiment of the present application;

[0029] Figure 1C A schematic diagram of the overall system architecture provided for an embodiment of the present application;

[0030] Figure 2 A schematic diagram of a test method for implementing the present invention is provided in the embodiment of the present invention;

[0031] Figure 3A A schematic diagram of a first voltage output process according to an embodiment of the present application;

[0032] Figure 3B A schematic diagram of a process for implementing outputting a first voltage provided in an embodiment of the present application Figure 2 ;

[0033] Figure 3C A schematic diagram of a third implementation flow of outputting a first voltage provided in an embodiment of the present application;

[0034] Figure 4 A schematic diagram of the implementation process of a test method provided in the embodiment of the present application Figure 2 ;

[0035] Figure 5 Schematic diagram 3 of an implementation flow of a testing method provided in an embodiment of the present application;

[0036] Figure 6 A schematic diagram of the implementation process of a test method provided in the embodiment of the present application Figure 4 ;

[0037] Figure 7 A schematic diagram of a testing device provided in an embodiment of the present application;

[0038] Figure 8 A hardware entity diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0040] It should be understood that the "embodiment of the present application" or "the aforementioned embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in the embodiment of the present application" or "in the aforementioned embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. In the various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0041] In addition, the accompanying drawings are only schematic illustrations of embodiments of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0042] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0043] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.

[0045] Currently, when the voltage of a power module of an electronic system is normal, an automated test can be performed on the electronic system, so as to more efficiently monitor the electronic system through the automated test results.

[0046] In actual scenarios, the power module of the electronic system may have abnormal conditions such as undervoltage and overvoltage. Whether the electronic system can operate normally when the power module voltage is abnormal is an important aspect of measuring the voltage resistance performance of the electronic system. How to test the voltage resistance performance of the electronic system under abnormal voltage is crucial to improving the stability of the electronic system. Among them, the voltage resistance performance is used to measure the ability of the electronic system to withstand voltage fluctuations under normal operation.

[0047] Based on the above problems, an embodiment of the present application proposes a testing method, which determines the test results according to the diagnostic information sent by the target system under the voltage test mode corresponding to the first trigger operation, so as to maintain and optimize the voltage resistance performance of the target system according to the test results of the target system corresponding to different voltage test modes, thereby improving the stability and reliability of the target system.

[0048] Here, the target system is an electrically powered system that can generate diagnostic information.

[0049] Figure 1A This is a schematic diagram of the test system architecture provided in the embodiment of the present application. Figure 1AAs shown, the test system 100 for implementing the test method provided by the embodiment of the present application includes a control module 101, a power module 102, a single-chip microcomputer 103, a receiving module 104 and a display module 105. Among them, the control module 101 is used to set the voltage test mode, the voltage amplitude and the holding time corresponding to the voltage test mode through the trigger operation of the control. The power module 102 is used to step up or down the input initial voltage within the holding time corresponding to the voltage test mode according to the voltage test mode set by the control module 101, the voltage amplitude and the holding time corresponding to the voltage test mode to obtain a first voltage, and output the first voltage to the target system. The single-chip microcomputer 103 is used to control the timing corresponding to each module in the test system 100. The receiving module 104 is used to receive the diagnostic information output by the target system. The display module 105 is used to display the current voltage test mode, the voltage amplitude corresponding to the voltage test mode, the holding time corresponding to the voltage test mode and the test results.

[0050] The control module 101 includes a first control, a second control, a setting control and a start control, and the setting of the control can be realized by setting a button in the user interface or setting a physical key. Among them, the setting control is used to switch the currently operated option, and the currently operated option can include a voltage test mode option, a voltage amplitude option and a holding time option. In the case where the currently operated option is the voltage test mode option, the first control is used to receive an overvoltage mode trigger operation, and in response to the overvoltage mode trigger operation, the voltage test mode is set to the overvoltage test mode, and the second control is used to receive an undervoltage mode trigger operation, and in response to the undervoltage mode trigger operation, the voltage test mode is set to the undervoltage test mode; in the case where the currently operated option is the voltage amplitude option, the first control is used to increase the first value on the basis of the initial voltage amplitude to obtain the voltage amplitude corresponding to the voltage test mode, and the second control is used to reduce the second value on the basis of the initial voltage amplitude to obtain the voltage amplitude corresponding to the voltage test mode; in the case where the currently operated option is the holding time option, the first control is used to increase the holding time, and the second control is used to reduce the holding time, and milliseconds, seconds or other time units can be used as units for increasing or decreasing the holding time according to requirements. The start control is used to drive the power supply module 102 to generate a corresponding first voltage according to a set voltage test mode, a voltage amplitude and a holding time corresponding to the voltage test mode, and output the first voltage to the target system.

[0051] like Figure 1BAs shown, the power supply module 102 includes an input module 1021, a buck-boost circuit 1022, a digital / analog conversion module 1023, a control unit 1024, an analog / digital conversion module 1025 and an output module 1026. Among them, the input module 1021 is used to connect to an external power supply. The buck-boost circuit 1022 is used to convert the input initial voltage into a first voltage and output it according to the voltage amplitude corresponding to the voltage test mode. The digital / analog conversion module 1023 is used to convert the voltage amplitude into an analog amplitude and transmit it to the buck-boost circuit 1022. The control unit 1024 is used to control the buck-boost circuit 1022 to output the first voltage according to the holding time corresponding to the voltage test mode. The analog / digital conversion module 1025 is used to obtain the first voltage output by the buck-boost circuit 1022, and convert the first analog amplitude corresponding to the first voltage into a digital amplitude, and correct the voltage amplitude according to the digital amplitude. The output module 1026 is used to output the first voltage output by the buck-boost circuit 1022 to the target system.

[0052] Figure 1C The overall system architecture diagram provided in the embodiment of the present application is shown in FIG. Figure 1C As shown, in addition to the test system 100, the overall system also includes an access power supply 110 and a target system 120. The access power supply 110 is used to access an external power supply to output the external power supply to the power supply module 102 of the test system 100, and the power supply module 102 of the test system 100 adjusts the initial voltage corresponding to the input power supply to a first voltage and then outputs it to the target system 120. When the test system 100 does not test the target system 120, the power supply module 102 can directly output the initial voltage corresponding to the input power supply to the target system 120. When the test system 100 tests the target system 120, the target system 120 sends diagnostic information to the receiving module 104 of the test system 100 in real time.

[0053] The test method in the embodiment of the present application can be applied to a test device, or to a hardware device or system equipped with a test device. Wherein, in the implementation process of the test method in the embodiment of the present application, the test device can be the test system 100 as described above, or it can be a processor of a computer device, and the present application does not specifically limit this. Wherein, the computer device refers to a server, a laptop, a tablet computer, a desktop computer, a mobile device (such as a mobile phone, a personal digital assistant, a portable game device) and other devices with data processing capabilities.

[0054] The following will Figure 1A The test system 100 in the embodiment of the present application is used as an example to illustrate the test method in the embodiment of the present application. It can be understood that the execution subject here is only exemplary, and the embodiment of the present application does not impose any special restrictions on the execution subject.

[0055] Figure 2 Schematic diagram 1 of a test method implementation flow provided in the embodiment of the present application. Figure 2 As shown, the testing method at least includes steps S201 to S203.

[0056] Step S201 : when outputting an initial voltage to a target system according to an initial voltage amplitude, in response to an acquired first trigger operation, determining a voltage test mode corresponding to the first trigger operation, a voltage amplitude corresponding to the voltage test mode, and a holding time.

[0057] In some embodiments, a voltage test mode, a voltage amplitude corresponding to the voltage test mode, and a holding time can be set through a first trigger operation to simulate the voltage test mode to determine a test result of the target system corresponding to the voltage test mode.

[0058] Here, the initial voltage amplitude is the voltage amplitude of the power supply connected to the power input detection system. The initial voltage is the voltage of the power supply connected to the power input detection system, and the voltage amplitude of the initial voltage is the initial voltage amplitude.

[0059] The voltage test mode may include an overvoltage test mode and an undervoltage test mode, and different voltage test modes correspond to different voltage amplitudes. Taking the initial voltage amplitude of 12 volts (volt, V) as an example, the voltage amplitude corresponding to the overvoltage test mode may be greater than 12V, for example, it may be 24V, and the voltage amplitude corresponding to the undervoltage test mode may be less than 12V, for example, it may be 6V. In some embodiments, the corresponding voltage amplitude ranges may be set for the overvoltage test mode and the undervoltage test mode respectively, for example, the initial voltage amplitude is 12V, the adjustment range supported by the voltage amplitude is 0V to 85V, the voltage amplitude range corresponding to the overvoltage test mode may be 12V to 85V, the voltage amplitude corresponding to the overvoltage test mode may be any voltage amplitude between 12V and 85V, the voltage amplitude range corresponding to the undervoltage test mode may be 0V to 12V, and the voltage amplitude corresponding to the undervoltage test mode may be any voltage amplitude between 0V and 12V. The voltage amplitude range corresponding to the overvoltage test mode or the undervoltage test mode may also be set according to actual needs, and this application does not specifically limit this.

[0060] The holding time corresponding to the voltage test mode is the duration of the voltage test mode. In a time period corresponding to the holding time corresponding to the voltage test mode, a first voltage is output to the target system according to a voltage amplitude corresponding to the voltage test mode.

[0061] The first trigger operation is a trigger operation for setting a voltage test mode, a voltage amplitude corresponding to the voltage test mode, and a holding time. A control module corresponding to the first trigger operation can be set to receive the first trigger operation through the control module. In some embodiments, the control module may include a setting control, a first control, and a second control, and the setting control is used to switch the currently operated option. Among them, the currently operated options include a voltage test mode option, a voltage amplitude option, and a holding time option. When the currently operated option is the voltage test mode option, the first control is used to receive an overvoltage mode trigger operation, and in response to the overvoltage mode trigger operation, the voltage test mode is set to the overvoltage test mode, and the second control is used to receive an undervoltage mode trigger operation, and in response to the undervoltage mode trigger operation, the voltage test mode is set to the undervoltage test mode; when the currently operated option is the voltage amplitude option, the first control is used to increase the first value based on the initial voltage amplitude to obtain the voltage amplitude, and the second control is used to reduce the second value based on the initial voltage amplitude to obtain the voltage amplitude; when the currently operated option is the hold time option, the first control is used to increase the hold time, and the second control is used to reduce the hold time. Milliseconds, seconds or other time units can be used as units for increasing or decreasing the hold time as required.

[0062] In some embodiments, when the initial voltage is output to the target system according to the initial voltage amplitude, the voltage test mode, the voltage amplitude corresponding to the voltage test mode, and the holding time can be set by the first trigger operation. In response to the acquired first trigger operation, the voltage test mode corresponding to the first trigger operation, the voltage amplitude corresponding to the voltage test mode, and the holding time are determined.

[0063] Step S202: In response to the acquired second trigger operation, output a first voltage to the target system according to the holding time and the voltage amplitude.

[0064] In some embodiments, the power module may be driven to output the first voltage to the target system through the second trigger operation.

[0065] Here, the second trigger operation is a trigger operation for driving the power module to output the first voltage to the target system.

[0066] In some embodiments, a start control may be set to receive a second trigger operation through the start control. In response to the second trigger operation of the start control, the driving power supply module generates a corresponding first voltage according to the set voltage test mode, the voltage amplitude and the holding time corresponding to the voltage test mode, and converts the initial voltage into the first voltage and outputs it to the target system.

[0067] In some embodiments, when the voltage test mode is an undervoltage test mode, Figure 3AAs shown, the first voltage can be output to the target system through steps S301 to S304.

[0068] Step S301, input initial voltage.

[0069] Connect an external power supply and input the initial voltage of the external power supply to the power module in the test system.

[0070] Step S302: The button module receives a trigger operation.

[0071] A first trigger operation for setting an undervoltage test mode, a voltage amplitude and a holding time corresponding to the undervoltage test mode, and a second trigger operation for driving a power supply module to output a first voltage to a target system are received through a key module in the test system.

[0072] Step S303: The power module reduces the initial voltage amplitude to obtain a first voltage.

[0073] The power module in the test system responds to the first trigger operation received by the key module, reduces the initial voltage amplitude of the initial voltage to obtain the voltage amplitude corresponding to the undervoltage test mode, and determines the first voltage according to the voltage amplitude corresponding to the undervoltage test mode.

[0074] Step S304: output the first voltage to the target system.

[0075] The power supply module in the test system responds to the second trigger operation received by the key module to output the first voltage to the target system.

[0076] In some embodiments, when the voltage test mode is an overvoltage test mode, Figure 3B As shown, the first voltage can be output to the target system through steps S301 to S304.

[0077] Step S301, input initial voltage.

[0078] Connect an external power supply and input the initial voltage of the external power supply to the power module in the test system.

[0079] Step S302: The button module receives a trigger operation.

[0080] A first trigger operation for setting an overvoltage test mode, a voltage amplitude and a holding time corresponding to the overvoltage test mode, and a second trigger operation for driving a power supply module to output a first voltage to a target system are received through a key module in the test system.

[0081] Step S303: The power module increases the initial voltage amplitude to obtain a first voltage.

[0082] The power module in the test system responds to the first trigger operation received by the key module, increases the initial voltage amplitude of the initial voltage to obtain the voltage amplitude corresponding to the overvoltage test mode, and determines the first voltage according to the voltage amplitude corresponding to the overvoltage test mode.

[0083] Step S304: output the first voltage to the target system.

[0084] The power supply module in the test system responds to the second trigger operation received by the key module to output the first voltage to the target system.

[0085] In some embodiments, when the voltage test mode is not set, Figure 3C As shown, the first voltage can be output to the target system through steps S301 to S304.

[0086] Step S301, input initial voltage.

[0087] Connect an external power supply and input the initial voltage of the external power supply to the power module in the test system.

[0088] Step S302: The power module determines a first voltage according to an initial voltage amplitude.

[0089] When the voltage test mode is not set, the voltage amplitude corresponding to the first voltage is the initial voltage amplitude corresponding to the initial voltage, and the power module in the test system can determine the first voltage according to the initial voltage amplitude.

[0090] Step S303: output the first voltage to the target system.

[0091] The first voltage is output to the target system through a power supply module in the test system.

[0092] In some embodiments, in response to the acquired second trigger operation, after the first voltage is output to the target system according to the holding time and the voltage amplitude, an initial voltage may also be output to the target system according to the initial voltage amplitude.

[0093] Exemplarily, taking the holding time of 10 seconds as an example, 10 seconds after the first voltage is output to the target system in response to the acquired second trigger operation, the voltage amplitude corresponding to the first voltage is restored to the initial voltage amplitude, and the initial voltage is output to the target system according to the initial voltage amplitude.

[0094] In the above embodiment, after the first voltage is output to the target system for a period of time corresponding to the holding time, the first voltage is restored to the initial voltage to facilitate testing of the recovery capability of the target system after the voltage is restored and to reduce the damage to the target system caused by being at the first voltage for a long time.

[0095] Step S203: Acquire the diagnostic information sent by the target system, and determine the test result of the target system corresponding to the voltage test mode according to the diagnostic information.

[0096] In some embodiments, after the first voltage is output to the target system, the target system may generate diagnostic information in real time. The test result may be determined according to the diagnostic information sent by the target system.

[0097] Here, the diagnostic information may include whether the target system is operating normally, whether a voltage anomaly is detected, the type of voltage anomaly, the duration of the voltage anomaly, the specific voltage value, the severity of the voltage anomaly and processing suggestions, etc.

[0098] The test result is the result of the withstand voltage performance of the target system in the corresponding voltage test mode determined according to the diagnostic information, and may include information related to the withstand voltage performance in the diagnostic information. In some embodiments, a voltage test mode corresponds to a voltage amplitude and a test result; in some embodiments, a voltage evaluation mode corresponds to multiple voltage amplitudes, and each voltage amplitude may correspond to a test result. For example, taking the voltage test mode as an overvoltage test mode, when the voltage amplitude corresponding to the overvoltage test mode is 24V, the first voltage corresponding to 24V is output to the target system, so as to determine the test result of the target system corresponding to the overvoltage test mode according to the diagnostic information of the target system under the first voltage corresponding to 24V; when the voltage amplitude corresponding to the overvoltage test mode is any voltage amplitude between 12V and 85V, the first voltage corresponding to multiple voltage amplitudes between 12V and 85V can be output to the target system respectively, so as to determine the multiple test results of the target system corresponding to different voltage amplitudes in the overvoltage test mode according to multiple different diagnostic information of the target system under the first voltage corresponding to multiple voltage amplitudes.

[0099] In some embodiments, the diagnostic information sent by the target system may be acquired in real time to determine the test results of the withstand voltage performance and other performances of the target system corresponding to the current voltage test mode according to the diagnostic information.

[0100] In an embodiment of the present application, the test results are determined based on the diagnostic information sent by the target system under the voltage test mode corresponding to the first trigger operation, so as to maintain and optimize the voltage resistance performance of the target system according to the test results of the target system corresponding to different voltage test modes, thereby improving the stability and reliability of the target system.

[0101] Figure 4 A schematic diagram of the implementation process of a test method provided in the embodiment of the present application Figure 2 .like Figure 4As shown, the first trigger operation includes an overvoltage mode trigger operation and a boost trigger operation, and the voltage test mode includes an overvoltage test mode. The voltage test mode can be set to the overvoltage test mode through steps S401 and S402, and the voltage amplitude corresponding to the overvoltage test mode can be determined.

[0102] Step S401: In response to an overvoltage mode trigger operation, determining that a voltage test mode corresponding to a first trigger operation is an overvoltage test mode.

[0103] Here, the overvoltage mode trigger operation is used to set the voltage test mode to the overvoltage test mode.

[0104] In some embodiments, a control corresponding to the overvoltage mode trigger operation may be set, and in response to the trigger operation of the control, the voltage test mode is set to the overvoltage test mode.

[0105] Step S402: In response to the boost trigger operation, determine a first value, and determine a voltage amplitude corresponding to the voltage test mode according to the first value and the initial voltage amplitude.

[0106] Here, the boost trigger operation is used to increase the voltage amplitude.

[0107] In some embodiments, the first value is a value that increases when the voltage amplitude is increased. When the voltage amplitude needs to be increased, a specific value (i.e., the first value) that needs to be increased can be set, and then the first value is added to the initial voltage amplitude through a boost trigger operation to obtain the voltage amplitude.

[0108] In some embodiments, the first value is the increase step of the voltage amplitude, and each time a boost trigger operation is responded, the voltage amplitude is increased once according to the increase step. Taking the initial voltage amplitude as 12V as an example, the increase step of the voltage amplitude can be set to 1V. When responding to the boost trigger operation for the first time, 1V can be added to the initial voltage amplitude, and the voltage amplitude is 13V. After responding to four boost trigger operations, 4V is added to the initial voltage amplitude, and the voltage amplitude is 16V.

[0109] Figure 5 Schematic diagram 3 of a test method implementation flow provided in the present application embodiment. Figure 5 As shown, the first trigger operation includes an undervoltage mode trigger operation and a decompression trigger operation, and the voltage test mode includes an undervoltage test mode. The voltage test mode can be set to the undervoltage test mode through steps S501 and S502, and the voltage amplitude corresponding to the undervoltage test mode can be determined.

[0110] Step S501: In response to an undervoltage mode trigger operation, determining that a voltage test mode corresponding to a first trigger operation is an undervoltage test mode.

[0111] Here, the undervoltage mode trigger operation is used to set the voltage test mode to the undervoltage test mode.

[0112] In some embodiments, a control corresponding to the undervoltage mode triggering operation may be set, and in response to the triggering operation of the control, the voltage test mode is set to the undervoltage test mode.

[0113] Step S502: In response to the decompression triggering operation, determine a second value, and determine a voltage amplitude corresponding to the voltage test mode according to the second value and the initial voltage amplitude.

[0114] Here, the decompression trigger operation is used to reduce the voltage amplitude.

[0115] In some embodiments, the second value is the value that is reduced when the voltage amplitude is reduced. When the voltage amplitude needs to be reduced, a specific value (i.e., the second value) that needs to be reduced can be set, and then the second value is reduced from the initial voltage amplitude through the decompression trigger operation to obtain the voltage amplitude.

[0116] In some embodiments, the second value is a step size of voltage amplitude reduction, and each time a decompression trigger operation is responded to, the voltage amplitude is reduced once according to the step size of reduction. Taking the initial voltage amplitude as 12V as an example, the step size of voltage amplitude reduction can be set to 1V. When responding to the decompression trigger operation for the first time, 1V can be reduced on the basis of the initial voltage amplitude, and the voltage amplitude is 11V. After responding to the decompression trigger operation six times, 6V is reduced on the basis of the initial voltage amplitude, and the voltage amplitude is 6V.

[0117] In some embodiments, when the voltage test mode is the overvoltage test mode but the current voltage amplitude is too high, the voltage amplitude can be adjusted to the voltage amplitude corresponding to the overvoltage test mode through a decompression trigger operation. For example, if the voltage amplitude corresponding to the overvoltage test mode is 24V, but the current voltage amplitude is 26V due to misoperation or other reasons, the voltage amplitude can be adjusted to 24V through a decompression trigger operation.

[0118] When the voltage test mode is the undervoltage test mode, but the current voltage amplitude is too low, the voltage amplitude can be adjusted to the voltage amplitude corresponding to the undervoltage test mode through the boost trigger operation. For example, the voltage amplitude corresponding to the undervoltage test mode is 8V, but due to misoperation or other reasons, the current voltage amplitude is 4V, then the voltage amplitude can be adjusted to 8V through the boost trigger operation.

[0119] In the above embodiments, the voltage test mode can be determined as an overvoltage test mode or an undervoltage test mode in response to an overvoltage mode trigger operation or an undervoltage mode trigger operation, and the initial voltage amplitude can be calculated differently in response to a boost trigger operation or a decompression trigger operation to obtain a voltage amplitude corresponding to the overvoltage test mode or the undervoltage test mode, so as to subsequently output a corresponding first voltage to the target system according to the voltage amplitude of the overvoltage test mode or the undervoltage test mode, thereby respectively determining the test results of the target system corresponding to the overvoltage test mode and the undervoltage test mode.

[0120] Figure 6 A schematic diagram of the implementation process of a test method provided in the embodiment of the present application Figure 4 .like Figure 6 As shown, the first voltage can be output to the target system through step S601 and step S602.

[0121] Step S601: During the holding time, the voltage amplitude in the voltage test mode is converted into an analog amplitude by a digital / analog conversion module.

[0122] Here, the holding time is the test time corresponding to the voltage test mode, and within the time period corresponding to the holding time corresponding to the voltage test mode, the first voltage is output to the target system according to the voltage amplitude corresponding to the voltage test mode.

[0123] The Digital-to-Analog Converter (DAC) module is used to convert the voltage amplitude of the digital quantity into an analog quantity. The analog amplitude is the analog quantity corresponding to the voltage amplitude.

[0124] In some embodiments, during the time period corresponding to the hold time, the voltage amplitude of the digital quantity in the current voltage test mode can be converted into an analog quantity, ie, an analog amplitude, by a digital / analog conversion module to facilitate transmission of the analog amplitude in the circuit.

[0125] Step S602: determine a first voltage according to the simulation amplitude, and output the first voltage to the target system.

[0126] In some embodiments, the initial voltage amplitude of the initial voltage may be converted into an analog amplitude to obtain a first voltage, and the initial voltage may be replaced by the first voltage to output the first voltage to the target system.

[0127] In the above embodiment, the voltage amplitude is converted into an analog amplitude by a digital / analog conversion module, so that the circuit adjusts the initial voltage amplitude to a voltage amplitude corresponding to the analog amplitude according to the analog amplitude, and outputs a first voltage corresponding to the voltage amplitude to the target system.

[0128] In some embodiments, after the first voltage is output to the target system, a first analog amplitude of the first voltage can be obtained through an analog / digital conversion module, and the first analog amplitude can be converted into a digital amplitude, and the voltage amplitude can be corrected according to the digital amplitude.

[0129] In some embodiments, the analog signal causes a deviation during transmission by the hardware device, and a first analog amplitude of the output first voltage may be obtained, and the voltage amplitude may be corrected according to a digital amplitude corresponding to the first analog amplitude.

[0130] The analog-to-digital converter (ADC) module is used to convert the first analog amplitude into a digital value. The digital amplitude is the digital value corresponding to the first analog amplitude.

[0131] In some embodiments, the output first voltage can be obtained in real time through an analog / digital conversion module, the first analog amplitude corresponding to the first voltage can be converted into a digital amplitude, the digital amplitude and the voltage amplitude of the digital quantity are compared, and when the digital amplitude is different from the voltage amplitude of the digital quantity, the voltage amplitude is corrected according to the digital amplitude.

[0132] In the above embodiment, the digital amplitude corresponding to the first analog amplitude of the first voltage output by the circuit is obtained in real time through the analog / digital conversion module, and the digital amplitude is compared with the voltage amplitude to see if they are consistent. When the digital amplitude is inconsistent with the voltage amplitude, the voltage amplitude is corrected according to the digital amplitude, thereby avoiding the voltage amplitude error caused by hardware deviation and improving the accuracy of the test results.

[0133] The embodiment of the present application determines the test result based on the diagnostic information sent by the target system under the voltage test mode corresponding to the first trigger operation, so as to maintain and optimize the voltage resistance performance of the target system according to the test results of the target system corresponding to different voltage test modes, thereby improving the stability and reliability of the target system.

[0134] Based on the above embodiments, another embodiment of the present application exemplifies the application of the testing method in an actual scenario.

[0135] At present, the relevant technology can realize automatic testing of the electronic system when the voltage of the power module of the electronic system is normal, so as to monitor the electronic system more efficiently through the automatic test results.

[0136] In actual scenarios, the power module of the electronic system may have abnormal conditions such as undervoltage and overvoltage. Whether the electronic system can operate normally when the power module voltage is abnormal is an important aspect of measuring the voltage resistance performance of the electronic system. How to test the voltage resistance performance of the electronic system when the voltage is abnormal is crucial to improving the stability of the electronic system.

[0137] Based on the above problems, an embodiment of the present application proposes a testing method, which determines the test results according to the diagnostic information sent by the target system under the voltage test mode corresponding to the first trigger operation, so as to maintain and optimize the voltage resistance performance of the target system according to the test results of the target system corresponding to different voltage test modes, thereby improving the stability and reliability of the target system.

[0138] The testing method in the embodiment of the present application can be applied to a testing device, or to a hardware system or device configured with the testing device.

[0139] Figure 1A This is a schematic diagram of the test system architecture provided in the embodiment of the present application. Figure 1A As shown, the test system 100 for implementing the test method provided by the embodiment of the present application includes a control module 101, a power module 102, a single-chip microcomputer 103, a receiving module 104 and a display module 105. Among them, the control module 101 is used to set the voltage test mode, the voltage amplitude and the holding time corresponding to the voltage test mode through the trigger operation of the control. The power module 102 is used to step up or down the input initial voltage within the holding time corresponding to the voltage test mode according to the voltage test mode set by the control module 101, the voltage amplitude and the holding time corresponding to the voltage test mode to obtain a first voltage, and output the first voltage to the target system. The single-chip microcomputer 103 is used to control the timing corresponding to each module in the test system 100. The receiving module 104 is used to receive the diagnostic information output by the target system. The display module 105 is used to display the current voltage test mode, the voltage amplitude corresponding to the voltage test mode, the holding time corresponding to the voltage test mode and the test results.

[0140] The control module 101 includes a first control, a second control, a setting control and a start control, and the setting of the control can be realized by setting a button in the user interface or setting a physical key. Among them, the setting control is used to switch the currently operated option, and the currently operated option can include a voltage test mode option, a voltage amplitude option and a holding time option. In the case where the currently operated option is the voltage test mode option, the first control is used to receive an overvoltage mode trigger operation, and in response to the overvoltage mode trigger operation, the voltage test mode is set to the overvoltage test mode, and the second control is used to receive an undervoltage mode trigger operation, and in response to the undervoltage mode trigger operation, the voltage test mode is set to the undervoltage test mode; in the case where the currently operated option is the voltage amplitude option, the first control is used to increase the first value on the basis of the initial voltage amplitude to obtain the voltage amplitude corresponding to the voltage test mode, and the second control is used to reduce the second value on the basis of the initial voltage amplitude to obtain the voltage amplitude corresponding to the voltage test mode; in the case where the currently operated option is the holding time option, the first control is used to increase the holding time, and the second control is used to reduce the holding time, and milliseconds, seconds or other time units can be used as units for increasing or decreasing the holding time according to requirements. The start control is used to drive the power supply module 102 to generate a corresponding first voltage according to a set voltage test mode, a voltage amplitude and a holding time corresponding to the voltage test mode, and output the first voltage to the target system.

[0141] like Figure 1B As shown, the power supply module 102 includes an input module 1021, a buck-boost circuit 1022, a digital / analog conversion module 1023, a control unit 1024, an analog / digital conversion module 1025 and an output module 1026. Among them, the input module 1021 is used to connect to an external power supply. The buck-boost circuit 1022 is used to convert the input initial voltage into a first voltage and output it according to the voltage amplitude corresponding to the voltage test mode. The digital / analog conversion module 1023 is used to convert the voltage amplitude into an analog amplitude and transmit it to the buck-boost circuit 1022. The control unit 1024 is used to control the buck-boost circuit 1022 to output the first voltage according to the holding time corresponding to the voltage test mode. The analog / digital conversion module 1025 is used to obtain the first voltage output by the buck-boost circuit 1022, and convert the first analog amplitude corresponding to the first voltage into a digital amplitude, and correct the voltage amplitude according to the digital amplitude. The output module 1026 is used to output the first voltage output by the buck-boost circuit 1022 to the target system.

[0142] Figure 1C The overall system architecture diagram provided in the embodiment of the present application is shown in FIG. Figure 1CAs shown, in addition to the test system 100, the overall system also includes an access power supply 110 and a target system 120. The access power supply 110 is used to access an external power supply to output the external power supply to the power supply module 102 of the test system 100, and the power supply module 102 of the test system 100 adjusts the initial voltage corresponding to the input power supply to a first voltage and then outputs it to the target system 120. When the test system 100 does not test the target system 120, the power supply module 102 can directly output the initial voltage corresponding to the input power supply to the target system 120. When the test system 100 tests the target system 120, the target system 120 sends diagnostic information to the receiving module 104 of the test system 100 in real time.

[0143] In some embodiments, the test system 100 can be connected to a 12V power supply. The currently operated option is switched to a voltage test mode option by setting the control, and the voltage test mode is set to an overvoltage test mode or an undervoltage test mode by the first control or the second control.

[0144] Next, the currently operated option can be switched to the voltage amplitude option by setting the control, and the voltage amplitude can be increased or decreased within the voltage amplitude range by using the first control or the second control. The voltage amplitude range can be 0V to 85V.

[0145] The currently operated option is switched to the holding time option through the setting control, and the holding time is increased or decreased through the first control or the second control.

[0146] After the voltage test mode, the voltage amplitude and the holding time corresponding to the voltage test mode are set, the power supply module 102 can be driven by the start control to generate a corresponding first voltage according to the set voltage test mode, the voltage amplitude and the holding time corresponding to the voltage test mode, and output the first voltage to the target system.

[0147] When the power supply module 102 generates a corresponding first voltage according to the set voltage test mode, the voltage amplitude corresponding to the voltage test mode, and the holding time, the control unit 1024 can convert the digital quantity of the voltage amplitude into an analog quantity (corresponding to the analog amplitude in the above embodiment) through the digital / analog conversion module 1023, and control the buck-boost circuit 1022 through the control unit 1024 to convert the input 12V initial voltage into a first voltage. At the same time, the first voltage output by the buck-boost circuit 1022 is obtained through the analog / digital conversion module 1025, and the analog quantity of the first voltage (corresponding to the first analog amplitude in the above embodiment) is converted into a digital quantity (corresponding to the digital amplitude in the above embodiment), and the digital quantity of the first voltage is compared with the digital quantity of the voltage amplitude to see whether they are consistent. When the digital quantity of the first voltage is inconsistent with the digital quantity of the voltage amplitude, the digital quantity of the voltage amplitude is adjusted according to the digital quantity of the first voltage, so that the output first voltage is the same as the set voltage amplitude, thereby improving the accuracy of the test result.

[0148] After receiving the diagnostic information of the target system, the test result of the target system corresponding to the current voltage test mode can be determined according to the diagnostic information. The diagnostic information may include whether the target system is operating normally, whether a voltage anomaly is detected, the type of voltage anomaly, the duration of the voltage anomaly, the specific voltage value, the severity of the voltage anomaly and treatment suggestions, etc. The test result is the result of the withstand voltage performance of the target system in the corresponding voltage test mode determined according to the diagnostic information, and may include information related to the withstand voltage performance in the diagnostic information.

[0149] In some embodiments, multiple tests may be performed corresponding to the first voltage to determine a final test result based on the multiple test results, thereby improving the accuracy of the final test result.

[0150] After the holding time, the first voltage output by the buck-boost circuit 1022 is restored to 12V through the control unit 1024 .

[0151] Exemplarily, taking the holding time as 10 seconds, 10 seconds after the output module 1026 outputs the first voltage to the target system, the first voltage output by the buck-boost circuit 1022 is restored to 12V through the control unit 1024, and the initial voltage of 12V is output to the target system.

[0152] In the above embodiment, the test result is determined according to the diagnostic information sent in different voltage test modes of the target system, so as to maintain and optimize the voltage resistance performance of the target system according to the test result, thereby improving the stability and reliability of the target system.

[0153] In yet another embodiment of the present application, based on the same inventive concept as the above-mentioned embodiment, Figure 7A schematic diagram of a test device provided in an embodiment of the present application. Figure 7 As shown, the testing device 700 includes a first determining unit 701, an output unit 702 and a second determining unit 703, wherein:

[0154] A first determining unit 701 is configured to determine, in response to an acquired first trigger operation, a voltage test mode corresponding to the first trigger operation, a voltage amplitude and a holding time corresponding to the voltage test mode when an initial voltage is output to a target system according to the initial voltage amplitude;

[0155] An output unit 702 is configured to output a first voltage to the target system according to the holding time and the voltage amplitude in response to the acquired second trigger operation;

[0156] The second determining unit 703 is configured to obtain the diagnostic information sent by the target system, and determine the test result of the target system corresponding to the voltage test mode according to the diagnostic information.

[0157] In some embodiments, the first trigger operation includes an overvoltage mode trigger operation and an undervoltage mode trigger operation, and the voltage test mode includes an overvoltage test mode and an undervoltage test mode; the first determination unit 701 is also used to respond to the overvoltage mode trigger operation and determine that the voltage test mode corresponding to the first trigger operation is the overvoltage test mode; respond to the undervoltage mode trigger operation and determine that the voltage test mode corresponding to the first trigger operation is the undervoltage test mode.

[0158] In some embodiments, the first trigger operation includes a boost trigger operation and a decompression trigger operation; the first determination unit 701 is further used to determine a first numerical value in response to the boost trigger operation, and determine the voltage amplitude corresponding to the voltage test mode according to the first numerical value and the initial voltage amplitude; determine a second numerical value in response to the decompression trigger operation, and determine the voltage amplitude corresponding to the voltage test mode according to the second numerical value and the initial voltage amplitude.

[0159] In some embodiments, the output unit 702 is further configured to output the initial voltage to the target system according to the initial voltage amplitude.

[0160] In some embodiments, the output unit 702 is also used to convert the voltage amplitude in the voltage test mode into an analog amplitude through a digital / analog conversion module during the holding time; determine the first voltage according to the analog amplitude, and output the first voltage to the target system.

[0161] In some embodiments, the output unit 702 is further used to obtain a first analog amplitude of the first voltage through an analog / digital conversion module, convert the first analog amplitude into a digital amplitude, and correct the voltage amplitude according to the digital amplitude.

[0162] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0163] An embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.

[0164] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.

[0165] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.

[0166] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit, etc.

[0167] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.

[0168] Figure 8 A hardware entity diagram of a computer device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the hardware entity of the computer device 800 includes: a processor 801 and a memory 802, wherein the memory 802 stores a computer program that can be run on the processor 801, and the processor 801 implements the steps in the method of any of the above embodiments when executing the program.

[0169] The memory 802 stores computer programs that can be run on the processor. The memory 802 is configured to store instructions and applications executable by the processor 801. It can also cache data to be processed or processed by the processor 801 and various modules in the computer device 800 (for example, image data, audio data, voice communication data, and video communication data). This can be achieved through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0170] When the processor 801 executes the program, the steps of any of the above-mentioned test methods can be implemented. The processor 801 generally controls the overall operation of the computer device 800.

[0171] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the testing method of any of the above embodiments.

[0172] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0173] The processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a central processing unit, a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the functions of the processor may also be other, and the embodiments of the present application are not specifically limited.

[0174] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0175] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial numbers of the above-mentioned steps / processes does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0176] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0177] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0178] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0179] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0180] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0181] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0182] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A testing method, characterized in that: include: In a case where an initial voltage is output to a target system according to the initial voltage amplitude, in response to the acquired first trigger operation, determining a voltage test mode corresponding to the first trigger operation, a voltage amplitude and a holding time corresponding to the voltage test mode; In response to the acquired second trigger operation, outputting a first voltage to the target system according to the holding time and the voltage amplitude; The diagnostic information sent by the target system is acquired, and a test result of the target system corresponding to the voltage test mode is determined according to the diagnostic information.

2. The testing method according to claim 1, characterized in that: The first trigger operation includes an overvoltage mode trigger operation and an undervoltage mode trigger operation, and the voltage test mode includes an overvoltage test mode and an undervoltage test mode; The step of determining, in response to the acquired first trigger operation, a voltage test mode corresponding to the first trigger operation includes: In response to the overvoltage mode triggering operation, determining that the voltage test mode corresponding to the first triggering operation is the overvoltage test mode; In response to the undervoltage mode triggering operation, it is determined that the voltage test mode corresponding to the first triggering operation is the undervoltage test mode.

3. The testing method according to claim 2, characterized in that: The first trigger operation includes a boost trigger operation and a decompression trigger operation; when the initial voltage is output to the target system according to the initial voltage amplitude, in response to the acquired first trigger operation, determining the voltage amplitude corresponding to the voltage test mode includes: In response to the boost trigger operation, determining a first value, and determining a voltage amplitude corresponding to the voltage test mode according to the first value and the initial voltage amplitude; In response to the decompression triggering operation, a second value is determined, and a voltage amplitude corresponding to the voltage test mode is determined according to the second value and the initial voltage amplitude.

4. The testing method according to claim 1, characterized in that: In response to the acquired second trigger operation, after outputting the first voltage to the target system according to the holding time and the voltage amplitude, the method further includes: The initial voltage is output to the target system according to the initial voltage amplitude.

5. The testing method according to any one of claims 1 to 4, characterized in that: Outputting the first voltage to the target system according to the holding time and the voltage amplitude includes: During the holding time, the voltage amplitude in the voltage test mode is converted into an analog amplitude by a digital / analog conversion module; The first voltage is determined according to the simulation amplitude, and the first voltage is output to the target system.

6. The testing method according to claim 5, characterized in that: After outputting the first voltage to the target system, the method further includes: The first analog amplitude of the first voltage is acquired through an analog / digital conversion module, and the first analog amplitude is converted into a digital amplitude, and the voltage amplitude is corrected according to the digital amplitude.

7. A testing device, characterized in that: include: A first determining unit is used to determine, in response to the acquired first trigger operation, a voltage test mode corresponding to the first trigger operation, a voltage amplitude and a holding time corresponding to the voltage test mode when an initial voltage is output to a target system according to the initial voltage amplitude; An output unit, configured to output a first voltage to the target system according to the holding time and the voltage amplitude in response to the acquired second trigger operation; The second determining unit is configured to obtain the diagnostic information sent by the target system, and determine a test result of the target system corresponding to the voltage test mode according to the diagnostic information.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the testing method according to any one of claims 1 to 6 is implemented.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the testing method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the testing method according to any one of claims 1 to 6 is implemented.