Automatic fan testing method, device and equipment, storage medium and product

By reading the fan test information in the configuration file, the PWM value and speed of the fan are automatically controlled, which solves the problems of long test time and low efficiency in the existing fan test methods, realizes automated fan testing, improves production efficiency and reduces labor costs. Risk of misdetection.

CN118564483APending Publication Date: 2024-08-30EMDOORVR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410846138.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing fan testing methods have problems such as unstable fan hardware modules and the need to manually click on and off the test switch, resulting in long test times, low efficiency, and high human error rates.

Method used

By reading the fan test information in the preset configuration file, determine whether to turn on the automatic fan test service switch, set the PWM value and speed, conduct automated testing of the fan, record the reason and adjust the test time when it stops abnormally, and save it through the Service service and upload test results.

Benefits of technology

The fan test time is shortened, the test efficiency is improved, the risk of human error is reduced, and the factory production efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118564483A
    Figure CN118564483A
Patent Text Reader

Abstract

The invention discloses an automatic fan testing method and device, equipment, a storage medium and a product, and relates to the technical field of fan tests.The method comprises the steps that fan testing information in a preset configuration file is read, and the fan testing information comprises information whether a fan switch is turned on or not and fan nodes; judging whether the fan automatic test service switch needs to be turned on according to the fan switch turning-on information; and if the fan automatic test service switch needs to be turned on, the PWM value and the rotating speed corresponding to the fan node are set, and the fan is automatically tested. The fan switch and the fan node are configured in the configuration file in the production testing tool, then the program reads the switch information in the configuration file to judge whether the fan is started or not, the corresponding fan PWM and rotating speed are set for the fan node, the fan is controlled, and the fan is automatically tested, so that the factory testing period can be shortened, and the testing efficiency is improved. The production efficiency of factories is improved, and man-made mistaken testing and fool-proof testing are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fan testing technology, and in particular to a fan automated testing method, device, equipment, storage medium and product. Background Art

[0002] Existing fan testing methods have problems such as unstable fan hardware modules, fan not rotating, the need to manually click to turn the fan test switch on and off, long testing time, lack of fool-proofing, and complex factory testing environment. These factors lead to low fan testing efficiency, high human testing error rate, and increased labor costs.

[0003] Therefore, how to improve the fan test efficiency and shorten the test time is a problem that needs to be solved urgently. Summary of the invention

[0004] The main purpose of this application is to provide a fan automated testing method, device, equipment, storage medium and product, aiming to solve the technical problem that the existing fan testing method requires manual clicking to turn on and off the fan test switch, resulting in long testing time and low testing efficiency.

[0005] To achieve the above objectives, the present application proposes a fan automatic testing method, the method comprising:

[0006] Read fan test information in a preset configuration file, wherein the fan test information includes information on whether to turn on a fan switch and a fan node;

[0007] Determine whether to turn on the fan automatic test service switch according to the information about whether the fan switch is turned on;

[0008] If the fan automatic test service switch needs to be turned on, the PWM value and speed corresponding to the fan node are set to perform an automatic test on the fan.

[0009] In one embodiment, the fan test information also includes a fan test time. If the fan automatic test service switch needs to be turned on, the PWM value and speed corresponding to the fan node are set, and the step of automatically testing the fan includes:

[0010] If the fan automatic test service switch needs to be turned on, the startup duration, PWM value and speed of the fan node are set according to the fan test time;

[0011] The fan is automatically tested according to the startup duration, the PWM value and the rotation speed.

[0012] In one embodiment, after the step of automatically testing the fan according to the startup duration, the PWM value and the rotation speed, the method further includes:

[0013] When it is detected that the fan stops working abnormally, the reason for the abnormal stop is obtained and the actual test duration of the fan is recorded;

[0014] Determine whether the actual test duration reaches the fan test time;

[0015] If the actual test duration does not reach the fan test time, setting the stop time interval and restart duration according to the abnormal stop reason;

[0016] When the time for which the fan abnormally stops working reaches the stop time interval, the fan is automatically tested according to the restart time length, the PWM value and the rotation speed.

[0017] In one embodiment, if the fan automatic test service switch needs to be turned on, the PWM value and the rotation speed corresponding to the fan node are set, and after the step of automatically testing the fan, the method further includes:

[0018] The Service service is started, and the fan test result is saved through the Service service.

[0019] In one embodiment, after the step of saving the fan test result through the Service, the method further includes:

[0020] When the Service service is stopped, the fan test result is written into a test report file.

[0021] In one embodiment, after the step of writing the fan test result into a test report file when the Service service is stopped, the method further includes:

