CN114020550A - Serial port testing device - Google Patents

Serial port testing device Download PDF

Info

Publication number
CN114020550A
CN114020550A CN202111283653.1A CN202111283653A CN114020550A CN 114020550 A CN114020550 A CN 114020550A CN 202111283653 A CN202111283653 A CN 202111283653A CN 114020550 A CN114020550 A CN 114020550A
Authority
CN
China
Prior art keywords
serial port
module
test device
system control
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111283653.1A
Other languages
Chinese (zh)
Inventor
张鹏
滕昭跃
冉旭亚
胡杨建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JIANGNAN ELECTROMECHANICAL DESIGN RESEARCH INSTITUTE
Original Assignee
JIANGNAN ELECTROMECHANICAL DESIGN RESEARCH INSTITUTE
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by JIANGNAN ELECTROMECHANICAL DESIGN RESEARCH INSTITUTE filed Critical JIANGNAN ELECTROMECHANICAL DESIGN RESEARCH INSTITUTE
Priority to CN202111283653.1A priority Critical patent/CN114020550A/en
Publication of CN114020550A publication Critical patent/CN114020550A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention provides a serial port test device which comprises a serial port access link, wherein a voltage test module and/or a distance simulation module are/is connected in series on the serial port access link. The invention also provides serial port test equipment. The invention can quickly and conveniently measure the electrical characteristics of the serial port: signal voltage, transmission bandwidth, transmission delay between frame bytes; the communication data content can be monitored in real time, so that data analysis is facilitated; the communication data interaction function with the serial port equipment can be simulated by configuring the content of the communication protocol, and the method is suitable for serial port communication tests of different communication protocols.

Description

