Test system, test device and electronic equipment
By designing a test system that includes a control unit, a test unit, and an input and output unit, the problems of high equipment cost and high error rate in coupler communication module testing are solved, and the efficiency and accuracy of automated testing are achieved.
Patent Information
- Application Number
- CN202420270578.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-01
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2034-02-01
AI Technical Summary
The automated testing of coupler communication modules on the market requires non-standardized customized equipment, resulting in high equipment costs and low manual testing efficiency and high error rates.
Design a test system, including a control unit, a test unit and an input and output unit. It establishes communication connections through network cable interfaces and communication ports, outputs test instructions and receives feedback, and generates test status, avoiding the high cost of non-standardized equipment and the labor of manual testing. High error rate.
It reduces the cost of test equipment, improves test efficiency, reduces the error rate, and achieves automation and accuracy of mechanized testing.
Smart Images

Figure CN221806999U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of testing, in particular to a testing system, a testing device and electronic equipment. Background Art
[0002] The automated testing of coupler communication modules on the market requires the use of non-standard customized equipment such as test fixtures and test automation equipment. If automated testing is performed on coupler communication modules produced in small batches or coupler communication modules for secondary testing, the equipment cost will be too high due to the need to configure corresponding test fixtures and test automation equipment. If manual testing is used to reduce equipment costs, the test efficiency will be low and the test error rate will be high. Utility Model Content
[0003] The main purpose of the utility model is to provide a test system, a test device and an electronic device, aiming to solve the technical problems of high equipment cost and high test error rate existing in the test stage of a coupler communication module.
[0004] To achieve the above object, the utility model provides a testing system, the testing system comprising:
[0005] A control unit, used for outputting a test instruction and receiving a test status fed back based on the test instruction;
[0006] A test unit, wherein the network cable interface of the test unit is connected to the control end of the control unit, and is used to establish a communication connection relationship between the device under test in the test unit and the control unit, and output the test instruction to the device under test based on the communication connection relationship;
[0007] An input-output unit, wherein the communication port of the input-output unit establishes a communication connection with the device under test based on the communication port of the test unit, is used to access the test signal generated by the device under test based on the test instruction, and generates a test status based on the test signal and returns it to the device under test, and feeds back the test status to the control unit through the device under test to output the test result.
[0008] Optionally, the control unit comprises an interaction device.
[0009] Optionally, the control unit comprises:
[0010] A programmable logic controller, wherein the programmable logic controller establishes a communication connection with the interactive device, and a control end of the programmable logic controller is connected to the network cable interface of the test unit, and is used to output the test instructions to the test unit and receive the test status returned by the test unit.
[0011] Optionally, the test unit is formed by cascading a number of device access modules, a network cable interface of the device access module is connected to a control end of the control unit, and a communication port of the device access module is connected to a communication port of the input / output unit.
[0012] Optionally, the device access module includes a module to be tested, a network cable interface of the module to be tested is connected to a control end of the control unit, and a communication port of the module to be tested is connected to a communication port of the input-output unit;
[0013] The module under test is used to access the device under test.
[0014] Optionally, the device access module further comprises a test module, a network cable interface of the test module is connected to another network cable interface of the module to be tested, and a communication port of the test module is connected to a communication port of the input-output unit;
[0015] The test module is used to test the communication function of the connected device under test.
[0016] Optionally, the input-output unit is composed of a plurality of input-output modules, and one of the input-output modules corresponds to one module under test or one test module, and is used to test the control function of the connected device under test.
[0017] Optionally, the test system further comprises a prompt module, which establishes communication connections with the module to be tested and the test module respectively, and is used to light up corresponding displays according to communication signals transmitted from the module to be tested and the test module.
[0018] In addition, to achieve the above-mentioned purpose, the utility model also provides a testing device, including a testing system; the testing system is used to test the equipment loaded with the testing device, and the testing device is configured as the testing system as described above.
[0019] In addition, to achieve the above-mentioned purpose, the utility model also provides an electronic device, including a testing device; the testing device includes a testing system for testing the electronic device, and the testing device is configured as the testing system described above.
[0020] In the technical scheme of the utility model, a test system is designed, which consists of a control unit, a test unit and an input-output unit. The network cable interface of the test unit is connected to the control end of the control unit, and is used to establish a communication connection relationship between the device under test connected to the test unit and the control unit, and access the test instructions output by the control unit to the device under test based on the communication connection relationship. The input-output unit, the communication port of the input-output unit establishes a communication connection relationship with the device under test based on the communication port of the test unit, and is used to access the test signal generated by the device under test based on the test instruction, and generate a test status based on the test signal and return it to the device under test, and return the test status to the control unit through the device under test, and output the test result, thereby avoiding the high cost of test equipment that needs to be tested through non-standard customized equipment. At the same time, through the mechanized testing of the test system, the problem of high test error rate in manual testing is avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the utility model 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 of the utility model. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0022] Figure 1 It is a module schematic diagram of the test system of the utility model;
[0023] Figure 2 It is a schematic diagram of the execution flow of the test system of the utility model;
[0024] Figure 3 It is a structural schematic diagram of the test system of the utility model;
[0025] Figure 4 It is a schematic diagram of the execution flow of the test system of the utility model.
[0026] Description of Figure Numbers:
[0027] Label name Label name 10 Control unit 220 Device access module 20 Test Unit 221 Module under test 30 Input and output unit 222 Test Module 110 Interactive devices 330 Input and output modules PLC Programmable Logic Controller
[0028] The realization of the purpose, functional features and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0030] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0031] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the utility model, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the utility model.
[0032] Reference Figure 1 As shown, Figure 1 The utility model provides a module schematic diagram of a test system, the test system comprising:
[0033] A control unit 10;
[0034] A test unit 20, wherein the network cable interface of the test unit 20 is connected to the control end of the control unit 10, and is used to establish a communication connection relationship between the device under test connected to the test unit 20 and the control unit 10, and transmit the test instructions output by the control unit 10 to the device under test based on the communication connection relationship;
[0035] An input-output unit 30, wherein the communication port of the input-output unit 30 establishes a communication connection with the device under test based on the communication port of the test unit 20, and is used for accessing the test signal generated by the device under test based on the test instruction, and generating a test status according to the test signal and returning it to the device under test, and returning the test status to the control unit 10 through the device under test, and outputting the test result, wherein the input-output unit in this embodiment is an I / O module, and the specific model may be RS485, etc.
[0036] In this embodiment, the control unit 10 is used to issue test instructions and access the test results returned based on the test instructions and display the test results. The test unit 20 is used to access the coupler communication module to be tested, that is, the device under test, and test the communication function of the device under test. The input and output unit 30 is used to test the control function of the device under test. For specific test procedures, refer to Figure 2 As shown: in step S1, the control unit 10 and the test unit 20 are electrically connected. After the control unit 10 obtains the station number of the coupler communication module connected to the test unit 20, it enters step S2. In step S2, the control unit 10 sends a test instruction to the test unit 20 connected to the coupler communication module to be tested. After receiving the test instruction, the coupler communication module to be tested sends the test instruction to the coupler communication module and the input-output unit 30 for communication function testing with which a connection relationship is established, and then enters step S3. In step S3, the coupler communication module and the input-output unit 30 for communication function testing respectively return the test results to the coupler communication module to be tested based on the received test instructions, and the control unit 10 displays based on the received test results.
[0037] Specifically, refer to Figure 3 As shown, the control unit 10 includes an interactive device 110. The operator can control the test system to enter the test phase through the set interactive device 110, and display the test results at the same time. The model of the interactive device used in this example is TK8072IP, and the model can be changed according to the actual usage scenario.
[0038] Furthermore, the control unit 10 comprises:
[0039] A programmable logic controller PLC, the programmable logic controller PLC establishes a communication connection with the interactive device 110, and the control end of the programmable logic controller PLC is connected to the network cable interface of the test unit 20, for outputting the test instructions to the test unit 20 and receiving the test results returned by the test unit 20, wherein the model of the programmable logic controller PLC in this example is S7-1200, and the specific model can be changed according to the actual usage scenario.
[0040] Specific process reference Figure 4 As shown in step S10 in the example, the operator starts the programmable logic controller PLC through the interactive device 110 to enter the test phase.
[0041] Furthermore, the test unit 20 is formed by cascading a plurality of device access modules 220 , the network cable interface of the device access module 220 is connected to the control end of the control unit 10 , and the communication port of the device access module 220 is connected to the communication port of the input / output unit 30 .
[0042] The device access module 220 in this embodiment is used to test a device to be tested, that is, a coupler communication module to be tested.
[0043] Furthermore, the device access module 220 includes a module to be tested 221, the network cable interface of the module to be tested 221 is connected to the control end of the control unit 10, the communication port of the module to be tested 221 is connected to the communication port of the input and output unit 30, and the module to be tested 221 is used to access the device to be tested.
[0044] The part used to access the coupler communication module to be tested is the module to be tested 221 in the device access module 220. The operator connects the coupler communication module to be tested to the module to be tested 221, and realizes the test of the coupler communication module to be tested through the connection relationship between the module to be tested 221 and other units in the test system. Among them, the model of the coupler communication module tested in this example is PN10-CP, and the model can be changed according to the actual test requirements.
[0045] Furthermore, the device access module 220 also includes a test module 222, the network cable interface of the test module 222 is connected to another network cable interface of the module to be tested 221, the communication port of the test module 222 is connected to the communication port of the input and output unit 30, and the test module 222 is used to test the communication function of the connected device to be tested.
[0046] Furthermore, the input-output unit 30 is composed of a plurality of input-output modules 330, one input-output module 330 corresponds to one module under test 221 or one test module 222, and is used to test the control function of the connected device under test. It should be noted that the input-output module in this example is an I / O (Input / Output) test module.
[0047] The test module 222 in this embodiment is used to access the coupler communication module for testing the communication function of the device under test, that is, to test the auxiliary device. The specific process is as follows. Figure 4As shown in step S20 in the figure, the programmable logic controller PLC allocates the station number of the coupler communication module connected to the device access module 220 through the program configuration protocol, and after establishing the corresponding communication connection, the programmable logic controller PLC sends the test instruction to the device under test connected to the test module 221 based on the connection relationship, and forwards the test instruction to the test auxiliary device connected to the test module 222 through the network cable interface of the device under test, and enters step S30. After receiving the test instruction, the test auxiliary device will forward the test instruction to the input-output module 330 corresponding to the connection of the test auxiliary device through the communication port. After receiving the test instruction, the input-output module 330 The test instruction is executed, and a test status is generated based on the execution result and returned to the test auxiliary device. The test auxiliary device then returns its station number and test status to the control unit 10 through the device under test, and enters step S40. The control unit 10 considers that the communication operations of the device under test for receiving and sending information can operate normally based on the received station number and test status. At this time, the control unit 10 generates a test result that the communication function of the device under test is normal. If the control unit 10 does not receive the test status or station number returned by the test auxiliary device, it is considered that there are communication information errors and omissions in the communication process between the device under test and the control unit 10. At this time, the control unit 10 generates a test result that the communication function is abnormal.
[0048] Specific process reference Figure 4 As shown in step S50, when the device under test forwards the test instruction to the auxiliary test device, it will also synchronously forward the test instruction through the communication port to the corresponding input-output module 330 to perform a control function test. After receiving the test instruction, the input-output module 330 executes the test instruction and generates a test status based on the execution result and returns it to the device under test. The device under test then returns its corresponding station number and the received test status to the control unit 10, and enters step S60. The control unit 10 considers that the device under test can perform normal control operations on the input-output module 330 based on the received station number and test status, and generates a test result indicating that the control function of the device under test is normal. If the control unit 10 only receives the station number of the device under test but does not receive the test status, it is considered that the device under test has failed to control the input-output module 330, and the control unit 10 generates a test result indicating that the control function is abnormal.
[0049] Furthermore, the test system also includes a prompt module, which establishes communication connections with the module to be tested 221 and the test module 222 respectively, and is used to light up corresponding lights according to the communication signals transmitted from the module to be tested 221 and the test module 222. When it is detected that the corresponding connected module to be tested 221 and the test module 222 have received the test instruction for more than a preset time and have not returned the test status to the control unit 10, the prompt module determines that there is an abnormality in the module to be tested 221 or the test module 222, and at this time, a red light is turned on to prompt the operator; if it is detected that the corresponding connected module to be tested 221 and the test module 222 have received the test instruction and returned the test status to the control unit 10 within the preset time, the prompt module determines that the module to be tested 221 and the test module 222 are operating normally, and at this time, a green light is turned on to prompt the operator.
[0050] The utility model also provides a test device, which includes a test system; the test system is used to test the equipment loaded with the test device, and the structure of the test system can refer to the above embodiment, which will not be described in detail here. As a matter of course, since the test device of this embodiment adopts the technical solution of the above test system, the test device has all the beneficial effects of the above test system.
[0051] The utility model also provides an electronic device, the electronic device includes a test device, the test device includes a test system for testing the electronic device, the structure of the test system can refer to the above embodiment, and will not be repeated here. As a matter of course, since the electronic device of this embodiment adopts the technical solution of the above test system, the electronic device has all the beneficial effects of the above test system.
[0052] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0053] The serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0054] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the utility model in essence or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the utility model.
[0055] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A testing system, characterized in that: The test system comprises: A control unit, used for outputting a test instruction and receiving a test status fed back based on the test instruction; A test unit, wherein the network cable interface of the test unit is connected to the control end of the control unit, and is used to establish a communication connection relationship between the device under test in the test unit and the control unit, and output the test instruction to the device under test based on the communication connection relationship; An input-output unit, wherein the communication port of the input-output unit establishes a communication connection with the device under test based on the communication port of the test unit, is used to access the test signal generated by the device under test based on the test instruction, and generates a test status based on the test signal and returns it to the device under test, and feeds back the test status to the control unit through the device under test to output the test result.
2. The test system according to claim 1, characterized in that: The control unit comprises an interaction device.
3. The test system according to claim 2, characterized in that: The control unit comprises: A programmable logic controller, wherein the programmable logic controller establishes a communication connection with the interactive device, and a control end of the programmable logic controller is connected to the network cable interface of the test unit, for outputting the test instructions to the test unit and receiving the test status returned by the test unit.
4. The test system according to claim 3, characterized in that: The test unit is formed by cascading a number of device access modules, the network cable interface of the device access module is connected to the control end of the control unit, and the communication port of the device access module is connected to the communication port of the input and output unit.
5. The test system according to claim 4, characterized in that: The device access module includes a module to be tested, a network cable interface of the module to be tested is connected to a control end of the control unit, and a communication port of the module to be tested is connected to a communication port of the input and output unit; The module under test is used to access the device under test.
6. The test system according to claim 5, characterized in that: The device access module further comprises a test module, a network cable interface of the test module is connected to another network cable interface of the module to be tested, and a communication port of the test module is connected to a communication port of the input-output unit; The test module is used to test the communication function of the connected device under test.
7. The test system according to claim 6, characterized in that: The input-output unit is composed of a plurality of input-output modules, one of the input-output modules corresponds to one module under test or one test module, and is used to test the control function of the connected device under test.
8. The test system according to claim 7, characterized in that: The test system further comprises a prompt module, which establishes communication connections with the module to be tested and the test module respectively, and is used for lighting up corresponding displays according to communication signals transmitted from the module to be tested and the test module.
9. A testing device, characterized in that: The testing device comprises the testing system according to any one of claims 1 to 8.
10. An electronic device, characterized in that: The electronic device comprises the testing device according to claim 9.