[0022] Upload the test report file to the backend MES server through the network request framework OkHttp;

[0023] The fan test is monitored in real time by the background MES server, and when an abnormality in the fan test is detected, the abnormality information is sent to the tester for processing.

[0024] In addition, to achieve the above-mentioned purpose, the present application also proposes a fan automatic testing device, the fan automatic testing device comprising:

[0025] A test information acquisition module is used to read the fan test information in the preset configuration file, wherein the fan test information includes whether the fan switch is turned on and the fan node;

[0026] A fan on judgment module is used to judge whether to turn on the fan automatic test service switch according to the information of whether to turn on the fan switch;

[0027] The fan automatic test module is used to set the PWM value and rotation speed corresponding to the fan node and perform automatic test on the fan if the fan automatic test service switch needs to be turned on.

[0028] In addition, to achieve the above-mentioned purpose, the present application also proposes a fan automation testing device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the fan automation testing method described above.

[0029] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the fan automatic testing method described above are implemented.

[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the fan automatic testing method described above are implemented.

[0031] The present application provides a fan automation test method, which reads the fan test information in a preset configuration file, the fan test information includes whether the fan switch information and the fan node are turned on; determines whether it is necessary to turn on the fan automation test service switch according to whether the fan switch information is turned on; if it is necessary to turn on the fan automation test service switch, sets the PWM value and speed corresponding to the fan node, and performs an automated test on the fan. Since the present application configures the fan switch and the fan node in the configuration file in the production test tool, and then the program reads the switch information in the configuration file to determine whether to turn on the fan, sets the corresponding fan PWM and speed for the fan node, controls the fan, and performs an automated test on the fan, it can shorten the factory test cycle, improve factory production efficiency, and reduce human error detection and foolproof testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0034] Figure 1 A schematic diagram of a flow chart provided for the first embodiment of the fan automatic testing method of the present application;

[0035] Figure 2 A flow chart of the second embodiment of the fan automatic testing method of the present application;

[0036] Figure 3 This is a schematic diagram of the module structure of the fan automatic testing device according to an embodiment of the present application;

[0037] Figure 4 Schematic diagram of the device structure of the hardware operating environment involved in the fan automatic testing method in the embodiment of the present application.

[0038] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0040] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0041] The main solution of the embodiment of the present application is: read the fan test information in the preset configuration file, the fan test information including whether to turn on the fan switch information and the fan node; determine whether it is necessary to turn on the fan automatic test service switch based on the information of whether to turn on the fan switch; if it is necessary to turn on the fan automatic test service switch, set the PWM value and speed corresponding to the fan node to perform automatic testing on the fan.

[0042] The existing fan testing methods have problems such as unstable fan hardware modules, fans not rotating, the need to manually click to turn on and off the fan test switch, long test time, no fool-proofing, and complex factory test environment, which leads to low fan test efficiency, high human test error rate, and increased labor costs. Therefore, how to improve fan test efficiency and shorten test time is a problem that needs to be solved urgently.

[0043] The present application provides a solution, which reads the fan test information in the preset configuration file, the fan test information includes whether the fan switch information and the fan node are turned on; determines whether it is necessary to turn on the fan automatic test service switch according to whether the fan switch information is turned on; if it is necessary to turn on the fan automatic test service switch, sets the PWM value and speed corresponding to the fan node, and performs an automatic test on the fan. Since the present application configures the fan switch and the fan node in the configuration file in the production test tool, and then the program reads the switch information in the configuration file to determine whether to turn on the fan, sets the corresponding fan PWM and speed for the fan node, controls the fan, and performs an automatic test on the fan, it can shorten the factory test cycle, improve factory production efficiency, and reduce human error detection and foolproof testing.

[0044] It should be noted that the execution subject of the method of this embodiment can be a computing service device with fan automation testing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc.; it can also be the above-mentioned fan automation testing equipment with the same or similar functions, and the fan Apk production testing tool is installed in the fan automation testing equipment. This embodiment and the following embodiments will be described by taking the fan automation testing equipment as an example.

[0045] Based on this, the present application embodiment provides a fan automatic testing method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the fan automatic testing method of the present application.

[0046] In this embodiment, the fan automatic testing method includes steps S10 to S30:

[0047] Step S10, reading fan test information in a preset configuration file, wherein the fan test information includes information on whether to turn on a fan switch and a fan node.

[0048] It is understandable that in this embodiment, the fan can be tested through the Apk production test tool. The production test Apk is an application package for production testing, which is designed to verify and ensure the integrity and reliability of the hardware and software functions of the factory products. The fan automation test program in this embodiment can be developed on the Android system. Pre-configure whether to turn on the fan switch information and fan node in the xml configuration file, and then open the tablet or VR application through the Apk production test tool to read the local EmTester_Configs.xml configuration file to turn on the fan switch information and fan node information.

