Testing method for mining intrinsic safety power supply

Through the automated testing process of integrated testing tools and testing tooling, the problems of low efficiency and low accuracy of mining intrinsic safety power supply are solved, and efficient and accurate power supply testing is achieved, which is suitable for automated testing of mining intrinsic safety power supply.

CN120490887APending Publication Date: 2025-08-15TIANDI CHANGZHOU AUTOMATION +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510483440.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-17
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The existing intrinsic safety power supply test methods for mining are inefficient and have low accuracy, and cannot fully cover all functional modules and performance indicators. They are also costly, making it difficult to achieve batch inspection and continuous monitoring of high-frequency and high-precision parameters.

Method used

It adopts integrated testing tools and test tools, including upper computers, version control systems, continuous integration tools, construction tools and testing frameworks, and covers all functional modules and performance indicators of the intrinsic safety power supply through automated testing processes, and uses program control equipment and industrial cameras to perform automated testing.

Benefits of technology

It realizes automated testing of intrinsically safe power supplies for mining, improves testing efficiency and accuracy, shortens the test cycle, reduces labor costs, and has high reusability and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120490887A_ABST
    Figure CN120490887A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of power supply testing, in particular to a testing method for a mining intrinsic safety power supply, and the method comprises the steps: creating a testing case according to the testing demands of a tested mining intrinsic safety power supply product, and carrying out the code conversion of the testing case, thereby obtaining a first code file; obtaining a source code of the tested mining intrinsic safety power supply product, and modifying the source code based on the test case to obtain a second code file; storing the first code file and the second code file in a version control system; starting the test; obtaining a second code file from the version control system through the construction tool, compiling the second code file to obtain a binary file, packaging the binary file, and downloading the packaged binary file to the tested mining intrinsic safety power supply product; and obtaining the first code file from the version control system through the test framework, running the first code file, and testing the tested mining intrinsic safety power supply product. The mining intrinsic safety power supply testing system covers testing work of all function modules and performance indexes of a mining intrinsic safety power supply, automatic testing can be achieved, and testing efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power supply testing, and in particular to a testing method for an intrinsically safe power supply for mining. Background Art

[0002] Mining-grade intrinsically safe power supplies come in a variety of specifications and models, depending on their intrinsically safe output voltage, load capacity, and other technical parameters. These products have similar functions and, therefore, are highly similar in terms of function and performance testing.

[0003] Currently, during the R&D phase, software and hardware functional and performance testing of intrinsically safe power supply products for mining applications is mostly done manually. Testers first compile test cases based on the functional and performance requirements of the product design. They then verify each test case using visual observation or measurement tools, and finally manually produce a test report. If any issues are discovered during testing, they are fed back to the R&D staff for modification before manual testing is repeated.

[0004] The current manual testing method for mine intrinsically safe power supplies has the following disadvantages:

[0005] 1. Slow testing efficiency. Manual testing requires writing use cases one by one, manually operating instruments, and recording data. It is difficult to cope with complex scenarios such as multi-channel voltage / current detection and multi-operating condition verification, resulting in long test cycles and inability to implement batch testing.

[0006] 2. The test accuracy is low. Relying on visual observation and manual measurement tools is prone to reading errors. In addition, there is a lack of automated data collection and analysis functions, making it difficult to achieve continuous monitoring of high-frequency, high-precision parameters. In addition, manual operation is easily affected by subjective factors. Different testers performing the same use case may result in deviations in test results, making it difficult to ensure the consistency and traceability of test reports.

[0007] 3. High testing costs. During the development phase of mine-use intrinsically safe power supplies, hardware design and embedded software undergo frequent iterations, requiring cyclic testing. This leads to repetitive work for testers and a heavy workload, resulting in a significant waste of manpower and financial resources.

[0008] To solve the above problems, the existing technology has also proposed an automatic testing system. However, this testing system is mainly aimed at basic functional tests related to the factory inspection of mine-used intrinsically safe power supplies, and cannot fully cover the testing of all functional modules and performance indicators of mine-used intrinsically safe power supplies. The test needs to be combined with manual testing, which greatly affects the measurement efficiency and accuracy. Summary of the Invention

