Disclosure of utility model
The utility model mainly aims to provide a testing system, a testing device and electronic equipment, and aims to solve the technical problems of high equipment cost and high testing error rate in the coupler communication module testing stage.
To achieve the above object, the present utility model provides a test system comprising:
the control unit is used for outputting a test instruction and receiving a test state fed back based on the test instruction;
The network cable interface of the test unit is connected with the control end of the control unit and is used for establishing a communication connection relation between a device to be tested in the test unit and the control unit and outputting the test instruction to the device to be tested based on the communication connection relation;
And the communication port of the input/output unit is used for establishing a communication connection relation with the device to be tested based on the communication port of the test unit, accessing a test signal generated by the device to be tested based on the test instruction, generating a test state according to the test signal, returning the test state to the device to be tested, feeding the test state back to the control unit through the device to be tested, and outputting a test result.
Optionally, the control unit comprises an interactive device.
Optionally, the control unit includes:
And the control end of the programmable logic controller is connected with the network cable interface of the test unit and is used for outputting the test instruction to the test unit and receiving the test state returned by the test unit.
Optionally, the test unit is formed by cascading a plurality of device access modules, a network cable interface of the device access modules is connected with a control end of the control unit, and a communication port of the device access modules is connected with a communication port of the input/output unit.
Optionally, the device access module includes a module to be tested, a network cable interface of the module to be tested is connected with a control end of the control unit, and a communication port of the module to be tested is connected with a communication port of the input/output unit;
The module to be tested is used for accessing the device to be tested.
Optionally, the device access module further includes a test module, a network cable interface of the test module is connected with another network cable interface of the module to be tested, and a communication port of the test module is connected with a communication port of the input/output unit;
And the test module is used for testing the communication function of the accessed device to be tested.
Optionally, the input/output unit is composed of a plurality of input/output modules, and one input/output module corresponds to one module to be tested or one testing module and is used for testing the control function of the accessed device to be tested.
Optionally, the test system further includes a prompt module, where the prompt module establishes communication connection with the module to be tested and the test module respectively, and is configured to perform corresponding lighting display according to communication signals transmitted by the module to be tested and the test module.
In addition, in order to achieve the above purpose, the utility model also provides a testing device, comprising a testing system; the test system is used for carrying out test processing on equipment loaded with the test device, and the test device is configured as the test system.
In addition, in order to achieve the above purpose, the utility model also provides an electronic device, comprising a testing device; the test apparatus comprises a test system for performing a test process on an electronic device, the test apparatus being configured as the test system described above.
According to the technical scheme, the testing system is composed of a control unit, a testing unit and an input/output unit, a network cable interface of the testing unit is connected with a control end of the control unit and used for establishing a communication connection relation between a device to be tested and the control unit, which are connected into the testing unit, and transmitting a testing instruction output by the control unit to the device to be tested based on the communication connection relation, the input/output unit is used for establishing the communication connection relation between a communication port of the input/output unit and the device to be tested, and is used for connecting a testing signal generated by the device to be tested based on the testing instruction, generating a testing state according to the testing signal and returning the testing state to the control unit through the device to be tested, outputting a testing result, avoiding the problem that testing equipment cost is high due to testing through non-standardized ordered equipment, and meanwhile, through the mechanized testing of the testing system, the problem of high testing error rate of manual testing is avoided.
Detailed Description
The following description of the embodiments of the present utility model will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the utility model. All other embodiments, which can be made by those skilled in the art based on the embodiments of the utility model without making any inventive effort, are intended to be within the scope of the utility model.
It should be noted that, if directional indications (such as up, down, left, right, front, and rear … …) are included in the embodiments of the present utility model, the directional indications are merely used to explain the relative positional relationship, movement conditions, etc. between the components in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indications are correspondingly changed.
In addition, if there is a description of "first", "second", etc. in the embodiments of the present utility model, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present utility model.
Referring to fig. 1, fig. 1 is a schematic block diagram of a test system according to the present utility model, where the test system includes:
A control unit 10;
The network cable interface of the test unit 20 is connected with the control end of the control unit 10, and is used for establishing a communication connection relation between a device to be tested which is connected into the test unit 20 and the control unit 10, and transmitting a test instruction output by the control unit 10 to the device to be tested based on the communication connection relation;
And the communication port of the input/output unit 30 establishes a communication connection relationship with the device to be tested based on the communication port of the test unit 20, and is used for accessing a test signal generated by the device to be tested based on the test instruction, generating a test state according to the test signal, returning the test state to the device to be tested, returning the test state to the control unit 10 through the device to be tested, and outputting a test result, wherein the input/output unit in the embodiment is an I/O module, and the specific model can be RS485 or the like.
In this embodiment, the control unit 10 is configured to issue a test instruction, access a test result returned based on the test instruction, and display the test result, the test unit 20 is configured to access a coupler communication module to be tested, i.e. a device to be tested, and test a communication function of the device to be tested, and the input/output unit 30 is configured to test a control function of the device to be tested, and a specific test flow is shown in fig. 2: 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, the control unit 10 enters into 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 test instructions to the coupler communication module for communication function test and the input/output unit 30 which establish a connection relationship, respectively, the control unit 10 enters into step S3, and in step S3, the coupler communication module for communication function test and the input/output unit 30 respectively return test results to the coupler communication module to be tested based on the received test instruction, and the control unit 10 displays based on the received test results.
Specifically, referring to fig. 3, the control unit 10 includes an interaction device 110, and an operator may control the test system to enter a test stage through the set interaction device 110 and display a test result at the same time, where the model adopted by the interaction device in this example is TK8072IP, and specifically may perform model replacement according to an actual use scenario.
Further, the control unit 10 includes:
The programmable logic controller PLC is in communication connection with the interaction device 110, and a control end of the programmable logic controller PLC is connected with a network cable interface of the test unit 20, and is configured to output the test instruction to the test unit 20 and receive the test result returned by the test unit 20, where the model of the programmable logic controller PLC in this example is S7-1200, and specifically, the model can be changed according to an actual usage scenario.
Specific process referring to step S10 in fig. 4, the operator starts the programmable logic controller PLC through the interactive apparatus 110 to enter the test phase.
Further, the test unit 20 is formed by cascading a plurality of device access modules 220, the network cable interface of the device access modules 220 is connected with the control end of the control unit 10, and the communication port of the device access modules 220 is connected with the communication port of the input/output unit 30.
The device access module 220 in this embodiment is used for testing a device to be tested, i.e. a coupler communication module to be tested.
Further, the device accessing module 220 includes a module to be tested 221, a network cable interface of the module to be tested 221 is connected to a control end of the control unit 10, a communication port of the module to be tested 221 is connected to a communication port of the input/output unit 30, and the module to be tested 221 is used for accessing the device to be tested.
The part for accessing the coupler communication module to be tested is a module 221 to be tested in the device access module 220, an operator accesses the coupler communication module to be tested to the module 221 to be tested, and the coupler communication module to be tested is tested through the connection relation between the module 221 to be tested and other units in the test system, wherein the model of the coupler communication module to be tested in the example is PN10-CP, and the model can be specifically replaced according to actual test requirements.
Further, the device access module 220 further includes a test module 222, where a network cable interface of the test module 222 is connected to another network cable interface of the module to be tested 221, a communication port of the test module 222 is connected to a communication port of the input/output unit 30, and the test module 222 is configured to test the communication function of the device to be tested that is accessed.
Further, the Input/Output unit 30 is composed of a plurality of Input/Output modules 330, where one Input/Output module 330 corresponds to one module to be tested 221 or one test module 222, and is used for testing the control function of the connected device to be tested, and it should be noted that the Input/Output module in this example is an I/O (Input/Output) test module.
The test module 222 in this embodiment is used for accessing a coupler communication module that performs a communication function test on a device to be tested, i.e. a test auxiliary device, and the specific process is shown in step S20 in fig. 4, the programmable logic controller PLC allocates a station number of the coupler communication module that is accessed into the device access module 220 through a program configuration protocol, after a corresponding communication connection is established, the programmable logic controller PLC sends a test instruction to the device to be tested that is accessed into the module to be tested 221 based on a connection relationship, the test instruction is forwarded to the test auxiliary device that is accessed onto the test module 222 through a network interface of the device to be tested, and enters into step S30, the test auxiliary device, after receiving the test instruction, forwards the test instruction to the input/output module 330 that is correspondingly connected with the test auxiliary device through a communication port, the input/output module 330 executes the test instruction, and generates a test state according to the execution result, the test auxiliary device returns the station number and the test state to the test auxiliary device to the control unit 10, and the control unit 10 receives the station number and the test state to the test auxiliary device to the test device, and the test auxiliary device to the test device if the test state is received by the control unit 10, and the test state is considered to be normally, and the test device has a communication state is not normally received, if the test state is received in the test state is received, and the test information is received in the control unit is normally, and the test device is considered to have a communication state normally, if the test state is received in the test device is received, and the test device is normally has been received.
Referring to step S50 in fig. 4, the specific process is that the device to be tested forwards the test instruction to the auxiliary test device, and simultaneously forwards the test instruction to the input/output module 330 correspondingly connected with the auxiliary test device through the communication port for testing the control function, after receiving the test instruction, the input/output module 330 executes the test instruction, generates a test state according to the execution result and returns the test state to the device to be tested, and then returns the corresponding station number and the received test state to the control unit 10, and enters step S60, and the control unit 10 considers that the device to be tested can perform normal control operation on the input/output module 330 according to the received station number and test state, and generates a test result with normal control function of the device to be tested; if the control unit 10 receives only the station number of the device under test and does not receive the test status, the control unit 10 considers that the control of the input/output module 330 by the device under test fails, and generates a test result of abnormal control function.
Further, the test system further includes a prompting module, where the prompting module establishes communication connection with the to-be-tested module 221 and the test module 222 respectively, and is configured to perform corresponding lighting display according to communication signals transmitted by the to-be-tested module 221 and the test module 222, and when it is detected that the corresponding accessed to-be-tested module 221 and test module 222 access test instructions exceed a preset duration and do not return to the control unit 10 to a test state, the prompting module determines that an abnormal phenomenon exists in the to-be-tested module 221 or the test module 222, and at this time, a red bright lamp is used to prompt an operator; if it is detected that the test command corresponding to the connected module 221 and the test module 222 returns to the control unit 10 within the preset time, the prompting module determines that the module 221 and the test module 222 are in normal operation, and then a green and bright lamp is used for prompting an operator.
The utility model also provides a testing device, which comprises a testing system; the test system is used for performing test processing on the equipment loaded with the test device, and the structure of the test system can refer to the above embodiment and is not described herein again. It should be noted that, since the testing device of the present embodiment adopts the technical solution of the testing system described above, the testing device has all the beneficial effects of the testing system described above.
The utility model also provides an electronic device, which comprises a testing device, wherein the testing device comprises a testing system for testing the electronic device, and the structure of the testing system can refer to the embodiment and is not repeated herein. It should be noted that, since the electronic device of the present embodiment adopts the technical solution of the test system, the electronic device has all the beneficial effects of the test system.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present utility model are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present utility model may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present utility model.
The foregoing description is only of the preferred embodiments of the present utility model, and is not intended to limit the scope of the utility model, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.