Test method of electromagnetic valve driver and related device
Through an automated solenoid valve driver testing method, the upper computer control instructions and signal acquisition are simplified, the test system structure and operation process are solved, the problems of low test complexity and degree of automation in the existing technology are solved, and an efficient and automated testing process is achieved.
Patent Information
- Application Number
- CN202510087806.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-20
- Publication Date
- 2025-05-09
AI Technical Summary
The testing methods of existing solenoid valve drivers are complex, requiring multiple hydraulic support controllers and a large number of test items. Operators need to have high professional skills and low degree of automation, resulting in high labor intensity and no quantitative test data, making it difficult to store and query.
A test method for solenoid valve driver is proposed. The upper computer sends control instructions, determines the channel to be tested, and obtains voltage signals and current signals. Based on these signals, whether the solenoid valve driver passes the test, and uploads the data to the database to generate a test result list.
The test system structure is simplified, the requirements for operators' professional skills are reduced, the degree of automated testing is improved, the labor intensity of testers is reduced, and quantitative test data is provided for easy storage and query.
Smart Images

Figure CN119960427A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automated testing technology, and in particular to a testing method and related devices for a solenoid valve driver. Background Art
[0002] Solenoid valves are often used to control electrical equipment in coal mines. Each solenoid valve usually requires a drive signal to control its opening or closing, and the solenoid valve driver is a device used to provide these control signals. The existing test method of the solenoid valve driver mainly relies on human-computer interaction. The operator manually operates the hydraulic support controller of the frame to control the hydraulic support controllers of the left and right adjacent frames to output control signals to the solenoid valve driver, driving the closing and opening of the solenoid valve group coil, thereby realizing the control of objects such as columns and jacks. The performance of the solenoid valve driver is judged by analyzing the control effect on objects such as columns and jacks. However, this test method has the following shortcomings: 1. To test a solenoid valve driver, at least 2 hydraulic support controllers, multiple groups (for example, 32 groups) of solenoid valves and several connectors are required, and the test system is complex. 2. The operator is required to be extremely skilled in operating the test system, complete the construction and wiring of the test system, and be able to skillfully use the hydraulic support controller to control the solenoid valve driver. 3. Since each solenoid valve needs to be tested, it takes up to 32 repeated operations to detect whether each group of solenoid valves can be driven and perform closing and opening actions. The operator needs to observe whether the solenoid valve is working, which may lead to fatigue and misjudgment. The degree of automated testing is low and the labor intensity of testers is high. 4. The test process is a qualitative test, which only relies on the tester to observe whether the solenoid valve group is working. There is no quantitative test data, which is difficult to store and query. Summary of the invention
[0003] The present disclosure aims to solve at least one of the technical problems existing in the prior art, namely, the complex composition of the test system, high requirements on the professional and technical ability of testers, low degree of automated testing, high labor intensity for testers, and difficulty in storage and query due to the lack of quantitative test data.
[0004] To this end, an object of the present disclosure is to provide a testing method for a solenoid valve driver, the testing method comprising:
[0005] In response to the control instruction sent by the host computer, determine the channel to be tested of the solenoid valve driver;
[0006] When the solenoid valve driver performs a target action, the voltage signal and the current signal of all the channels to be tested are obtained;
[0007] Based on the voltage signal and the current signal, it is determined whether the solenoid valve driver passes the test.
[0008] In some embodiments, the target action at least includes opening the channels to be tested in sequence, wherein when one of the channels to be tested is in an open state, the other channels to be tested are in a closed state.
[0009] In some embodiments, when the solenoid valve driver performs a target action, acquiring the voltage signal and the current signal of all the channels to be tested includes:
[0010] Acquire a first voltage value and a first current value of a first channel, where the first channel is a channel in an open state;
[0011] A second voltage value and a second current value of a second channel are acquired, where the second channel is a channel in a closed state.
[0012] In some embodiments, judging whether the solenoid valve driver passes the test based on the voltage signal and the current signal includes:
[0013] If the first voltage value and the first current value meet a first predetermined condition, it is determined that the first channel passes the test;
[0014] If the second voltage value and the second current value meet a second predetermined condition, it is determined that the second channel fails the test.
[0015] In some embodiments, if the first voltage value is greater than a first voltage preset threshold and the first current value is greater than a first current preset threshold, it is determined that the first channel passes the test;
[0016] If the second voltage value is greater than the second voltage preset threshold and the second current value is greater than the second current preset threshold, it is judged that the second channel has failed the test, wherein the first voltage preset threshold is greater than the second voltage preset threshold, and the first current preset threshold is greater than the second current preset threshold.
[0017] In some embodiments, if all channels to be tested pass the test, it is determined that the solenoid valve driver passes the test.
[0018] In some embodiments, the testing method includes: uploading the voltage signal data and the current signal data to a database and generating a test result list.
[0019] Another object of the present disclosure is to provide a testing device for a solenoid valve driver, comprising:
[0020] A determination module, used for determining a channel to be tested of the solenoid valve driver in response to a control instruction sent by a host computer;
[0021] An acquisition module, used for acquiring voltage signals and current signals of all the channels to be tested when the solenoid valve driver performs a target action;
[0022] A judgment module is used to judge whether the solenoid valve driver passes the test based on the voltage signal and the current signal.
[0023] Another object of the present disclosure is to provide a storage medium storing a computer program, wherein the computer program implements the steps of the above method when executed by a processor.
[0024] Another object of the present disclosure is to provide an electronic device, comprising at least a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above method when executing the computer program in the memory.
[0025] The present invention provides a method and a related device for testing a solenoid valve driver, which have the following beneficial effects:
[0026] The test method provided by the embodiment of the present disclosure first determines the channel to be tested of the solenoid valve driver, and then controls each channel to be tested to open in sequence. When each channel is opened in sequence, the voltage signal and current signal of the opened channel and the solenoid valve driver that remains closed are obtained in sequence, and the voltage signal and current signal data are analyzed to determine the test result of the solenoid valve driver. This test method does not require the setting of a companion test product. It only requires the solenoid valve driver to be tested to be connected to the host computer through the acquisition module. The test device corresponding to the test method has a simple structure, does not require the tester to have very professional operating skills and professional knowledge, and has a high degree of automation. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the embodiments of the present disclosure 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, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0028] Figure 1 is a flowchart of the steps of the testing method of the solenoid valve driver in the embodiment of the present disclosure;
[0029] Figure 2 It is a flowchart of the steps of the testing method of the solenoid valve driver in the embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] Various aspects and features of the present disclosure are described herein with reference to the drawings.
[0031] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of an embodiment. Other modifications within the scope and spirit of the present disclosure will occur to those skilled in the art.
[0032] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the general description of the present disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the present disclosure.
[0033] These and other characteristics of the present disclosure will become apparent from the following description of a preferred form of embodiment given as a non-limiting example, with reference to the attached drawings.
[0034] It should also be understood that, although the present disclosure has been described with reference to some specific examples, those skilled in the art will be able to realize many other equivalent forms of the present disclosure that have the features described in the claims and are therefore within the scope of protection defined thereby.
[0035] The above and other aspects, features and advantages of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
[0036] Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments claimed are merely examples of the present disclosure, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid obscuring the present disclosure with unnecessary or redundant details. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present disclosure in a variety of ways with substantially any suitable detailed structure.
[0037] The first embodiment of the present disclosure provides a method for testing a solenoid valve driver. Figure 1 and Figure 2 As shown, the test method includes:
[0038] S100: In response to a control instruction sent by a host computer, a channel to be tested of the solenoid valve driver is determined.
[0039] Each solenoid valve usually requires a drive signal to control its opening or closing, and the solenoid valve driver is a device used to provide these control signals. The number of functions of the solenoid driver reflects the driver's ability and flexibility in controlling the solenoid valve. Different application scenarios may require solenoid valve drivers with different function numbers to meet specific control requirements. The number of functions is a comprehensive indicator that reflects the driver's ability and flexibility in controlling the solenoid valve. The number of functions can specifically include the number of control channels, where the solenoid valve driver has a single-channel solenoid valve driver and a multi-channel solenoid valve driver. The single-channel solenoid valve driver means that each channel can independently control a solenoid valve. For example, an 8-function solenoid valve driver can control 8 solenoid valves at the same time. Multi-channel solenoid valves mean that each channel can control multiple solenoid valves. For example, for a dual-channel solenoid valve driver, an 8-function solenoid valve driver can control 16 solenoid valves at the same time. For different application scenarios, all the channels of the solenoid valve driver may not be fully used, that is, if the control system only needs to control a small number of solenoid valves, then it is not necessary to use all the channels on the solenoid valve driver. In the initial stage of the test, the number of test channels of the solenoid valve driver is determined by the host computer. During the test, only the channels to be tested can be detected and then stopped. Channels that are not put into use do not need to be tested, thus avoiding test errors caused by testing channels that are not put into use.
[0040] S200: When the solenoid valve driver performs a target action, the voltage signals and current signals of all the channels to be tested are acquired.
[0041] The target action here at least includes opening the channels to be tested in sequence, wherein when one of the channels to be tested is in an open state, the other channels to be tested are in a closed state.
[0042] S200 specifically includes:
[0043] S201: Acquire a first voltage value and a first current value of the first channel, where the first channel is in an open state.
[0044] Specifically, if the solenoid valve driver has 5 channels to be tested, one of the 5 channels to be tested is controlled to be opened, and the voltage signal and current signal of the opened channel are measured. Here, the opened channel is the first channel, the value of the voltage signal of the opened channel is the first voltage value, and the value of the current signal of the opened channel is the first current value.
[0045] S202: Acquire a second voltage value and a second current value of the second channel, where the second channel is a channel in a closed state.
[0046] Specifically, if the solenoid valve driver has 5 channels to be tested, one of the channels has been controlled to open in step S201, and the voltage signals and current signals of the other 4 unopened channels are measured in step S202. The unopened channel is the second channel, the value of the voltage signal of the unopened channel is the second voltage value, and the value of the current signal of the unopened channel is the second current value.
[0047] In step S2, the channels to be tested are opened in sequence and the first voltage value and the first current value of the opened channels, as well as the second voltage value and the second current value of the unopened channels are recorded, which provides a basis for subsequent determination of the test results. Specifically, take the example of a solenoid valve driver having 5 channels to be tested. After controlling one of the channels (for example, channel 1) to open, measure the voltage signal and current signal of channel 1, and measure the voltage signal and current signal of the channels (channels 2 to 5) that have not received control instructions and remain closed; continue to control channel 2 to open, measure the voltage signal and current signal of the opened channel 2, and measure the voltage signal and current signal of the unopened channel 1 and channels 3 to 5; further, according to the above-mentioned operating steps, after controlling channel 3 to open, measure the voltage signal and current signal of the opened channel 3, and measure the voltage signal and current signal of the unopened channel 1, channel 2, channel 4 and channel 5; if there are 5 channels to be tested, control all the channels to be tested to open in turn, and detect the corresponding voltage signal and current signal as well as the voltage signal and current signal of the unopened channel.
[0048] S300: Based on the voltage signal and the current signal, determine whether the solenoid valve driver passes the test.
[0049] Furthermore, the channel voltage of the solenoid valve driver has a direct impact on its performance, including the operating voltage range, voltage adaptability, driving capability, protection function, and signal output. Ensuring that the solenoid valve driver works at a suitable voltage is essential to maintaining its performance and extending its service life. The solenoid valve driver needs to work within a certain voltage range to ensure its performance. For example, the rated voltage of the solenoid valve driver is 12VDC, and it should work normally within the range of 90% to 110% of the rated voltage. This means that the solenoid valve driver needs to maintain stable performance within the voltage range of 10.8V to 13.2V. The voltage adaptability of the solenoid valve driver determines its reliability under different power supply conditions. The solenoid valve should work normally within the range of 90% to 110% of the rated voltage, which shows that the solenoid valve driver needs to be able to adapt to voltage fluctuations to ensure stability and reliability under different power supply conditions. The channel voltage of the solenoid valve driver directly affects its ability to drive the solenoid valve. The channel voltage of the solenoid valve driver also affects the stability and reliability of its signal output. For example: the driver has 8 solenoid pilot valve control ports, each port has two high and low level signal outputs, where the low level is ≤0.5V and the high level is ≥9V, which ensures the clarity and accuracy of the signal.
[0050] Furthermore, the channel current of the solenoid valve driver has a direct impact on its performance, including current control accuracy, constant current drive, power consumption and heat dissipation, protection function and response time and duty cycle. The current control accuracy of the solenoid valve driver is crucial to maintaining the precise position of the solenoid valve. Some solenoid valve drivers use constant current drive, such as the LDT-AQ1007P model, with a single-channel constant current source current range of 0 to 1.6A and an accuracy of less than or equal to 2%. This constant current drive method ensures that the solenoid valve can obtain a stable current under different working conditions, thereby ensuring its performance. In the holding mode, reducing the solenoid valve current can reduce power consumption and heat dissipation. The solenoid valve driver usually has an overheating protection function to prevent damage caused by excessive current. The response time and duty cycle of the solenoid valve driver are also related to the channel current. The TLV1805-Q1 can achieve a drive frequency and duty cycle of 1kHz, as well as a larger duty cycle range from 1% to 99%, which helps to achieve faster response time and more precise control. The accuracy of current feedback is crucial to adjusting the PWM signal to maintain the precise position of the solenoid valve. The INA253-Q1 device output is proportional to the change in current through the solenoid valve, which shows that current feedback is very important for controlling the performance of the solenoid valve. Therefore, the qualification of the solenoid valve driver is determined by detecting the channel voltage and channel current.
[0051] Among them, when a channel is opened, the voltage value of the channel should reach the normal working voltage value, and the current value of the channel should reach the normal working current value. The voltage value of other unopened channels is very small (almost 0), and the current value of other unopened channels is very small (almost 0). Therefore, the solenoid valve driver can be tested by detecting the current value and voltage value of each channel.
[0052] Specifically include:
[0053] It is determined in sequence whether the first voltage value and the first current value meet the first predetermined condition, and whether the second voltage value and the second current value meet the second predetermined condition. Among them, the first voltage preset threshold is the voltage value at which the first channel of the solenoid valve driver can work normally, and the first current preset threshold is the current value at which the first channel of the solenoid valve driver can work normally. The first predetermined condition means that the first voltage value is greater than the first voltage preset threshold and the first current value is greater than the first current preset threshold. The second voltage preset threshold is the voltage value of the second channel when the first channel is open (generally almost 0), and the second current preset threshold is the current value of the second channel when the first channel is open (generally almost 0). The second predetermined condition means that the second voltage value is greater than the second voltage preset threshold and the second current value is greater than the second current preset threshold, wherein the first voltage preset threshold is greater than the second voltage preset threshold, and the first current preset threshold is greater than the second current preset threshold.
[0054] Specifically, if the first voltage value and the first current value meet the first predetermined condition, it is determined that the first channel has passed the test. That is, if the first voltage value is greater than the first voltage preset threshold and the first current value is greater than the first current preset threshold, it means that the voltage value and current value of the opened channel meet the requirements for normal operation, and it is determined that the first channel has passed the test. If the first voltage value and the first current value do not meet the first predetermined condition, it is determined that the first channel has not passed the test. That is, if the first voltage value is less than or equal to the first voltage preset threshold, or the first current value is less than or equal to the first current preset threshold, it means that the voltage value and current value of the opened channel do not meet the requirements for normal operation, and it is determined that the first channel has not passed the test.
[0055] Further, if the second voltage value is less than or equal to the second voltage preset threshold and the second current value is less than or equal to the second current preset threshold, it means that the voltage value and current value of the closed channel are very small (almost 0), which is consistent with the state of the closed channel. At this time, it cannot be determined whether the closed channel has passed the test, and subsequent tests need to be continued to find out. If the second voltage value and the second current value meet the second predetermined condition, it is determined that the second channel has not passed the test. That is, if the second voltage value is greater than the second voltage preset threshold and the second current value is greater than the second current preset threshold, it means that the voltage value and current value of the closed channel are too large, and it may be in an abnormal open state, and it is determined that the second channel has not passed the test.
[0056] In this embodiment, all channels to be tested are opened in sequence, and the voltage and current data in the open state and the voltage and current data of the corresponding unopened channels are measured. Each channel is subjected to multiple rounds of testing, and it is repeatedly confirmed in the sequential operation which channels have passed the test and which channels have not passed the test, so as to facilitate analysis and determine the location of the faulty channel.
[0057] If it is determined that a channel to be tested or a solenoid valve driver fails the test, a warning message is issued, for example, the information that the test fails is sent to a buzzer, and the buzzer gives an alarm prompt in the form of sound or light.
[0058] If all the channels to be tested pass the test, it is determined that the solenoid valve driver passes the test. If any channel to be tested fails, it is determined that the solenoid valve driver fails the test.
[0059] S400: Upload the voltage signal data and the current signal data to a database and generate a test result list.
[0060] In addition to uploading the voltage signal data and current signal data during the test to the database, it also includes uploading the standby voltage and standby current of the solenoid valve driver to the database, integrating the voltage signal data, current signal data, standby voltage and standby current, and generating a test result list, which is convenient for saving the test results for future reference.
[0061] Here, the solenoid valve driver has channels 1, 2, etc. as an example for explanation. When channel 1 is turned on, if the first voltage value is greater than the first voltage preset threshold value and the first current value is greater than the first current preset threshold value, it means that channel 1 has passed the test. If the first voltage value is less than or equal to the first voltage preset threshold value and the first current value is less than or equal to the first current preset threshold value, it means that channel 1 has failed the test.
[0062] Based on the same inventive concept as the first embodiment, the second embodiment of the present disclosure provides a testing device for a solenoid valve driver, comprising:
[0063] A determination module, used for determining a channel to be tested of the solenoid valve driver in response to a control instruction sent by a host computer;
[0064] An acquisition module, used for acquiring voltage signals and current signals of all the channels to be tested when the solenoid valve driver performs a target action;
[0065] A judgment module is used to judge whether the solenoid valve driver passes the test based on the voltage signal and the current signal.
[0066] Furthermore, the acquisition module includes:
[0067] A first acquisition unit, used for acquiring a first voltage value and a first current value of a first channel when controlling the solenoid valve driver to perform a target action, wherein the first channel is a channel in an open state;
[0068] The second acquisition unit is used to acquire a second voltage value and a second current value of a second channel, where the second channel is a channel in a closed state.
[0069] Furthermore, the judging module includes:
[0070] A first judging unit, configured to judge that the first channel passes the test when the first voltage value and the first current value meet a first predetermined condition;
[0071] a second judging unit, configured to judge that the second channel fails the test when the second voltage value and the second current value meet a second predetermined condition;
[0072] Furthermore, the device also includes:
[0073] a third judging unit, configured to judge that the first channel passes the test when the first voltage value is greater than a first voltage preset threshold value and the first current value is greater than a first current preset threshold value;
[0074] A fourth judgment unit is used to judge that the second channel has failed the test when the second voltage value is greater than a second voltage preset threshold and the second current value is greater than a second current preset threshold, wherein the first voltage preset threshold is greater than the second voltage preset threshold, and the first current preset threshold is greater than the second current preset threshold.
[0075] Furthermore, the device also includes:
[0076] The test result determination module is used to determine that the solenoid valve driver passes the test when all channels to be tested pass the test.
[0077] Furthermore, the device also includes:
[0078] The warning module is used to issue a warning message when it is determined that the solenoid valve driver fails the test.
[0079] Furthermore, the device also includes:
[0080] The result generation module is used to upload the voltage signal data and the current signal data to a database and generate a test result list.
[0081] Among them, the test device also includes a solenoid valve module, where the solenoid valve driver is electrically connected to the solenoid valve module, and the solenoid valve module is used to simulate a real solenoid valve, serving as a load for the solenoid valve driver to form a loop, thereby providing the test device with the possibility to detect the current value of the channel to be tested.
[0082] Specifically, a dual-channel solenoid valve driver (with a function number of 5) is used as an example for description, wherein the first preset voltage threshold of the solenoid valve driver is 10 V, and the first preset current threshold is 100 mA.
[0083] First, the host computer issues a control instruction, and the determination module analyzes that the channel to be tested of the solenoid valve driver is 5 based on the function number of the solenoid valve driver being 5;
[0084] Next, control channel 1 of the solenoid valve driver to open, the first acquisition unit detects the voltage signal and current signal of channel 1, and the second acquisition unit detects the voltage signal and current signal of channels 2-5. If the judgment module determines that the voltage value of channel 1 is greater than 10v and the current value of channel 1 is greater than 100mA, it means that channel 1 of the solenoid valve driver has passed the test; if the judgment module determines that the voltage value of channel 1 is less than or equal to 0.5v and the current value of channel 1 is almost 0, it means that channel 1 of the solenoid valve driver has not passed the test. If channel 1 has not passed the test, the warning module issues a warning message; the second acquisition unit further detects the voltage signal and current signal of channels 2-5. If the judgment module determines that the voltage values of channels 2-5 are all less than 0.5v and the current is almost 0, continue to control channel 2 to open; if the judgment module determines that the voltage value of a channel among channels 2-5 is greater than 10v and the current reaches 100mA, it means that the channel has not passed the test; the warning module issues a warning message;
[0085] Further, control channel 2 to open, the first acquisition unit detects the voltage signal and current signal of channel 2, and the second acquisition unit detects the voltage signal and current signal of channels 1 and 3-5. If the judgment module determines that the voltage value of channel 2 is greater than 10v and the current value of channel 2 is greater than 100mA, it means that channel 2 of the solenoid valve driver has passed the test; if the judgment module determines that the voltage value of channel 2 is less than or equal to 0.5v and the current value of channel 2 is almost 0, it means that channel 2 of the solenoid valve driver has not passed the test. If channel 2 has not passed the test, the warning module issues a warning message; the second acquisition unit further detects the voltage signal and current signal of channels 1 and 3-5. If the judgment module determines that the voltage values of channels 1 and 3-5 are all less than 0.5v and the current is almost 0, continue to control channel 3 to open; if the judgment module determines that the voltage value of a channel among channels 1 and 3-5 is greater than 10v and the current reaches 100mA, it means that the channel has not passed the test; the warning module issues a warning message;
[0086] Further, channels 3 to 6 are opened in sequence, and the voltage and current of each channel are measured;
[0087] If all channels pass the test, it means that the solenoid valve driver passes the test.
[0088] In this embodiment, the channel to be tested of the solenoid valve driver is first determined, and then each channel to be tested is controlled to be opened in sequence. When each channel is opened in sequence, the voltage signal and current signal of the opened channel and the solenoid valve driver that remains closed are obtained in sequence, and the voltage signal and current signal data are analyzed to determine the test result of the solenoid valve driver. This test method does not require the setting of a companion test product. It only requires the solenoid valve driver to be tested to be connected to the host computer through the acquisition module. The test device corresponding to the test method has a simple structure, does not require the tester to have very professional operating skills and professional knowledge, and has a high degree of automation.
[0089] A third embodiment of the present disclosure provides a storage medium storing a computer program. When the computer program is executed by a processor, the steps of implementing the above method include:
[0090] S11: In response to the control instruction sent by the host computer, determine the channel to be tested of the solenoid valve driver;
[0091] S12: when the solenoid valve driver performs a target action, obtaining voltage signals and current signals of all the channels to be tested;
[0092] S13: Based on the voltage signal and the current signal, determine whether the solenoid valve driver passes the test.
[0093] Of course, other steps of the testing method of the above embodiment can also be used to implement the above embodiment.
[0094] In this embodiment, the channel to be tested of the solenoid valve driver is first determined, and then each channel to be tested is controlled to be opened in sequence. When each channel is opened in sequence, the voltage signal and current signal of the opened channel and the solenoid valve driver that remains closed are obtained in sequence, and the voltage signal and current signal data are analyzed to determine the test result of the solenoid valve driver. This test method does not require the setting of a companion test product. It only requires the solenoid valve driver to be tested to be connected to the host computer through the acquisition module. The test device corresponding to the test method has a simple structure, does not require the tester to have very professional operating skills and professional knowledge, and has a high degree of automation.
[0095] A fourth embodiment of the present disclosure provides an electronic device, the electronic device comprising at least a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the above method when executing the computer program on the memory, specifically comprising:
[0096] S21: In response to the control instruction sent by the host computer, determine the channel to be tested of the solenoid valve driver;
[0097] S22: when the solenoid valve driver performs a target action, obtaining voltage signals and current signals of all the channels to be tested;
[0098] S23: Based on the voltage signal and the current signal, determine whether the solenoid valve driver passes the test.
[0099] In this embodiment, the channel to be tested of the solenoid valve driver is first determined, and then each channel to be tested is controlled to be opened in sequence. When each channel is opened in sequence, the voltage signal and current signal of the opened channel and the solenoid valve driver that remains closed are obtained in sequence, and the voltage signal and current signal data are analyzed to determine the test result of the solenoid valve driver. This test method does not require the setting of a companion test product. It only requires the solenoid valve driver to be tested to be connected to the host computer through the acquisition module. The test device corresponding to the test method has a simple structure, does not require the tester to have very professional operating skills and professional knowledge, and has a high degree of automation.
[0100] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0101] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0102] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0103] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, 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 solution of this embodiment.
[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0106] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0107] In addition, the features of the embodiments shown in the drawings of the present application or the various embodiments mentioned in this specification are not necessarily understood as independent embodiments. Instead, each feature described in one example of an embodiment can be combined with one or more other desired features from other embodiments to produce other embodiments not described in words or with reference to the drawings.
[0108] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for testing a solenoid valve driver, characterized in that: include: In response to the control instruction sent by the host computer, determine the channel to be tested of the solenoid valve driver; When the solenoid valve driver performs a target action, obtaining voltage signals and current signals of all the channels to be tested; Based on the voltage signal and the current signal, it is determined whether the solenoid valve driver passes the test.
2. The method for testing a solenoid valve driver according to claim 1, characterized in that: The target action at least includes opening the channels to be tested in sequence, wherein when one of the channels to be tested is in an open state, the other channels to be tested are in a closed state.
3. The method for testing a solenoid valve driver according to claim 2, characterized in that: When the solenoid valve driver performs a target action, obtaining voltage signals and current signals of all channels to be tested includes: Acquire a first voltage value and a first current value of a first channel, where the first channel is a channel in an open state; A second voltage value and a second current value of a second channel are acquired, where the second channel is a channel in a closed state.
4. The method for testing a solenoid valve driver according to claim 3, characterized in that: Based on the voltage signal and the current signal, determining whether the solenoid valve driver passes the test includes: If the first voltage value and the first current value meet a first predetermined condition, it is determined that the first channel passes the test; If the second voltage value and the second current value meet a second predetermined condition, it is determined that the second channel fails the test.
5. The method for testing a solenoid valve driver according to claim 4, characterized in that: If the first voltage value is greater than a first voltage preset threshold and the first current value is greater than a first current preset threshold, it is determined that the first channel passes the test; If the second voltage value is greater than the second voltage preset threshold and the second current value is greater than the second current preset threshold, it is judged that the second channel has failed the test, wherein the first voltage preset threshold is greater than the second voltage preset threshold, and the first current preset threshold is greater than the second current preset threshold.
6. The method for testing a solenoid valve driver according to claim 4, characterized in that: If all channels to be tested pass the test, it is determined that the solenoid valve driver passes the test.
7. The method for testing a solenoid valve driver according to claim 1, characterized in that: The test method includes: The voltage signal data and the current signal data are uploaded to a database and a test result list is generated.
8. A testing device for a solenoid valve driver, characterized in that: include: A determination module, used for determining a channel to be tested of the solenoid valve driver in response to a control instruction sent by a host computer; An acquisition module, used for acquiring voltage signals and current signals of all the channels to be tested when the solenoid valve driver performs a target action; A judgment module is used to judge whether the solenoid valve driver passes the test based on the voltage signal and the current signal.
9. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. An electronic device, comprising at least a memory and a processor, wherein a computer program is stored in the memory, wherein: The processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program on the memory.