[0009] The technical problem to be solved by the present invention is: in order to solve the technical problem that the existing testing method requires manual participation, resulting in slow measurement efficiency and low measurement accuracy, the present invention provides a testing method for a mine-used intrinsically safe power supply, which can comprehensively cover the testing work of all functional modules and performance indicators of the mine-used intrinsically safe power supply, and can automate the testing, thereby improving the testing efficiency and measurement accuracy.

[0010] The technical solution adopted by the present invention to solve the technical problem is: a test method for a mine intrinsically safe power supply, the test system comprising: a host computer, a test tool and a tested mine intrinsically safe power supply product;

[0011] The tested intrinsically safe power supply product for mining and the test fixture are connected to the host computer, and the tested intrinsically safe power supply product for mining and the test fixture are connected;

[0012] The host computer is installed with an integrated testing tool, which includes a version control system, a continuous integration tool, a build tool, and a testing framework;

[0013] The method comprises the following steps:

[0014] Creating a test case according to the test requirements of the tested mining intrinsically safe power supply product, and performing code conversion on the test case to obtain a first code file;

[0015] Obtaining source code of the tested mining intrinsically safe power supply product, and modifying the source code based on the test case to obtain a second code file;

[0016] Storing the first code file and the second code file in a version control system;

[0017] Start the testing process;

[0018] Obtaining a second code file from the version control system through a build tool, compiling the file to obtain a binary file, packaging the binary file, and then downloading the binary file to a microprocessor of the tested mining intrinsically safe power supply product;

[0019] A first code file is obtained from the version control system through a test framework, and the first code file is run to test the tested mining intrinsically safe power supply product.

[0020] Further, specifically, the second code file includes the source code and integration test code of the mine intrinsically safe power supply product;

[0021] The source code of the mine-used intrinsically safe power supply product is the embedded software of the mine-used intrinsically safe power supply product;

[0022] The integrated test code is used to obtain parameters of the source code and set the mining intrinsically safe power supply product based on the parameters of the source code to assist in completing the test case.

[0023] Furthermore, specifically, the integration testing tool also includes a continuous integration tool, which monitors whether the first code file or the second code file of the version control system is updated through the continuous integration tool, and automatically starts the testing process if there is an update.

[0024] Further, specifically, the test framework performs tests on the tested mining intrinsically safe power supply product including: static code testing, unit testing, and integration testing;

[0025] The static code test is used to test the source code of the tested mining intrinsically safe power supply product;

[0026] The unit test is used to test a certain functional indicator of the tested mining intrinsically safe power supply product;

[0027] The integration test is a collection of all unit tests.

[0028] Furthermore, specifically, the test tooling includes:

[0029] A programmable AC power supply, wherein the programmable AC power supply adjusts a working state signal of the programmable AC power supply according to a first instruction of the test case and outputs a specified AC power signal, wherein the AC power signal is used for AC power input of the tested mining intrinsically safe power supply product;

[0030] a programmable relay, wherein the programmable relay adjusts a working state signal of the programmable relay according to a second instruction of the test case to control a specified channel of the tested mining intrinsically safe power supply product to be turned on or off;

[0031] a programmable electronic load, wherein the programmable electronic load adjusts operating parameters of the programmable electronic load according to a third instruction of the test case, and serves as a load for the tested mining intrinsically safe power supply product;

[0032] A programmable remote control, which outputs a specified infrared signal according to the fourth instruction of the test case, replacing the mechanical button-type infrared remote control of the tested intrinsically safe power supply for mining, and is used to start the tested intrinsically safe power supply for mining;

[0033] A programmable oscilloscope, wherein the programmable oscilloscope adjusts operating parameters of the programmable oscilloscope according to the fifth instruction of the test case to measure the internal power supply or current signal of the tested mining intrinsically safe power supply product;

[0034] a communication module, wherein the communication module adjusts the operating parameters of the communication module according to the sixth instruction of the test case, the communication module being configured as a station-level device connected to the tested intrinsically safe power supply product for mining, and measuring the communication protocol of the tested intrinsically safe power supply product for mining and transmitting test information;

