Testing device and testing method for collector
A test device and test method technology, applied in the direction of instruments, signal transmission systems, etc., can solve the problems of inconvenient test work, waste of collector resources, etc., and achieve the effects of low cost, fast test, and portability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] This embodiment provides a test device for a collector, such as figure 1 As shown, it includes a test module 10, a protocol file management module 20, and a communication module 30,
[0066] The test module 10 is connected with the protocol file management module 20 and the communication module 30 respectively, and the test module is connected with the target collector through the communication module 30,
[0067] The protocol file management module 20 is configured to select predetermined stored protocol information, the protocol information includes a protocol type and a protocol file, the protocol file is a command line stored in a file format, and at least one of the protocol files is stored in the protocol file. above the command line,
[0068] The test module 10 is configured to read and analyze each command line stored in the protocol file from the protocol file selected by the protocol file management module 20, and obtain a test command corresponding to the co...
Embodiment 2
[0080] The test module 10 is the realization core of the test target collector function. Whether the test is accurate depends on whether the design of the module is reasonable. The test module 10 mainly realizes whether the actual response data and the expected response data of the target collector are the same. To complete this judgment , the test module 10 needs to perform the following process: ① firstly, the command line needs to be read out from the specification file; ② then the command line is analyzed according to the agreed rules, and the information of the command to be sent and the expected response data are obtained therefrom; ③ then, the command is sent to the target collector ; ④ Wait for the feedback from the target collector to obtain the actual response data; ⑤ Compare the obtained actual response data with the expected response data to determine whether the test is passed.
[0081] In view of the above, the present embodiment differs from Embodiment 1 in that,...
Embodiment 3
[0089] The difference between this embodiment and embodiment 2 is that, as Figure 4 As shown, the human-computer interaction module 40 is also included, and the human-computer interaction module 40 is respectively connected with the test module 10, the protocol file management module 20, and the communication module 30, and is used to obtain user input operation instructions and Display test information, and send the operation instruction to the protocol file management module 20, and the protocol file management module 20 is used to select predetermined stored protocol information according to the operation instruction. The operation instruction input by the user may include, but is not limited to, inputting a name of a protocol type suitable for the type of the target collector, inputting a table number of the target collector, and the like.
[0090] Can, but is not limited to, such as Figure 5 As shown, the human-computer interaction module 40 includes an input informati...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 