[0049] Step S20: determining whether to turn on the fan automatic test service switch according to the information on whether to turn on the fan switch.

[0050] It should be understood that whether the fan automatic test service switch needs to be turned on can be flexibly controlled by turning on the fan switch information and fan node information in the xml configuration file. If the value of the configuration enableFanTest (whether to turn on the fan switch information) is 1, it means that the current device supports fan automatic test. If the value of the configuration enableFanTest (whether to turn on the fan switch information) is 0, it means that automatic test is not supported.

[0051] Step S30: If the fan automatic test service switch needs to be turned on, the PWM value and rotation speed corresponding to the fan node are set to perform an automatic test on the fan.

[0052] It is easy to understand that if the value of the configuration enableFanTest (whether to turn on the fan switch information) is 1, it means that the current device requires fan automatic test, then the PWM value and speed corresponding to the fan node are set to perform automatic test on the fan.

[0053] In a feasible implementation manner, the fan test information further includes the fan test time, and step S30 may include steps S301 to S302:

[0054] Step S301: If it is necessary to turn on the fan automatic test service switch, the startup duration, PWM value and rotation speed of the fan node are set according to the fan test time.

[0055] Step S302: performing an automatic test on the fan according to the startup duration, the PWM value and the rotation speed.

[0056] It should be understood that the fan test time can also be configured. By setting the startup duration, PWM value and speed of the fan node according to the fan test time to perform automated testing on the fan, the use of labor costs can be reduced and the test time of the test items can be saved.

[0057] In this implementation, by configuring the fan test time in the XML file of the production test Apk, the startup duration of the fan light is controlled, the use of labor costs is reduced, and the test time of the test items is saved, thereby improving production efficiency.

[0058] In a feasible implementation manner, after step S302, steps S303 to S306 may also be included:

[0059] Step S303, when it is detected that the fan stops working abnormally, the reason for the abnormal stop is obtained, and the actual test duration of the fan is recorded.

[0060] In actual operation, there may be factors such as high ambient temperature and high humidity, which may cause the fan to overheat and stop abnormally during the test, or sudden power failure and other abnormal stop reasons may cause the fan to stop working. The abnormal stop reason of the fan can be detected, and the actual test time of the current test item of the fan can be recorded.

[0061] Step S304, determining whether the actual test duration reaches the fan test time.

[0062] Step S305: If the actual test duration does not reach the fan test time, a stop time interval and a restart duration are set according to the abnormal stop reason.

[0063] It is understandable that if the actual test time of the fan does not reach the pre-set fan test time, it means that the test has not yet ended and the fan needs to be turned on again for testing. Different reasons correspond to different timings for turning the fan on again. For example, if the fan stops due to overheating, the temperature of the fan can be measured, and when the temperature drops to the preset temperature, the fan can be turned on again, and the stop time interval can be set to the time it takes for the fan to cool down to the preset temperature. If the fan stops abnormally due to an abnormal power outage, the power supply status can be monitored, and the stop time interval and restart time length can be set according to the actual situation. The restart time length is the difference between the fan test time and the actual test time length.

[0064] Step S306: When the time for the fan to abnormally stop working reaches the stop time interval, the fan is automatically tested according to the restart time length, the PWM value and the rotation speed.

[0065] It is easy to understand that after the fan stops working, when the stop time reaches the stop time interval, the fan can be restarted according to the restart duration, the PWM value and the speed control to continue the test.

[0066] In this embodiment, when it is detected that the fan stops working abnormally and the expected test duration is not reached, the fan is started again after the fan has stopped working for a period of time according to the cause of the abnormality and the actual test duration. This allows the fan to be automatically controlled to continue to complete the test according to the cause of the abnormality after the fan stops working abnormally.

[0067] This embodiment provides a fan automation test method, which reads the fan test information in a preset configuration file, the fan test information including whether the fan switch information and the fan node are turned on; determines whether it is necessary to turn on the fan automation test service switch according to whether the fan switch information is turned on; if it is necessary to turn on the fan automation test service switch, sets the PWM value and speed corresponding to the fan node, and performs an automated test on the fan. Since this application configures the fan switch and the fan node in the configuration file in the production test tool, and then the program reads the switch information in the configuration file to determine whether to turn on the fan, sets the corresponding fan PWM and speed for the fan node, controls the fan, and performs an automated test on the fan, it can shorten the factory test cycle, improve factory production efficiency, and reduce human error detection and foolproof testing.