[0035] an industrial camera, wherein the industrial camera captures image information of a liquid crystal screen on the tested intrinsically safe power supply product for mining according to the seventh instruction of the test case;

[0036] The programmable AC power supply, the programmable relay, the programmable remote control and the communication module are all connected to the tested mining intrinsically safe power supply product, and the programmable electronic load and the programmable oscilloscope are both connected to the programmable relay; the programmable AC power supply, the programmable relay, the programmable remote control, the programmable electronic load, the programmable oscilloscope, the communication module and the industrial camera are also connected to the host computer.

[0037] Furthermore, specifically, the functional index test of the tested intrinsically safe power supply product for mining includes: AC input voltage detection, fault detection, LCD display information detection and / or communication protocol detection.

[0038] Furthermore, specifically, the integrated test code is divided into three parts based on functions: interface driver function, test command framework and test execution framework;

[0039] An interface driver function is used for a data interaction channel for testing the tested intrinsically safe power supply product for mining, and for transmitting data frames between the tested intrinsically safe power supply product for mining and a PC server;

[0040] The test command framework is a link layer protocol for testing the tested intrinsically safe power supply product for mining, and performs parsing and packaging operations on the data frame;

[0041] The test execution framework is the application layer protocol for testing the tested mining intrinsically safe power supply product. It executes the test command according to the information parsed by the test command framework, returns the execution result to the test module for packaging, and finally sends it to the host computer for test analysis through the interface driver function.

[0042] Furthermore, specifically, the host computer is also installed with ORC software for identifying the LCD display information and realizing the detection of the LCD display information.

[0043] Furthermore, specifically, the start of the test process includes automatic triggering, timed triggering and manual triggering.

[0044] Furthermore, specifically, a test report is generated after the tested intrinsically safe power supply product for mining is tested, and the test report is sent to the R&D personnel via email.

[0045] The beneficial effect of the present invention is that the test method for the intrinsically safe power supply for mines of the present invention creates test cases according to the test requirements of the intrinsically safe power supply product for mines to be tested, and the test cases comprehensively cover the test work of all functional modules and performance indicators of the intrinsically safe power supply for mines, and the source code of the intrinsically safe power supply product for mines is modified based on the test cases. During measurement, the modified source code is recompiled into the intrinsically safe power supply product for mines to be tested, and through the cooperation between the host computer, the test tooling and the intrinsically safe power supply product for mines to be tested, automated testing can be achieved to ensure that the functions and performance of the intrinsically safe power supply product for mines to be tested meet the requirements, while avoiding omissions and mistakes that may occur in manual testing, and improving the accuracy and reliability of the test; in addition, the present invention can complete a large number of test tasks in a short time during testing, significantly shortening the test cycle and improving measurement efficiency. The present invention also has extremely high reusability and compatibility, and can realize function and performance testing of various models of equipment in the same series of intrinsically safe power supply products for mines. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The present invention will be further described below with reference to the accompanying drawings and examples.

[0047] Figure 1 2 is a schematic diagram of the structure of a test system according to an embodiment of the present invention.

[0048] Figure 2 It is a flow chart of the testing method according to an embodiment of the present invention.

[0049] Figure 3 Detailed structural diagram of the test system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The present invention will now be described in further detail with reference to the accompanying drawings, which are simplified schematic diagrams that illustrate the basic structure of the present invention in a schematic manner.

[0051] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, features defined as "first" or "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0052] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.

[0053] The present application embodiment provides a method for testing an intrinsically safe power supply for mining, such as Figure 1 As shown, the test system includes: a host computer, a test tool and a tested intrinsically safe power supply product for mining; the tested intrinsically safe power supply product for mining and the test tool are connected to the host computer, and the tested intrinsically safe power supply product for mining is connected to the test tool; wherein, the host computer is installed with an integrated test tool, and the integrated test tool includes a version control system, a continuous integration tool, a build tool and a test framework.