Serial port testing device
Technical Field
The invention relates to a serial port testing device.
Background
In system equipment, because serial ports have the characteristics of simple communication lines, good isolation and stable transmission delay, the communication among devices adopts a serial port mode which is common, and common communication modes comprise RS-232, RS-422 and RS-485. The method is also a user in serial port production test and troubleshooting, and the serial port bank fails at present. Serial ports are typically tested primarily from the hardware and protocol layers. The hardware layer is mainly used for testing the electrical characteristics of the serial port, such as signal voltage, transmission bandwidth, transmission distance, bit error rate and the like. The protocol layer mainly tests the consistency of communication protocols between application layers. Often, in the test and troubleshooting, the two test modes need to be coordinated and matched with each other to better analyze and evaluate the working state of the serial port.
At present, for testing electrical characteristics of a serial port, such as signal voltage, an external oscilloscope is generally adopted to test the signal voltage on a serial port communication cable, a test cable is generally manufactured according to aviation plug contact definition, and then the test cable is linked through the oscilloscope to carry out testing. For transmission bandwidth testing, only the amount of data bytes sent is often taken into account, without taking into account the transmission delay time between bytes, however some devices have higher requirements on the transmission delay between bytes. The transmission distance test usually adopts corresponding cable types and lengths to test, cables of various types and lengths are needed for different application scenes, and the test admission condition is high. When a serial port fault is checked, both sides of a serial port communication device are generally required to be started for testing, communication data on the serial port are identified by adopting a mode of reading waveform information by an oscilloscope, and the operation is complicated and is not intuitive; meanwhile, when the two parties exchange information and need to be triggered by specific conditions, the external test equipment is often adopted to simulate the function of the equipment for testing, and the requirement on the test equipment is high.
Disclosure of Invention
In order to solve the technical problem, the invention provides a serial port testing device which can quickly and conveniently measure the electrical characteristics of a serial port: signal voltage, transmission bandwidth, transmission delay between frame bytes.
The invention is realized by the following technical scheme.
The serial port test equipment provided by the invention comprises a serial port access link, wherein a voltage test module and/or a distance simulation module are/is connected in series on the serial port access link.
And the voltage testing module and/or the distance simulation module are/is externally connected with a system control module.
The system control module is connected with and controls the display module.
The system control module is externally connected with a network port.
And the serial port access link is also connected with a working mode switching module in series.
The working mode switching module is connected to the system control module through the FPGA data transceiver module.
The number of the serial ports is two.
The system control module controls a communication protocol of serial port communication.
The invention also provides a serial port test device, which adopts the serial port test device and comprises the following steps:
a) the system control module loads the content of the communication protocol and generates a protocol format analysis strategy;
b) reading a data bit information receiving and sending cache region of a serial port sent by the voltage testing module or the distance simulation module;
c) carrying out protocol format matching on the received and sent data bit information respectively by utilizing a protocol format analysis strategy;
d) if the protocol format matching is successful, displaying the successfully matched data content and the corresponding communication protocol name in a display module;
e) if the protocol format matching fails, displaying the matching failure data content and the recognition failure prompt information on a display module;
f) and c) identifying the residual content of the data bit information buffer area according to the steps c) to e).
The invention has the beneficial effects that: can be fast convenient measurement serial ports electrical characteristic: signal voltage, transmission bandwidth, transmission delay between frame bytes; the communication data content can be monitored in real time, so that data analysis is facilitated; the communication data interaction function with the serial port equipment can be simulated by configuring the content of the communication protocol, and the method is suitable for serial port communication tests of different communication protocols.
Drawings
FIG. 1 is a schematic connection diagram of the present invention;
fig. 2 is a timing diagram of a data frame in accordance with at least one embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further described below, but the scope of the claimed invention is not limited to the described.
Example 1
The serial port test device shown in fig. 1 includes a serial port access link, and a voltage test module and/or a distance simulation module are/is connected in series on the serial port access link.
Example 2
Based on the embodiment 1, the voltage testing module and/or the distance simulation module is externally connected with a system control module.
Example 3
Based on the embodiment 1, the system control module is connected with and controls the display module.
Example 4
Based on the embodiment 1, the system control module is externally connected with a network port.
Example 5
Based on the embodiment 1, the two serial ports are connected to the link and are also connected in series with the working mode switching module.
Example 6
Based on the embodiment 1, the working mode switching module is connected to the system control module through the FPGA data transceiver module.
Example 7
Based on embodiment 1, the number of serial ports is two.
Example 8
Based on embodiment 1, the system control module controls the communication protocol of serial communication.
Example 9
Based on embodiment 2, the present invention further provides a serial port testing device, including the following steps:
a) the system control module loads the content of the communication protocol and generates a protocol format analysis strategy;
b) reading a data bit information receiving and sending cache region of a serial port sent by the voltage testing module or the distance simulation module;
c) carrying out protocol format matching on the received and sent data bit information respectively by utilizing a protocol format analysis strategy;
d) if the protocol format matching is successful, displaying the successfully matched data content and the corresponding communication protocol name in a display module;
e) if the protocol format matching fails, displaying the matching failure data content and the recognition failure prompt information on a display module;
f) and c) identifying the residual content of the data bit information buffer area according to the steps c) to e).
Example 10
Based on the above embodiment, the method specifically includes:
firstly, as shown in fig. 1, a voltage test module is introduced at the serial signal terminal.
In this embodiment, the voltage test module mainly functions to complete the voltage test on the serial port information receiving and transmitting line, the transmission delay time test between serial port signal frames, and the data information collection on the information signal line. The voltage testing module tests the voltage of the area by identifying the logic 1 and 0 areas of the signals and sends the tested voltage value to the system control module; as shown in fig. 2, by identifying the stop bit of the nth frame and the start bit of the (N + 1) th frame, the duty ratio between the stop bit of the nth frame and the (N + 1) th frame is calculated, the delay time t is obtained, and the value of t is sent to the system control module; by collecting the signal line information, the identification serial port 1 receives and sends data bit information and sends the information to the system control module.
And secondly, introducing a distance simulation module at a serial port signal end.
In the embodiment, the distance simulation module mainly simulates attenuation and interference of the communication cable on the output signal, so that the voltage of the output signal is changed. The voltage variation relation of the signals along with the time variation is set through parameter configuration, and the distance simulation module controls the voltage value of the output signal according to the variation relation.
And thirdly, the serial port test equipment is provided with a network port.
In this embodiment, the serial port test device provides a network port to the outside, and sends the test information to the outside through the network port. The user can access the network port remote login serial port test device to set parameters of the serial port remote login serial port test device.
And fourthly, testing the data information content.
In this embodiment, the test data information includes: communication data information, communication data rate, input and output terminal voltage, transmission delay between bytes, and data quantity sent and received by the test equipment. The communication data information is data information sent and received by the serial port 1 of the serial port testing device. The communication data rate is the data sending rate of the serial port 1 of the serial port testing equipment and the data receiving rate of the serial port 1. The input and output voltages are voltages on the signal lines received and transmitted by the serial port 1. The inter-byte transmission delay refers to the transmission delay time between serial signal frames. The data volume sent and received by the test equipment refers to the total data volume sent and received by the serial port 1 of the test equipment.
And fifthly, the test data information checking and displaying function is realized.
In this embodiment, the current test data information may be displayed through the display module of the serial port test device, and the test history information may be referred to. The communication data information display steps are as follows:
a) the system control module loads the content of the communication protocol and generates a protocol format analysis strategy;
b) a read voltage test module sends a data bit information receiving and sending cache region of a serial port 1;
c) carrying out protocol format matching on the received and sent data bit information respectively by utilizing a protocol format analysis strategy;
d) if the protocol format matching is successful, displaying the successfully matched data content and the corresponding communication protocol name in a display module;
e) if the protocol format matching fails, displaying the matching failure data content and the recognition failure prompt information on a display module;
f) and c) identifying the residual content of the data bit information buffer area according to the steps c) to e).
And sixthly, the serial port test equipment has a remote login function, and test data information and configuration test parameters can be checked through remote login.
In this embodiment, the user can log in the parameter setting and test data monitoring interface of the serial port test device through the external computer through the network port of the serial port test device. A protocol content format, an error compensation quantity of the voltage testing module and a time change relation between the output voltage of the distance simulation module can be set on the parameter setting interface. The test data information in the test data monitoring interface comprises: communication data information, communication data rate, input and output terminal voltage, transmission delay between bytes, and data quantity sent and received by the test equipment.
And seventhly, configuring parameters. A content format of a communication protocol, an error compensation quantity of a voltage test module and a relation between output voltage of a distance simulation module and time change can be configured;
in this embodiment, the configuration steps of the content format of the communication protocol specification are as follows:
a) specifying a protocol specification format name;
b) configuring protocol content start and stop identifiers (optional);
c) configuring a protocol content length (optional);
d) configuration protocol content specifies field identification (optional).
The error compensation quantity of the voltage test module is the error generated by the voltage test module for voltage test. The system can set the amount of error compensation to be made for different voltage segments.
The distance simulation module outputs a voltage and time change relational expression, and the configuration steps are as follows:
a) adding a time period, and setting the voltage and time variation relation in the time period;
b) if the relation is linear, setting a relation between voltage and time variation;
c) if the relationship is nonlinear, the change rate of each sub-period can be set by dividing the current setting period into a plurality of sub-periods.
And eighthly, the system has independent and online working modes.
In this embodiment, the working modes are divided into independent and online working modes, and the working mode can be changed by controlling the working mode switching module. Under the independent working mode, the working mode switching module is disconnected with a signal line of the serial port 2 and is connected with a signal line of the FPGA data transceiver module; and the FPGA data transceiver module receives data signals on the serial port 1 and sends the data signals to the serial port 1. Under the independent working mode, the received message can be identified according to the configured protocol format, the data content of the configured protocol format is automatically fed back according to the message type, the protocol data information interaction between the device and the tested device is realized, and the method and the device can be suitable for carrying out communication data information, communication data rate, input and output end voltage and byte transmission delay test on the tested device under the condition of lacking auxiliary equipment (equipment which is actually physically connected with the tested device). Under the on-line working mode, the working mode switching module is disconnected with a signal line of the FPGA data receiving and transmitting module and is connected with a signal line of the serial port 2; the serial port test equipment monitors the interactive information of the tested equipment and the auxiliary equipment through an information number line connected between the serial port 1 and the serial port 2.