[0068] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can refer to the above introduction, and will not be repeated later. Figure 2 After step S30, the fan automatic testing method further includes step S40:

[0069] Step S40, starting the Service service, and saving the fan test result through the Service service.

[0070] It should be noted that Service is one of the four major components in the Android system. It is a service program with a long life cycle, no visual interface, and runs in the background. For example, it can play music in the background, perform data analysis, etc. You can start the Service service and save the fan test results through the Service service.

[0071] In a feasible implementation manner, after step S40, step S50 may also be included:

[0072] Step S50, when the Service stops, writing the fan test result into a test report file.

[0073] It should be understood that since the Service does not have a visual interface, in order to facilitate testers to view the test results in a timely and convenient manner, the fan test results can be written to the text IO stream when the Service is stopped (for example, after killing the app process), and saved in a report file testReport.txt text file, and the test result content is PASS or NG.

[0074] In this embodiment, by writing the fan test results into the test report file when the Service is stopped, the test personnel can understand the test situation by viewing the test report file, thus avoiding the problem that the user cannot follow up the test results after the service is stopped.

[0075] In another feasible implementation manner, after step S50, steps S60 to S70 may also be included:

[0076] Step S60: Upload the test report file to the backend MES server through the network request framework OkHttp.

[0077] It is worth noting that the test report file can be uploaded to the background MES server through the network request framework OkHttp. OkHttp is a high-performance HTTP client library designed for Java and Android. OkHttp provides an efficient and flexible API for processing HTTP requests and responses. It is powerful and flexible in configuration. It is widely used in Java and Android applications, helping developers simplify the complexity of network programming, improve the efficiency of fan testing, and shorten the factory testing cycle.

[0078] Step S70: monitor the fan test in real time through the background MES server, and when the fan test is detected to be abnormal, send the abnormal information to the tester for processing.

[0079] It should be noted that the background MES server is the core server of the manufacturing execution system, which is responsible for real-time control, monitoring and scheduling of each link in the manufacturing process. This server integrates enterprise resources, interacts with production equipment and field systems, and provides complete production execution information and management functions. It helps enterprises realize digital management and optimization of the production process, improves production efficiency, reduces costs, and meets the market demand for high-quality products. Therefore, the fan test can be monitored in real time through the background MES server, and when the fan test is detected to be abnormal, the abnormal information will be sent to the tester for processing.

[0080] In this implementation, uploading the test report file through the network request framework OkHttp can help developers simplify the complexity of network programming, improve the efficiency of fan testing, and shorten the factory testing cycle. Real-time monitoring of fan testing through the background MES server helps testers to achieve digital management and optimization of the fan testing process, improve testing efficiency, and reduce testing costs.

[0081] In this embodiment, the fan test results are saved through the Service component of the Android system, and only the Service needs to be run in the background without developing a front-end visual interface, thereby reducing software development costs, making operations flexible, and improving fan test efficiency.

[0082] For example, in order to help understand the implementation process of the fan automatic testing method obtained by combining this embodiment with the above-mentioned embodiment 1, specifically:

[0083] After the system is powered on, first open the production test Apk application and run it, then load the xml file, turn on the automated test fan service node, start the FanService service, and then read the fan node in the local EmTester_Configs.xml configuration file, whether to turn on the fan switch, the fan test duration, etc. If the current PWM value is automatically written to the PWM value 255 through the file stream. After the test is completed, the test results are written to the sdcard / testReport.txt report, and the report content writes PASS if the fan function test passes, otherwise writes NG. Finally, after successfully connecting to wifi through the OkHttp network framework, the fan test results are uploaded to the MES background for monitoring, and the entire test process is completed. The beneficial effect is to shorten the factory test cycle, thereby improving factory production efficiency and reducing human error detection and fool-proofing tests.

[0084] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the fan automation testing method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0085] This application also provides a fan automatic testing device, please refer to Figure 3 , the fan automatic testing device comprises:

[0086] A test information acquisition module 10 is used to read fan test information in a preset configuration file, wherein the fan test information includes information on whether to turn on a fan switch and a fan node;

[0087] A fan on judgment module 20 is used to judge whether to turn on the fan automatic test service switch according to the information of whether to turn on the fan switch;

[0088] The fan automatic test module 30 is used to set the PWM value and rotation speed corresponding to the fan node and perform automatic test on the fan if the fan automatic test service switch needs to be turned on.