[0054] like Figure 2 As shown, the test method for mine intrinsically safe power supply includes the following steps:

[0055] Creating a test case according to the test requirements of the tested mining intrinsically safe power supply product, and performing code conversion on the test case to obtain a first code file;

[0056] Obtain the source code of the tested mining intrinsically safe power supply product, and modify the source code based on the test case to obtain a second code file;

[0057] Storing the first code file and the second code file in a version control system;

[0058] Start the testing process;

[0059] Obtain the second code file from the version control system through a build tool, compile it to obtain a binary file, package the binary file, and then download it to the microprocessor of the tested mining intrinsically safe power supply product;

[0060] The first code file is obtained from the version control system through the test framework, and the first code file is run to test the tested mining intrinsically safe power supply product.

[0061] In an embodiment, the second code file includes source code and integration test code of a mine intrinsically safe power supply product;

[0062] The source code of the mine intrinsically safe power supply product is the embedded software of the mine intrinsically safe power supply product;

[0063] The integration test code is used to obtain the parameters of the source code and set up the mine-use intrinsically safe power supply product based on the parameters of the source code to assist in completing the test case. Furthermore, the integration test code is divided into three parts based on function: interface driver function, test command framework, and test execution framework;

[0064] Interface driver function, used for the data interaction channel of the tested mine intrinsically safe power supply product, and for the transmission of data frames between the tested mine intrinsically safe power supply product and the PC server;

[0065] The test command framework is the link layer protocol for testing the tested mining intrinsically safe power supply product, and performs parsing and packaging operations on the data frames;

[0066] The test execution framework is the application layer protocol for testing the tested mining intrinsically safe power supply product. It executes the test command according to the information parsed by the test command framework, and returns the execution result to the test module for packaging. Finally, it is sent to the host computer for test analysis through the interface driver function.

[0067] In an embodiment, the version control system records changes in the contents of one or more first code files and second code files. In other words, the version control system can save each modified first code file and second code file, and supports functions such as viewing the modified history of the first code file and second code file or rolling back to the previous version of the first code file and second code file.

[0068] In an embodiment, the integration testing tool also includes a continuous integration tool, which monitors whether the first code file or the second code file of the version control system has been updated through the continuous integration tool. If so, the test process is automatically started. By monitoring whether the first code file or the second code file of the version control system has been updated through the continuous integration tool, and initiating the test if so, problems can be quickly discovered and located, ensuring that code changes do not introduce new defects. More test scenarios and use cases can be covered, including unit testing, integration testing, performance testing, etc., to ensure that the software's functions and performance meet the requirements. At the same time, omissions and mistakes that may occur in manual testing are avoided, and the accuracy and reliability of the test are improved.

[0069] In an embodiment, the testing framework performs tests on the tested intrinsically safe power supply product for mining including: static code testing, unit testing, and integration testing;

[0070] Static code testing is used to test the source code of the tested mining intrinsically safe power supply product;

[0071] Unit testing is used to test specific functional indicators of the tested intrinsically safe mining power supply product. These functional indicator tests include AC input voltage testing, fault detection, LCD display information testing, and / or communication protocol testing. Fault detection also includes load capacity testing or overcurrent protection testing.

[0072] Integration tests are the collection of all unit tests.

[0073] In an embodiment, the test tool comprises:

[0074] The programmable AC power supply adjusts the working status signal of the programmable AC power supply according to the first instruction of the test case and outputs the specified AC power signal. The AC power signal is used as the AC input of the tested mining intrinsically safe power supply product;

[0075] The program-controlled relay adjusts the working status signal of the program-controlled relay according to the second instruction of the test case, and controls the specified channel of the tested mining intrinsically safe power supply product to be turned on or off;

[0076] The programmable electronic load adjusts its operating parameters according to the third instruction of the test case and serves as the load of the tested mining intrinsically safe power supply product;

[0077] The programmable remote control outputs the specified infrared signal according to the fourth instruction of the test case, replacing the mechanical button-type infrared remote control of the tested mining intrinsically safe power supply product to start the tested mining intrinsically safe power supply product;

