[go: up one dir, main page]

CN113872829B - Bidirectional data transmission testing device and testing method - Google Patents

Bidirectional data transmission testing device and testing method Download PDF

Info

Publication number
CN113872829B
CN113872829B CN202111135430.0A CN202111135430A CN113872829B CN 113872829 B CN113872829 B CN 113872829B CN 202111135430 A CN202111135430 A CN 202111135430A CN 113872829 B CN113872829 B CN 113872829B
Authority
CN
China
Prior art keywords
signal
data transmission
time point
controller
transmission direction
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.)
Active
Application number
CN202111135430.0A
Other languages
Chinese (zh)
Other versions
CN113872829A (en
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.)
Xian Yep Telecommunication Technology Co Ltd
Original Assignee
Xian Yep Telecommunication Technology Co Ltd
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 Xian Yep Telecommunication Technology Co Ltd filed Critical Xian Yep Telecommunication Technology Co Ltd
Priority to CN202111135430.0A priority Critical patent/CN113872829B/en
Publication of CN113872829A publication Critical patent/CN113872829A/en
Application granted granted Critical
Publication of CN113872829B publication Critical patent/CN113872829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Bidirectional Digital Transmission (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The embodiment of the application provides a bidirectional data transmission testing device and a testing method, wherein one end of a bidirectional data line is connected with a master device, the other end of the bidirectional data line is connected with a slave device, and the testing device comprises: the controller is used for respectively detecting the edge of the first signal and the edge of the second signal, determining the delay relation of the first signal and the second signal according to the detection result, and determining the current data transmission direction according to the delay relation. The testing device provided by the embodiment of the application can automatically identify the data transmission direction of the double-descending data line, improves the testing efficiency and improves the accuracy of the testing result.

Description

Bidirectional data transmission testing device and testing method
Technical Field
The embodiment of the application relates to the technical field of testing, in particular to a bidirectional data transmission testing device and a testing method.
Background
The standards association typically defines a protocol specification for each low-speed signal bus, which is a bidirectional data line, and the transmission direction of the bidirectional data line can be determined by the skilled master of the protocol specifications.
In the prior art, a manual identification method is usually adopted to determine the signal transmission direction of the bidirectional data line.
However, in the process of implementing the present application, the inventors found that the prior art has at least the following problems: the manual identification mode is adopted, the requirement on the capability of testers is high, the testers need to understand protocols completely and accurately, the manual mode is difficult to avoid, errors are easy to occur, and the efficiency is low.
Disclosure of Invention
The embodiment of the application provides a bidirectional data transmission testing device and a testing method, which are used for improving the testing efficiency of the data transmission direction of a bidirectional data line and the accuracy of a testing result.
In a first aspect, an embodiment of the present application provides a bidirectional data transmission testing apparatus, configured to be connected to a bidirectional data line, where one end of the bidirectional data line is connected to a master device, and the other end of the bidirectional data line is connected to a slave device; the test device includes: a first port, a second port and a controller;
the first port and the second port are both connected with the controller;
the first port is used for being connected with a first test point on the bidirectional data line, which is close to the main device, acquiring a first signal at the first test point and sending the first signal to the controller;
the second port is used for being connected with a second test point on the bidirectional data line, which is close to the slave device, acquiring a second signal at the second test point and sending the second signal to the controller;
the controller is configured to detect the first signal and the second signal, determine delay information of the first signal and the second signal according to a detection result, and determine a current data transmission direction according to the delay information.
In one possible design, the controller, when detecting the first signal and the second signal respectively, is specifically configured to:
detecting and obtaining a first time point when the edge of the first signal rises to a first preset proportion and a second time point when the edge of the second signal rises to the first preset proportion; the first preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal;
the controller, when determining delay information of the first signal and the second signal according to the detection result and determining the current data transmission direction according to the delay information, is specifically configured to:
if the first time point is earlier than the second time point, determining the second signal as a delayed signal of the first signal, and transmitting the current data transmission direction from the master device to the slave device;
and if the second time point is earlier than the first time point, determining the first signal as a delayed signal of the second signal, and determining the current data transmission direction as transmission from the slave equipment to the master equipment.
In one possible design, the controller, when detecting the first signal and the second signal respectively, is specifically configured to:
detecting and obtaining a third time point when the edge of the first signal is reduced to a second preset proportion and a fourth time point when the edge of the second signal is reduced to the second preset proportion; the second preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal;
the controller, when determining delay information of the first signal and the second signal according to the detection result and determining the current data transmission direction according to the delay information, is specifically configured to:
if the third time point is earlier than the fourth time point, determining the second signal as a delayed signal of the first signal, and transmitting the current data transmission direction from the master device to the slave device;
and if the fourth time point is earlier than the third time point, determining the first signal as a delayed signal of the second signal, and determining that the current data transmission direction is from the slave device to the master device.
In one possible design, the test apparatus further includes: a display module;
the controller is connected with the display module and is also used for sending the data transmission direction to the display module;
and the display module is used for displaying the data transmission direction.
In one possible design, the display module includes a display;
the display is used for displaying that the current operation is a read operation when the current data transmission direction is from the slave device to the master device, and is also used for displaying that the current operation is a write operation when the current data transmission direction is from the master device to the slave device.
In one possible design, the controller is a microprocessor, and the testing apparatus further includes: a storage module;
the storage module is connected with the microprocessor and used for expanding the storage capacity of the microprocessor.
In one possible design, the controller is a complex programmable logic device CPLD, and the testing apparatus further includes: a Joint Test Action Group (JTAG) connector;
and the JTAG connector is connected with the CPLD and is used for providing a burning program interface for the CPLD.
In one possible design, the test apparatus further includes: an oscillation module;
and the oscillation module is connected with the controller and is used for providing a working clock for the controller.
In a possible design, the first port is specifically configured to be connected to a first test point on the bidirectional data line close to the master device through a first test line, the second port is specifically configured to be connected to a second test point on the bidirectional data line close to the slave device through a second test line, and a length of the first test line is equal to a length of the second test line.
In a second aspect, an embodiment of the present application provides a method for testing a data transmission direction of a bidirectional data line, which is applied to a testing apparatus as described in the first aspect and various possible designs of the first aspect, and the method includes:
the first port acquires a first signal at the first test point and sends the first signal to a controller;
the second port acquires a second signal at the second test point and sends the second signal to the controller;
the controller detects the first signal and the second signal respectively, determines delay information of the first signal and the second signal according to a detection result, and determines the current data transmission direction according to the delay information.
The device is used for being connected with a bidirectional data line, one end of the bidirectional data line is connected with a master device, and the other end of the bidirectional data line is connected with a slave device, and the testing device comprises: the controller comprises a controller, a first port and a second port, wherein the first port and the second port are connected with the controller, the first port is used for being connected with a first test point, close to the master device, on the bidirectional data line, obtaining a first signal at the first test point and sending the first signal to the controller, the second port is used for being connected with a second test point, close to the slave device, on the bidirectional data line, obtaining a second signal at the second test point and sending the second signal to the controller, the controller is used for respectively detecting the first signal and the second signal, determining delay information of the first signal and the second signal according to a detection result, and determining the current data transmission direction according to the delay information. The testing device provided by the embodiment of the application can automatically identify the data transmission direction of the double-drop data line according to the detection result by carrying out edge detection on the signals of the two testing points on the collected bidirectional data line, so that the testing efficiency is improved, and the accuracy of the testing result is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and those skilled in the art can obtain other drawings without inventive labor.
Fig. 1 is an application scenario diagram of a bidirectional data transmission testing apparatus according to an embodiment of the present application;
fig. 2 is a first schematic structural diagram of a bidirectional data transmission testing apparatus 20 according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a principle of detecting a rising edge of a first signal and a second signal according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating a falling edge detection principle of a first signal and a second signal according to an embodiment of the present disclosure;
fig. 5 is a second schematic structural diagram of the bidirectional data transmission testing apparatus 20 according to the embodiment of the present application;
fig. 6 is a schematic structural diagram three of the bidirectional data transmission testing apparatus 20 according to the embodiment of the present application;
fig. 7 is a schematic structural diagram of a bidirectional data transmission testing apparatus 20 according to an embodiment of the present application;
fig. 8 is a schematic structural diagram five of the bidirectional data transmission testing apparatus 20 according to the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
When testing a circuit, it is often necessary to test the data transmission direction of a low-speed bus connected between a master device and a slave device, so as to know when the master device performs a read operation and when the master device performs a write operation on the slave device when the circuit is working.
In the prior art, a manual identification method is usually adopted to determine the signal transmission direction of the bidirectional data line. However, in the process of implementing the present application, the inventors found that the prior art has at least the following problems: the manual identification mode is adopted, the requirement on the capability of testers is high, the testers need to understand protocols completely and accurately, the manual mode is difficult to avoid, errors are easy to occur, and the efficiency is low.
In order to solve the above problems, the inventors have studied and found that the delay relationship between signals at different test points of a bidirectional data line changes with the change of the data transmission direction. Based on this, the embodiment of the application provides a bidirectional data transmission testing device, and this testing device can automatic identification two data transmission direction that descend the data line according to the testing result through carrying out the border detection to the signal of two test points on the two-way data line of gathering, has improved efficiency of software testing, and has improved the rate of accuracy of test result.
Fig. 1 is an application scenario diagram of a bidirectional data transmission testing apparatus according to an embodiment of the present application, as shown in fig. 1, a master device is connected to a slave device through a bidirectional data line, a first port of the bidirectional data transmission testing apparatus is connected to a first test point on the bidirectional data line near the master device, a second port of the bidirectional data transmission testing apparatus is connected to a second test point on the bidirectional data line near the slave device, in a specific implementation process, edges of a first signal of the first test point and a second signal of the second test point are detected by the testing apparatus, a delay relationship between the first signal and the second signal is determined according to a detection result, and a data transmission direction in the bidirectional data line can be determined according to the delay relationship, so that testing efficiency is improved, and accuracy of the test result is improved.
The technical means of the present application will be described in detail with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic structural diagram of a bidirectional data transmission testing apparatus 20 according to an embodiment of the present application, where the apparatus 20 is configured to be connected to a bidirectional data line, one end of the bidirectional data line is connected to a master device, and the other end of the bidirectional data line is connected to a slave device; the test apparatus 20 includes: a first port, a second port, and a controller 201.
The first port and the second port are both connected to the controller 201.
The first port is configured to connect to a first test point on the bidirectional data line, which is close to the master device, obtain a first signal at the first test point, and send the first signal to the controller 201.
The second port is configured to be connected to a second test point on the bidirectional data line, which is close to the slave device, obtain a second signal at the second test point, and send the second signal to the controller 201.
The controller 201 is configured to detect the first signal and the second signal respectively, determine delay information of the first signal and the second signal according to a detection result, and determine a current data transmission direction according to the delay information.
In this embodiment, a first distance between the first test point and the master device is smaller than a second distance between the first test point and the slave device. And the third distance between the second test point and the slave equipment is smaller than the fourth distance between the second test point and the master equipment. The length of the first distance, the length of the second distance, the length of the third distance, and the length of the fourth distance are not limited in this embodiment.
In this embodiment, the data transmission direction of the data transmission line determined by the controller 201 may be sent to a subsequent processor for related processing, and may also be directly displayed to a tester through the display module 202, and the detailed description of the display module 202 may refer to the embodiment shown in fig. 5, which is not described herein again.
The working process of the testing device 20 provided by the embodiment is as follows: the first port is connected to a first test point on the bidirectional data line close to the master device, the second port is connected to a second test point on the bidirectional data line close to the slave device, and after connection, the first port acquires a first signal at the first test point and sends the first signal to the controller 201. The second port acquires a second signal at a second test point and sends the second signal to the controller 201. The controller 201 detects the first signal and the second signal respectively, determines delay information of the first signal and the second signal according to the detection result, and determines the current data transmission direction according to the delay information.
The testing device 20 provided by the embodiment of the application can automatically identify the data transmission direction of the double-drop data line according to the detection result by performing edge detection on the signals of the two testing points on the collected bidirectional data line, so that the testing efficiency is improved, and the accuracy of the testing result is improved.
In some embodiments, the first port is specifically configured to be connected to a first test point on the bidirectional data line close to the master device through a first test line, the second port is specifically configured to be connected to a second test point on the bidirectional data line close to the slave device through a second test line, and a length of the first test line is equal to a length of the second test line.
In some embodiments, the connection manner of the first test line and the first port may be multiple, for example, a terminal may be disposed at the first port, and the first port is connected by a screw, or a plug-in interface may be used for connection.
The test apparatus 20 provided in this embodiment can ensure that the first signal and the second signal do not change the delay relationship due to the test line by setting the first test line and the second test line to have the same length, thereby further ensuring the accuracy of the test result.
In some embodiments, the controller 201 can detect the edge of the first signal and the edge of the second signal in a variety of ways.
In one implementation, the controller 201 may detect a rising edge of the signal. The specific steps may include: detecting and obtaining a first time point when the edge of the first signal rises to a first preset proportion and a second time point when the edge of the second signal rises to the first preset proportion; the first preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal; if the first time point is earlier than the second time point, determining the second signal as a delay signal of the first signal, and determining that the current data transmission direction is from the master device to the slave device; and if the second time point is earlier than the first time point, determining the first signal as a delayed signal of the second signal, and determining the current data transmission direction as the transmission from the slave device to the master device.
In this embodiment, the first preset ratio may be any value greater than 0 and smaller than 1, and in order to ensure the accuracy of the detection, the first preset ratio may be set to any value between 50% and 90%.
For example, taking the first preset proportion as 70%, as shown in fig. 3, the rising edge of the first signal and the rising edge of the second signal are detected, and the first time point when the rising edge of the first signal reaches 70% is prior to the second time point when the rising edge of the second signal reaches 70%, so that the second signal is delayed with respect to the first signal, and therefore, it can be inferred that the current data transmission direction is from the master device to the slave device.
In another implementation, the controller 201 may detect a falling edge of the signal. The specific steps may include: detecting and obtaining a third time point when the edge of the first signal is reduced to a second preset proportion and a fourth time point when the edge of the second signal is reduced to the second preset proportion; the second preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal; if the third time point is earlier than the fourth time point, determining the second signal as a delayed signal of the first signal, and transmitting the current data transmission direction from the master device to the slave device; and if the fourth time point is earlier than the third time point, determining the first signal as a delayed signal of the second signal, and determining that the current data transmission direction is from the slave device to the master device.
In this embodiment, the second preset proportion may be any value greater than 0 and smaller than 1, and in order to ensure the accuracy of the detection, the second preset proportion may be set to any value between 10% and 50%.
For example, taking the first preset proportion as 30% as an example, as shown in fig. 4, a falling edge of the first signal and a falling edge of the fourth signal are detected, and a third time point when the falling edge of the first signal reaches 30% is later than a fourth time point when the falling edge of the second signal reaches 30%, so that the first signal is delayed with respect to the second signal, and therefore, it can be inferred that the current data transmission direction is transmitted from the slave device to the master device.
Fig. 5 is a schematic structural diagram of a bidirectional data transmission testing apparatus 20 according to an embodiment of the present application, as shown in fig. 5, on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in fig. 5, a display module 202 is additionally provided in this embodiment, and the testing apparatus 20 further includes: a display module 202; the controller 201 is connected to the display module 202, and is further configured to send the data transmission direction to the display module 202; the display module 202 is configured to display the data transmission direction.
The specific structure of the display module 202 may be various.
In one implementation, the display module 202 may include indicator lights, and different data transmission directions are indicated by on/off of the indicator lights or display colors of the indicator lights. The indicator light can also be designed in the shape of an arrow, two arrows are provided, which indicate opposite directions, one arrow representing one data transmission direction. This embodiment is not particularly limited thereto.
In another implementation, the display module 202 may include a display; the display may be configured to display that the current operation is a read operation when the current data transmission direction is from the slave device to the master device, and also display that the current operation is a write operation when the current data transmission direction is from the master device to the slave device. The display may also be used for presentation from a master device to a slave device or vice versa. It is to be understood that the display content of the display may have various forms as long as the current data transmission direction can be displayed, which is not specifically limited in this embodiment.
As shown in fig. 6, based on the above-mentioned embodiment, for example, based on the embodiment shown in fig. 5, in some embodiments, the controller 201 is a microprocessor 2011, and the testing apparatus 20 further includes: a storage module;
the memory module is connected to the microprocessor 2011, and is configured to expand a memory capacity of the microprocessor 2011.
In this embodiment, the storage module may be an erasable and writable memory such as a flash memory or a charged erasable and programmable read only memory, which has a characteristic that data is not lost after power failure.
By providing the storage module, the embodiment facilitates installation of programs with larger data size and also facilitates program maintenance.
As shown in fig. 7, on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in fig. 5, in some embodiments, the controller 201 is a complex programmable logic device CPLD2012, and the testing device 20 further includes: a joint test action group JTAG connector 204; the JTAG connector 204 is connected to the CPLD2012, and is configured to provide a burning program interface for the CPLD 2012.
In this embodiment, the JTAG connector 204 is provided to conveniently burn programs in the CPLD2012, so that the programs can be updated in time after errors occur in the programs or the programs are upgraded, and the convenience of maintenance is improved.
As shown in fig. 8, on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment shown in fig. 5, in some embodiments, the testing device 20 further includes: an oscillation module 205; the oscillation module 205 is connected to the controller 201, and is configured to provide an operating clock for the controller 201.
In this embodiment, the oscillation module 205 may include a crystal oscillation unit XTAL. In some embodiments, the crystal oscillator unit may be 25MHz.
The embodiment of the present application further provides a method for testing a data transmission direction of a bidirectional data line, which is applied to the bidirectional data transmission testing apparatus described in the above embodiment, and the method for testing the data transmission direction of the bidirectional data line includes:
a first port acquires a first signal at the first test point and sends the first signal to a controller;
the second port acquires a second signal at the second test point and sends the second signal to the controller;
the controller detects the first signal and the second signal respectively, determines delay information of the first signal and the second signal according to a detection result, and determines the current data transmission direction according to the delay information.
The method for testing the data transmission direction of the bidirectional data line provided by the embodiment of the application can be applied to the embodiment of the testing device, the implementation principle and the technical effect are similar, and the embodiment is not repeated herein.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.

Claims (8)

1. A bidirectional data transmission testing device is characterized by being connected with a bidirectional data line, wherein one end of the bidirectional data line is connected with a master device, and the other end of the bidirectional data line is connected with a slave device; the test device includes: a first port, a second port and a controller;
the first port and the second port are both connected with the controller;
the first port is used for being connected with a first test point on the bidirectional data line, which is close to the main device, acquiring a first signal at the first test point and sending the first signal to the controller;
the second port is used for being connected with a second test point on the bidirectional data line, which is close to the slave device, acquiring a second signal at the second test point and sending the second signal to the controller;
the controller is configured to detect the first signal and the second signal respectively, determine delay information of the first signal and the second signal according to a detection result, and determine a current data transmission direction according to the delay information;
the controller, when detecting the first signal and the second signal respectively, is specifically configured to:
detecting and obtaining a first time point when the edge of the first signal rises to a first preset proportion and a second time point when the edge of the second signal rises to the first preset proportion; the first preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal;
the controller, when determining delay information of the first signal and the second signal according to the detection result and determining the current data transmission direction according to the delay information, is specifically configured to:
if the first time point is earlier than the second time point, determining the second signal as a delayed signal of the first signal, and transmitting the current data transmission direction from the master device to the slave device;
if the second time point is earlier than the first time point, determining the first signal as a delayed signal of the second signal, and determining the current data transmission direction as transmission from the slave device to the master device;
or,
the controller, when detecting the first signal and the second signal respectively, is specifically configured to:
detecting and obtaining a third time point when the edge of the first signal is reduced to a second preset proportion and a fourth time point when the edge of the second signal is reduced to the second preset proportion; the second preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal;
the controller, when determining delay information of the first signal and the second signal according to the detection result and determining the current data transmission direction according to the delay information, is specifically configured to:
if the third time point is earlier than the fourth time point, determining the second signal as a delayed signal of the first signal, and transmitting the current data transmission direction from the master device to the slave device;
and if the fourth time point is earlier than the third time point, determining the first signal as a delayed signal of the second signal, and determining that the current data transmission direction is from the slave device to the master device.
2. The test device of claim 1, further comprising: a display module;
the controller is connected with the display module and is also used for sending the data transmission direction to the display module;
and the display module is used for displaying the data transmission direction.
3. The testing device of claim 2, wherein the display module comprises a display;
the display is used for displaying that the current operation is a read operation when the current data transmission direction is from the slave device to the master device, and is also used for displaying that the current operation is a write operation when the current data transmission direction is from the master device to the slave device.
4. The test device of claim 1, wherein the controller is a microprocessor, the test device further comprising: a storage module;
the storage module is connected with the microprocessor and used for expanding the storage capacity of the microprocessor.
5. The testing apparatus of claim 1, wherein the controller is a Complex Programmable Logic Device (CPLD), and the testing apparatus further comprises: a Joint Test Action Group (JTAG) connector;
and the JTAG connector is connected with the CPLD and is used for providing a burning program interface for the CPLD.
6. The test device of claim 1, further comprising: an oscillation module;
and the oscillation module is connected with the controller and is used for providing a working clock for the controller.
7. The test apparatus of claim 1, wherein the first port is configured to be connected to a first test point on the bidirectional data line near the master device through a first test line, the second port is configured to be connected to a second test point on the bidirectional data line near the slave device through a second test line, and a length of the first test line is equal to a length of the second test line.
8. A method for testing data transmission direction of a bidirectional data line, which is applied to the bidirectional data transmission testing device of any one of claims 1 to 7, the method comprising:
a first port acquires a first signal at the first test point and sends the first signal to a controller;
the second port acquires a second signal at the second test point and sends the second signal to the controller;
the controller respectively detects the first signal and the second signal, determines delay information of the first signal and the second signal according to a detection result, and determines the current data transmission direction according to the delay information;
the controller respectively detects the first signal and the second signal, determines delay information of the first signal and the second signal according to a detection result, and determines a current data transmission direction according to the delay information, including:
detecting and obtaining a first time point when the edge of the first signal rises to a first preset proportion and a second time point when the edge of the second signal rises to the first preset proportion; the first preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal;
if the first time point is earlier than the second time point, determining the second signal as a delayed signal of the first signal, and transmitting the current data transmission direction from the master device to the slave device;
if the second time point is earlier than the first time point, determining the first signal as a delay signal of the second signal, and determining the current data transmission direction as transmission from the slave equipment to the master equipment;
or,
the controller respectively detects the first signal and the second signal, determines delay information of the first signal and the second signal according to a detection result, and determines a current data transmission direction according to the delay information, including:
detecting and obtaining a third time point when the edge of the first signal is reduced to a second preset proportion and a fourth time point when the edge of the second signal is reduced to the second preset proportion; the second preset proportion is the proportion between the current voltage amplitude of the signal and the working voltage amplitude of the signal;
if the third time point is earlier than the fourth time point, determining the second signal as a delayed signal of the first signal, and transmitting the current data transmission direction from the master device to the slave device;
if the fourth time point is earlier than the third time point, determining the first signal as a delayed signal of the second signal, and determining that the current data transmission direction is from the slave device to the master device.
CN202111135430.0A 2021-09-27 2021-09-27 Bidirectional data transmission testing device and testing method Active CN113872829B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111135430.0A CN113872829B (en) 2021-09-27 2021-09-27 Bidirectional data transmission testing device and testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111135430.0A CN113872829B (en) 2021-09-27 2021-09-27 Bidirectional data transmission testing device and testing method

Publications (2)

Publication Number Publication Date
CN113872829A CN113872829A (en) 2021-12-31
CN113872829B true CN113872829B (en) 2023-02-28

Family

ID=78991151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111135430.0A Active CN113872829B (en) 2021-09-27 2021-09-27 Bidirectional data transmission testing device and testing method

Country Status (1)

Country Link
CN (1) CN113872829B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866686A (en) * 2012-09-11 2013-01-09 西安电子科技大学 Non-contact 485 bus on-line monitoring device having direction detection
CN206074653U (en) * 2016-08-12 2017-04-05 东莞市汇博电子科技有限公司 Data cable tester with forward and reverse recognition function
CN106656261A (en) * 2016-11-24 2017-05-10 国网新疆电力公司乌鲁木齐供电公司 Electric-power-communication dedicated combined-type 2M test device
CN109936856A (en) * 2017-12-18 2019-06-25 罗德施瓦兹两合股份有限公司 Measure test device, the device and method of directional signal
CN110995244A (en) * 2019-12-13 2020-04-10 思瑞浦微电子科技(苏州)股份有限公司 Automatic direction detection circuit of bidirectional transmission interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110430104B (en) * 2019-09-18 2021-12-03 北京云中融信网络科技有限公司 Audio transmission delay testing method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866686A (en) * 2012-09-11 2013-01-09 西安电子科技大学 Non-contact 485 bus on-line monitoring device having direction detection
CN206074653U (en) * 2016-08-12 2017-04-05 东莞市汇博电子科技有限公司 Data cable tester with forward and reverse recognition function
CN106656261A (en) * 2016-11-24 2017-05-10 国网新疆电力公司乌鲁木齐供电公司 Electric-power-communication dedicated combined-type 2M test device
CN109936856A (en) * 2017-12-18 2019-06-25 罗德施瓦兹两合股份有限公司 Measure test device, the device and method of directional signal
CN110995244A (en) * 2019-12-13 2020-04-10 思瑞浦微电子科技(苏州)股份有限公司 Automatic direction detection circuit of bidirectional transmission interface

Also Published As

Publication number Publication date
CN113872829A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
CN106909479B (en) Startup and shutdown test fixture
CN105223889A (en) Method for automatically monitoring PMC RAID card log suitable for production line
CN104569719A (en) Multicore cable testing system
CN102819477A (en) Board fault test method and fault test card
CN106407059A (en) Server node testing system and method
TW201447566A (en) Testing system and method for I2C bus
CN103970628A (en) Automatic detection system and automatic detection method thereof
CN113552562B (en) Automatic calibration system and method for ultrasonic radar
CN104572382A (en) I2C (inter-integrated circuit) bus test jig
CN113872829B (en) Bidirectional data transmission testing device and testing method
CN116436833A (en) Fault diagnosis method, device and equipment in switch port test
CN112822073B (en) Test method, device, system, electronic equipment and readable storage medium
CN104793081A (en) USB (universal serial bus) interface detection device and method
CN213337987U (en) Connecting wire automatic detection circuit and device
CN105116359A (en) Detecting device and detecting system for power utilization information collection terminal
CN207799023U (en) GNSS PCBA automated test system
CN111398704A (en) Method and system for testing response time of display lamp
CN115617586B (en) Fault detection device, method, system and storage medium
CN215576583U (en) Universal serial bus port detection device
CN110932930A (en) Detection method, device and medium for server PCIE link stability
CN213041977U (en) Cable quality detection device
CN218995580U (en) Test system and signal conversion circuit thereof
CN221926959U (en) Measurement and control system and measurement and control platform
CN214751425U (en) Testing instrument data acquisition and communication device
CN211348597U (en) Connector detection equipment

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
GR01 Patent grant
GR01 Patent grant