Claims (9)

1. A serial port test device is characterized in that: the device comprises a serial port access link, wherein a voltage testing module and/or a distance simulation module are/is connected in series on the serial port access link.
2. The serial port test device of claim 1, wherein: and the voltage testing module and/or the distance simulation module are/is externally connected with a system control module.
3. The serial port test device of claim 2, wherein: the system control module is connected with and controls the display module.
4. The serial port test device of claim 2, wherein: the system control module is externally connected with a network port.
5. The serial port test device of claim 1, wherein: and the serial port access link is also connected with a working mode switching module in series.
6. The serial port test device of claim 5, wherein: the working mode switching module is connected to the system control module through the FPGA data transceiver module.
7. The serial port test device of claim 1, wherein: the number of the serial ports is two.
8. The serial port test device of claim 2, wherein: the system control module controls a communication protocol of serial port communication.
9. A serial port test device is characterized in that: the serial port test device of claim 2, comprising the steps of:
a) the system control module loads the content of the communication protocol and generates a protocol format analysis strategy;
b) reading a data bit information receiving and sending cache region of a serial port sent by the voltage testing module or the distance simulation module;
c) carrying out protocol format matching on the received and sent data bit information respectively by utilizing a protocol format analysis strategy;
d) if the protocol format matching is successful, displaying the successfully matched data content and the corresponding communication protocol name in a display module;
e) if the protocol format matching fails, displaying the matching failure data content and the recognition failure prompt information on a display module;
f) and c) identifying the residual content of the data bit information buffer area according to the steps c) to e).
CN202111283653.1A 2021-11-01 2021-11-01 Serial port testing device Pending CN114020550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111283653.1A CN114020550A (en) 2021-11-01 2021-11-01 Serial port testing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111283653.1A CN114020550A (en) 2021-11-01 2021-11-01 Serial port testing device