[0078] A programmable oscilloscope, which adjusts its operating parameters according to the fifth instruction of the test case to measure the internal power supply or current signal of the tested mining intrinsically safe power supply product;

[0079] The communication module adjusts the working parameters of the communication module according to the sixth instruction of the test case. The communication module is configured as a station-level device connected to the tested intrinsically safe power supply product for mining, and measures the communication protocol of the tested intrinsically safe power supply product for mining and transmits test information;

[0080] Industrial camera: The industrial camera takes pictures of the LCD screen of the tested mining intrinsically safe power supply according to the seventh instruction of the test case;

[0081] like Figure 3 As shown, the programmable AC power supply, programmable relay, programmable remote control and communication module are all connected to the tested mining intrinsically safe power supply product, the programmable electronic load and programmable oscilloscope are all connected to the programmable relay, and the programmable AC power supply, programmable relay, programmable remote control, programmable electronic load, programmable oscilloscope, communication module and industrial camera are also connected to the host computer.

[0082] In an embodiment, the test tooling also includes: a programmable AC voltage detection module, the programmable AC voltage detection module is connected to the programmable AC power supply, and the programmable AC voltage detection module is also connected to the host computer. The programmable AC voltage detection module is used to obtain the AC power signal output by the programmable AC power supply and transmit it to the host computer. The host computer detects whether the AC power signal output by the programmable AC power supply meets the requirements.

[0083] In the embodiment, ORC software is also installed on the host computer to identify the LCD display information and realize the detection of the LCD display information. The ORC software extracts the text and digital information of the LCD display information and compares it with the preset results to verify whether the LCD display function is correct, thereby completing the detection of the LCD display information.

[0084] In this embodiment, the test process can be initiated through automatic triggering, timed triggering, and manual triggering. Automatic triggering automatically triggers the test process by monitoring code files in the version control system using a continuous integration tool, reducing the need for manual intervention and improving measurement efficiency. Timed triggering triggers the test process through timed settings, suitable for scenarios requiring periodic verification of the core functions of the tested mining intrinsically safe power supply product. Manual triggering triggers the test process based on the tester's independent selection, suitable for customized testing requirements requiring manual decision-making. The combination of automatic triggering, timed triggering, and manual triggering forms a complete test coverage system.

[0085] In an embodiment, after the tested intrinsically safe power supply product for mining is tested, a test report is generated and sent to the R&D personnel via email. The test report includes compilation results, static code test results, and functional test results of the tested intrinsically safe power supply product for mining.

[0086] Taking the measurement of the AC power signal output by the programmable AC power supply as 220V as an example to further illustrate the embodiment of the present application, the host computer issues a second instruction according to the test case, and the programmable relay adjusts the working status signal of the programmable relay according to the second instruction of the test case, closes the relay interface connected to the power supply, and the host computer issues a first instruction according to the test case, and the programmable AC power supply adjusts the output 220V AC voltage of the AC power supply according to the first instruction of the test case to power the tested intrinsically safe power supply product for mining, and the LCD display of the tested intrinsically safe power supply product for mining shows that the current power supply voltage is 220V. The information of the LCD display is collected by an industrial camera, and the collected image is uploaded to the host computer. The ORC software of the host computer will recognize and read the text in the image, and compare the read text with the preset result to verify whether the LCD display function is correct, thereby completing the power supply test of the tested intrinsically safe power supply product for mining.

[0087] Taking fault detection testing as an example to further illustrate an embodiment of the present application, the host computer issues a second instruction according to the test case, and the programmable relay adjusts the working status signal of the programmable relay according to the second instruction of the test case, closes the battery input state of the tested intrinsically safe power supply product for mining, and supplies battery power to the tested intrinsically safe power supply product for mining. At the same time, a certain intrinsically safe power supply output interface of the tested intrinsically safe power supply product for mining is short-circuited, and the LCD screen of the tested intrinsically safe power supply product displays that the output voltage of this intrinsically safe power supply is 0V and the output current is 0mA. The information of the LCD display is collected by an industrial camera, and the collected image is uploaded to the host computer. The ORC software of the host computer will recognize and read the text in the image, and compare the read text with the preset result to verify whether the LCD display function is correct, thereby completing the fault detection test of the tested intrinsically safe power supply product for mining.

[0088] Taking the test communication protocol as an example to further illustrate the embodiment of the present application, the host computer issues a second instruction according to the test case, and the programmable relay adjusts the working status signal of the programmable relay according to the second instruction of the test case, closes the battery input state of the tested intrinsically safe power supply product for mining, and supplies battery power to the tested intrinsically safe power supply product for mining. The host computer issues a third instruction according to the test case, and the programmable electronic load adjusts the working parameters of the programmable electronic load to a constant current mode according to the third instruction of the test case, such as setting the current to 150mA. The host computer issues a sixth instruction according to the test case, and the communication module adjusts the working parameters of the communication module according to the sixth instruction of the test case, communicates data with the intrinsically safe power supply product for mining under test, and uploads the communication data of the intrinsically safe power supply product for mining under test to the host computer. The host computer compares the received data with the preset result to verify whether the communication data is consistent with the working status of the intrinsically safe power supply for mining under test, and completes the communication protocol test of the intrinsically safe power supply product for mining.

[0089] In summary, the test method for mine intrinsically safe power supply of the present embodiment creates test cases according to the test requirements of the tested mine intrinsically safe power supply product. The test cases comprehensively cover the test work of all functional modules and performance indicators of the mine intrinsically safe power supply, and the source code of the mine intrinsically safe power supply product is modified based on the test cases. During measurement, the modified source code is recompiled into the tested mine intrinsically safe power supply product. Through the cooperation between the host computer, the test tooling and the tested mine intrinsically safe power supply product, automated testing can be achieved to ensure that the functions and performance of the tested mine intrinsically safe power supply product meet the requirements, while avoiding omissions and mistakes that may occur in manual testing, and improving the accuracy and reliability of the test. In addition, the present invention can complete a large number of test tasks in a short time during testing, significantly shortening the test cycle and improving measurement efficiency. The present invention also has extremely high reusability and compatibility, and can realize function and performance testing of various models of equipment in the same series of mine intrinsically safe power supply products.

[0090] With the above-described preferred embodiments of the present invention as a guide, and with reference to the above description, relevant personnel are fully capable of making various changes and modifications without departing from the technical scope of this invention. The technical scope of this invention is not limited to the contents of the specification and must be determined according to the scope of the claims.

Claims

1. A test method for a mine intrinsically safe power supply, characterized in that: The test system includes: a host computer, a test fixture and a tested mining intrinsically safe power supply product; The tested intrinsically safe power supply product for mining and the test fixture are connected to the host computer, and the tested intrinsically safe power supply product for mining and the test fixture are connected; The host computer is installed with an integrated testing tool, which includes a version control system, a continuous integration tool, a build tool, and a testing framework; The method comprises the following steps: Creating a test case according to the test requirements of the tested mining intrinsically safe power supply product, and performing code conversion on the test case to obtain a first code file; Obtaining source code of the tested mining intrinsically safe power supply product, and modifying the source code based on the test case to obtain a second code file; Storing the first code file and the second code file in a version control system; Start the testing process; Obtaining a second code file from the version control system through a build tool, compiling the file to obtain a binary file, packaging the binary file, and then downloading the binary file to a microprocessor of the tested mining intrinsically safe power supply product; A first code file is obtained from the version control system through a test framework, and the first code file is run to test the tested mining intrinsically safe power supply product.

2. The test method for a mine intrinsically safe power supply according to claim 1, wherein: The second code file includes the source code and integration test code of the mine intrinsically safe power supply product; The source code of the mine-used intrinsically safe power supply product is the embedded software of the mine-used intrinsically safe power supply product; The integrated test code is used to obtain parameters of the source code and set the mining intrinsically safe power supply product based on the parameters of the source code to assist in completing the test case.

3. The test method for a mine intrinsically safe power supply according to claim 1, wherein: The integration testing tool further includes a continuous integration tool, which monitors whether the first code file or the second code file of the version control system is updated through the continuous integration tool. If there is an update, the testing process is automatically started.

4. The test method for a mine intrinsically safe power supply according to claim 1, wherein: The test framework tests the tested mining intrinsically safe power supply product including: static code testing, unit testing and integration testing; The static code test is used to test the source code of the tested mining intrinsically safe power supply product; The unit test is used to test a certain functional indicator of the tested mining intrinsically safe power supply product; The integration test is a collection of all unit tests.

5. The test method for a mine intrinsically safe power supply according to claim 4, wherein: The test tooling includes: A programmable AC power supply, wherein the programmable AC power supply adjusts a working state signal of the programmable AC power supply according to a first instruction of the test case and outputs a specified AC power signal, wherein the AC power signal is used for AC power input of the tested mining intrinsically safe power supply product; a programmable relay, wherein the programmable relay adjusts a working state signal of the programmable relay according to a second instruction of the test case to control a specified channel of the tested mining intrinsically safe power supply product to be turned on or off; a programmable electronic load, wherein the programmable electronic load adjusts operating parameters of the programmable electronic load according to a third instruction of the test case, and serves as a load for the tested mining intrinsically safe power supply product; A programmable remote control, which outputs a specified infrared signal according to the fourth instruction of the test case, replacing the mechanical button-type infrared remote control of the tested intrinsically safe power supply for mining, and is used to start the tested intrinsically safe power supply for mining; A programmable oscilloscope, wherein the programmable oscilloscope adjusts operating parameters of the programmable oscilloscope according to the fifth instruction of the test case to measure the internal power supply or current signal of the tested mining intrinsically safe power supply product; a communication module, wherein the communication module adjusts the operating parameters of the communication module according to the sixth instruction of the test case, the communication module being configured as a station-level device connected to the tested intrinsically safe power supply product for mining, and measuring the communication protocol of the tested intrinsically safe power supply product for mining and transmitting test information; an industrial camera, wherein the industrial camera captures image information of a liquid crystal screen on the tested intrinsically safe power supply product for mining according to the seventh instruction of the test case; The programmable AC power supply, the programmable relay, the programmable remote control and the communication module are all connected to the tested mining intrinsically safe power supply product, the programmable electronic load and the programmable oscilloscope are both connected to the programmable relay, and the programmable AC power supply, the programmable relay, the programmable remote control, the programmable electronic load, the programmable oscilloscope, the communication module and the industrial camera are also connected to the host computer.

6. The test method for a mine intrinsically safe power supply according to claim 5, characterized in that: The functional index test of the tested mining intrinsically safe power supply product includes: AC input voltage detection, fault detection, LCD display information detection and / or communication protocol detection.

7. The test method for a mine intrinsically safe power supply according to claim 2, wherein: The integrated test code is divided into three parts based on function: interface driver function, test command framework and test execution framework; An interface driver function is used for a data interaction channel for testing the tested intrinsically safe power supply product for mining, and for transmitting data frames between the tested intrinsically safe power supply product for mining and a PC server; The test command framework is a link layer protocol for testing the tested intrinsically safe power supply product for mining, and performs parsing and packaging operations on the data frame; The test execution framework is the application layer protocol for testing the tested mining intrinsically safe power supply product. It executes the test command according to the information parsed by the test command framework, returns the execution result to the test module for packaging, and finally sends it to the host computer for test analysis through the interface driver function.

8. The method for testing an intrinsically safe power supply for mining according to claim 6, wherein: The host computer is also installed with ORC software for identifying the information displayed on the LCD screen and realizing the detection of the information displayed on the LCD screen.

9. The test method for a mine intrinsically safe power supply according to claim 1, wherein: The initiation of the test process includes automatic triggering, timed triggering and manual triggering.

10. The test method for a mine intrinsically safe power supply according to claim 1, wherein: After the test of the tested mining intrinsically safe power supply product is completed, a test report is generated and the test report is sent to the R&D personnel via email.

Citation Information

Cited By

  • Intrinsic safety power supply transient energy test method

    CN120820878A