[0089] The fan automation test device provided by the present application adopts the fan automation test method in the above embodiment to solve the technical problem. Compared with the prior art, the beneficial effects of the fan automation test device provided by the present application are the same as the beneficial effects of the fan automation test method provided by the above embodiment, and other technical features in the fan automation test device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0090] The present application provides a fan automation test device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the fan automation test method in the above-mentioned embodiment one.

[0091] Reference below Figure 4 , which shows a schematic diagram of the structure of a fan automation test device suitable for implementing the embodiment of the present application. The fan automation test device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The fan automatic test device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0092] like Figure 4As shown, the fan automation test equipment may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the fan automation test equipment are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the fan automation test device to communicate with other devices wirelessly or wired to exchange data. Although the fan automation test device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0093] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0094] The fan automation test device provided by the present application adopts the fan automation test method in the above embodiment, which can solve the technical problems of fan automation test. Compared with the prior art, the beneficial effects of the fan automation test device provided by the present application are the same as the beneficial effects of the fan automation test method provided by the above embodiment, and the other technical features in the fan automation test device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0095] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0096] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present 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. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0097] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the fan automatic testing method in the above-mentioned embodiment.

[0098] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0099] The computer-readable storage medium may be included in the fan automated test device; or may exist independently without being assembled into the fan automated test device.

[0100] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the fan automation test equipment, the fan automation test equipment: reads the fan test information in the preset configuration file, and the fan test information includes whether to turn on the fan switch information and the fan node; determines whether it is necessary to turn on the fan automation test service switch based on the information whether to turn on the fan switch; if the fan automation test service switch needs to be turned on, sets the PWM value and speed corresponding to the fan node to perform automatic testing on the fan.

[0101] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0102] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0103] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0104] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned fan automation test method, and can solve technical problems. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the fan automation test method provided in the above-mentioned embodiment, and will not be elaborated here.

[0105] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned fan automatic testing method when executed by a processor.

[0106] The computer program product provided in this application can solve the technical problem. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the fan automatic testing method provided in the above embodiment, which will not be described in detail here.

[0107] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A fan automatic testing method, characterized in that: The method includes: Read fan test information in a preset configuration file, wherein the fan test information includes information on whether to turn on a fan switch and a fan node; Determine whether to turn on the fan automatic test service switch according to the information about whether the fan switch is turned on; If the fan automatic test service switch needs to be turned on, the PWM value and speed corresponding to the fan node are set to perform an automatic test on the fan.

2. The method according to claim 1, characterized in that The fan test information also includes the fan test time. If the fan automatic test service switch needs to be turned on, the PWM value and speed corresponding to the fan node are set, and the steps of automatically testing the fan include: If the fan automatic test service switch needs to be turned on, the startup duration, PWM value and speed of the fan node are set according to the fan test time; The fan is automatically tested according to the startup duration, the PWM value and the rotation speed.

3. The method according to claim 2, characterized in that After the step of automatically testing the fan according to the startup duration, the PWM value and the rotation speed, the method further includes: When it is detected that the fan stops working abnormally, the reason for the abnormal stop is obtained and the actual test duration of the fan is recorded; Determine whether the actual test duration reaches the fan test time; If the actual test duration does not reach the fan test time, setting the stop time interval and restart duration according to the abnormal stop reason; When the time for which the fan abnormally stops working reaches the stop time interval, the fan is automatically tested according to the restart time length, the PWM value and the rotation speed.

4. The method according to claim 1, characterized in that If the fan automatic test service switch needs to be turned on, the PWM value and the rotation speed corresponding to the fan node are set, and after the step of automatically testing the fan, the method further includes: The Service service is started, and the fan test result is saved through the Service service.

5. The method according to claim 4, characterized in that After the step of saving the fan test result through the Service service, the method further includes: When the Service service is stopped, the fan test result is written into a test report file.

6. The method according to claim 5, characterized in that After the step of writing the fan test result into a test report file when the Service service is stopped, the method further includes: Upload the test report file to the backend MES server through the network request framework OkHttp; The fan test is monitored in real time by the background MES server, and when an abnormality in the fan test is detected, the abnormality information is sent to the tester for processing.

7. A fan automatic testing device, characterized in that: The fan automatic testing device comprises: A test information acquisition module is used to read the fan test information in the preset configuration file, wherein the fan test information includes whether the fan switch is turned on and the fan node; A fan on judgment module is used to judge whether to turn on the fan automatic test service switch according to the information of whether to turn on the fan switch; The fan automatic test module is used to set the PWM value and rotation speed corresponding to the fan node and perform automatic test on the fan if the fan automatic test service switch needs to be turned on.

8. A fan automatic testing device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the fan automatic testing method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the fan automatic testing method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the fan automatic testing method according to any one of claims 1 to 6 are implemented.