Publications (1)

Publication Number Publication Date
CN114020550A true CN114020550A (en) 2022-02-08

Family

ID=80059238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111283653.1A Pending CN114020550A (en) 2021-11-01 2021-11-01 Serial port testing device

Country Status (1)

Country Link
CN (1) CN114020550A (en)

Similar Documents

Publication Publication Date Title
CN104297623A (en) Automatic test system for onboard cable integrity
CN110632410B (en) Intelligent debugging system for automatic equipment of intelligent substation and application method thereof
CN109143033A (en) A kind of whole star interface automatization test system
CN113514726B (en) Complete machine cable detection system and method
CN107257304B (en) Telecontrol point-aligning-free configuration test system
CN108489510A (en) Expandable type platform circuitry case automatization test system based on PXI buses
CN110609183A (en) IVI technology-based identification module and automatic test system of complete machine
CN113067745A (en) Aircraft 1394B bus communication simulation test platform
CN117579672A (en) Radio frequency automatic comprehensive test platform and test method based on python
CN111505593A (en) Frequency synthesis comprehensive test system and test method
CN112578197B (en) Automatic testing system and method for secondary circuit of transformer substation
CN108804301A (en) A kind of train control system software testing system and method based on E & FR data
CN114020550A (en) Serial port testing device
CN102445626A (en) Single board testing method and device
US20100156437A1 (en) Apparatus and Methods of Demonstrating Cabling Performance in Real Time
CN116827805A (en) Bus pressure testing method based on EPA bus load node
CN111459143A (en) Multi-serial port communication self-closed loop detection system and method
CN106569187A (en) Aging platform-based automatic monitoring system
CN108494479B (en) Automatic measuring device and method for light receiving sensitivity of intelligent terminal of intelligent substation
CN109347548B (en) Optical path integration test platform
CN114448854B (en) Communication link operation characteristic test system and test method
CN214729788U (en) Large and medium-sized fixed wing unmanned aerial vehicle ground simulation fault injection equipment
CN109358604A (en) A kind of control system input and output module device for testing functions and test method
US7471897B1 (en) Electrically looped back, fault emulating transceiver module
CN103592539A (en) Electrical quantity merging unit used for dynamic simulation system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination