CN115658398A - Hard disk interface channel testing device and testing method thereof - Google Patents

Hard disk interface channel testing device and testing method thereof Download PDF

Info

Publication number
CN115658398A
CN115658398A CN202211182860.2A CN202211182860A CN115658398A CN 115658398 A CN115658398 A CN 115658398A CN 202211182860 A CN202211182860 A CN 202211182860A CN 115658398 A CN115658398 A CN 115658398A
Authority
CN
China
Prior art keywords
channel
signal transmission
tested
hard disk
module
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
CN202211182860.2A
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.)
Hangzhou Haikang Storage Technology Co ltd
Original Assignee
Hangzhou Haikang Storage 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 Hangzhou Haikang Storage Technology Co ltd filed Critical Hangzhou Haikang Storage Technology Co ltd
Priority to CN202211182860.2A priority Critical patent/CN115658398A/en
Publication of CN115658398A publication Critical patent/CN115658398A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The application provides a hard disk interface channel testing device and a testing method thereof, relates to the technical field of interface testing, can improve the efficiency of interface testing, and is beneficial to improving the accuracy and reliability of interface testing. In the hard disk interface channel testing device, a hard disk interface module comprises a first signal transmission channel, and the first signal transmission channel and a channel to be tested are respectively used for data transmission based on a preset transmission protocol. The control module is configured to generate a control signal, and the control signal is used for controlling the conduction of the first signal transmission channel. The channel switching module is connected with the control module and the hard disk interface module, and is used for receiving a control signal of the control module and controlling the conduction of the first signal transmission channel according to the control signal, so that under the condition that the first signal transmission channel is in a conduction state, data transmission testing is carried out on a channel to be tested in the hard disk interface to be tested, which is connected with the first signal transmission channel. The method and the device are used for testing different interfaces.

Description

Hard disk interface channel testing device and testing method thereof
Technical Field
The invention relates to the technical field of interface testing, in particular to a hard disk interface channel testing device and a testing method thereof.
Background
Generally, different electronic devices can be coupled through an interface to realize transmission of data information. Among them, more and more electronic devices have Universal Serial Bus (USB) interfaces. For example, the USB interface includes USB2.0, USB3.0, USB3.1, type-C, and the like.
In order to improve the yield of the electronic equipment, the quality of the USB interface needs to be tested frequently when the electronic equipment is subjected to factory inspection and daily maintenance, and the probability that the electronic equipment cannot work normally due to poor contact of partial channels of the interface or poor quality of the USB seat is reduced. However, under the condition that the types of the hard disk interfaces to be tested are various and the number of the electronic devices to be tested is large, frequent plugging and unplugging operations are required to replace the electronic devices to be tested, so that the plugging and unplugging operations are long in time consumption and low in testing efficiency, and the frequent plugging and unplugging operations cause abrasion to a signal channel of the interfaces, thereby easily affecting the accuracy of identification of the hard disk interfaces to be tested.
Disclosure of Invention
The embodiment of the application provides a hard disk interface channel testing device and a testing method thereof, which can realize fine-grained testing of a hard disk channel, improve the testing efficiency of a hard disk interface and facilitate the improvement of the accuracy and reliability of the interface testing.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, a device for testing a hard disk interface channel is provided. The hard disk interface channel testing device comprises a hard disk interface module, a control module and a channel switching module. The hard disk interface module comprises a first signal transmission channel, the first signal transmission channel is connected with a channel to be tested in the hard disk interface to be tested through a channel pin in the hard disk interface to be tested, and the first signal transmission channel and the channel to be tested are respectively used for data transmission based on a preset transmission protocol. The control module is configured to generate a control signal, and the control signal is used for controlling the conduction of the first signal transmission channel. The channel switching module is connected with the control module and the hard disk interface module, and is used for receiving a control signal of the control module and controlling the conduction of the first signal transmission channel according to the control signal, so that under the condition that the first signal transmission channel is in a conduction state, data transmission testing is carried out on a channel to be tested in the hard disk interface to be tested, which is connected with the first signal transmission channel.
Since the preset transmission protocols of the channel to be tested of the hard disk interface to be tested can be different, different preset transmission protocols need different control signals for control. The channel switching module is used for realizing the conduction of the first signal transmission channel according to the received control signal. Therefore, when the first signal transmission channel is in a conducting state, data transmission test is carried out on the channel to be tested in the hard disk interface to be tested connected with the first signal transmission channel. The hard disk interface channel testing device does not need to carry out positive and negative insertion on the hard disk interface to be tested (the interface needs to be inserted and pulled for many times), saves the operation time and improves the interface testing efficiency. Furthermore, the abrasion of the interface caused by frequent plugging and unplugging of the equipment to be tested is reduced, and the identification error of the tested interface signal is reduced. And the type of the first signal transmission channel is selected and set according to requirements so as to support data transmission under the preset transmission protocol of the channel to be tested of the hard disk interface to be tested, so that the test compatible with different hard disk interfaces to be tested (different preset transmission protocols) can be realized, and the application range of the hard disk interface channel test device is expanded.
In some embodiments, the hard disk interface module includes at least one first signal transmission channel, and the at least one first signal transmission channel performs data transmission based on different preset transmission protocols. The channel switching module comprises at least one switching circuit, and one switching circuit is connected with one first signal transmission channel. The control module is used for generating control signals aiming at different switch circuits so as to control the conduction of the different switch circuits.
In some embodiments, the channel switching module is configured to control, according to a corresponding relationship between the control signal and the switch circuit, the switch circuits connected to each first signal transmission channel one by one according to a preset sequence, so that when each first signal transmission channel is in a conducting state, a data transmission test is performed on a channel to be tested in the hard disk interface to be tested connected to each first signal transmission channel; or, according to the corresponding relation between the control signal and the switch circuit, the switch circuits are simultaneously controlled to be switched on, and each switch circuit is connected with different first signal transmission channels, so that under the condition that the first signal transmission channels are in a switched-on state, data transmission test is simultaneously carried out on the channel to be tested in the hard disk interface to be tested, which is respectively connected with the first signal transmission channels.
In some embodiments, the hard disk interface module includes at least one first signal transmission channel, where the at least one first signal transmission channel includes a signal transmission channel for performing data transmission based on a first preset transmission protocol and a signal transmission channel for performing data transmission based on a second preset transmission protocol, and a version number of the second preset transmission protocol is higher than a version number of the first preset transmission protocol.
In some embodiments, the apparatus further comprises a data transmission module and a processing terminal. The data transmission module comprises a second signal transmission channel corresponding to the first signal transmission channel. The data transmission module is respectively connected with the channel switching module and the processing terminal; and when the first signal transmission channel is in a conducting state, the first signal transmission channel and the second signal transmission channel form a channel so as to transmit data between the hard disk interface to be tested and the processing terminal and test the channel to be tested in the hard disk interface to be tested connected with the first signal transmission channel.
In some embodiments, the test results of the channel under test include a data read test and a data write test. The first signal transmission channel is connected with the channel switching module through a first signal line. The channel switching module also transmits a channel through a second signal line and a second signal. The types of the first signal line and the second signal line are related to a preset transmission protocol supported by the first signal transmission channel. Under the condition that the first signal transmission channel and the second signal transmission channel form a channel, data in the hard disk to be tested connected with the first signal transmission channel are transmitted to the processing terminal, and data reading test is conducted on the channel to be tested in the hard disk interface to be tested connected with the first signal transmission channel. And under the condition that the first signal transmission channel and the second signal transmission channel form a channel, data writing test is carried out on the channel to be tested in the hard disk interface to be tested connected with the first signal transmission channel by transmitting the data in the processing terminal to the hard disk to be tested connected with the first signal transmission channel.
In some embodiments, the hard disk interface module includes at least two first signal transmission channels corresponding to the same preset transmission protocol. The at least two first signal transmission channels are respectively used for connecting to-be-tested channels in different to-be-tested hard disk interfaces. The at least two first signal transmission channels are connected with the channel switching module in a parallel connection mode, and the control signal generated by the control module is used for controlling the conduction of the at least two first signal transmission channels at the same time. The control module is used for distinguishing the channel test results of the different hard disk interfaces to be tested according to the interface identifiers.
In some embodiments, the hard disk interface channel testing device further comprises a display module. The display module is used for displaying the test result of the channel to be tested according to the corresponding relation between the channel to be tested and the test result; and/or the display module is used for displaying a control interface, the control interface is displayed with a channel selection control, and the display module is used for responding to the triggering operation of a user on the channel selection control and generating a channel selection instruction; the channel selection instruction carries a preset transmission protocol corresponding to the channel to be tested selected by the user.
The control module is used for generating a control signal aiming at the first signal transmission channel based on a preset transmission protocol carried in the channel selection instruction, and the first signal transmission channel carries out data transmission based on the preset transmission protocol carried in the channel selection instruction.
In some embodiments, the hard disk interface channel testing device further comprises an interface power consumption acquisition module; the interface power consumption acquisition module is connected with a power pin in the hard disk interface to be tested and is used for acquiring the power consumption of the hard disk to be tested in the process of carrying out data transmission test on the channel to be tested. The display module is also used for displaying the power consumption of the hard disk to be tested.
By utilizing the technical scheme provided by the embodiment of the application, fine-grained testing of each hard disk channel can be realized, and when the type of the hard disk interface to be tested has multiple conditions, the testing of each channel of the hard disk interface can be realized without frequently plugging and unplugging the hard disk, so that the testing efficiency of the hard disk interface can be improved, and the accuracy and the reliability of the interface testing can be improved.
In a second aspect, a method for testing a hard disk interface channel testing device is provided. The test method comprises the following steps:
generating a control signal through a control module;
the control signal is acquired through a channel switching module, and the first signal transmission channel of the hard disk interface module is controlled to be conducted according to the control signal, so that data transmission test is conducted on a channel to be tested in the hard disk interface to be tested, which is connected with the first signal transmission channel, under the condition that the first signal transmission channel is in a conducting state.
The test method of the hard disk interface channel test device provided by the embodiment of the application is used for controlling the hard disk interface channel test device provided by the first aspect, so that the test method has all the beneficial effects of the hard disk interface channel test device, and is not repeated herein.
Drawings
Fig. 1 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 2 is another schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 4 is a schematic circuit diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a hard disk interface channel testing apparatus according to an embodiment of the present application;
fig. 11 is a flowchart of a testing method of a hard disk interface channel testing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in some embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. In the present application, "at least one" means one or more, "a plurality" means two or more.
It is noted that, in the present application, words such as "exemplary" or "for example" are used to mean exemplary, illustrative, or descriptive. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In describing some embodiments, the term "coupled" may be used in describing some embodiments to indicate that two or more elements are in direct physical or electrical contact. The embodiments disclosed herein are not necessarily limited to the contents herein.
The use of "adapted to" or "configured to" herein is meant to be an open and inclusive language that does not exclude devices adapted to or configured to perform additional tasks or steps.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, the meaning of "a plurality" is two or more unless otherwise specified.
Generally, different electronic devices can be coupled through an interface to realize transmission of data information. For example, the electronic device includes a computer, an audio player, a mobile phone, a camera, a Portable Solid State Drive (PSSD), and the like, and the embodiment in this application does not specifically limit the specific form of the electronic device.
Considering that the types of interfaces of the electronic devices are different, the types and the number of channels of the interfaces are different. The following embodiment takes the electronic device to be tested as PSSD as an example for illustrative purposes, so as to clearly describe the implementation process of the interface test.
In some examples, the PSSD is a hard disk made of solid-state electronic memory chips, which include electronic components such as a main controller, protocol conversion chips, peripheral devices, memory modules, power supply devices, and the like. For example, the interface of the PSSD may be a USB interface. The PSSD converts the SATA protocol or the PCIE protocol sent by the main controller into the USB protocol through the protocol conversion chip. For example, the USB interface includes interfaces having more than two signal channels, such as USB2.0, USB3.0, USB3.1, and Type-C.
In order to improve the efficiency of interface detection, the present application provides a hard disk interface channel testing apparatus 100. As shown in fig. 1, the hard disk interface channel testing apparatus 100 includes a control module 110, a hard disk interface module 120, and a channel switching module 130.
The hard disk interface module 120 includes a first signal transmission channel 121, the first signal transmission channel 121 is connected to a channel to be tested (not shown in fig. 1) in the hard disk interface 200 to be tested through a channel pin in the hard disk interface to be tested, and the first signal transmission channel 121 and the channel to be tested are respectively used for data transmission based on a preset transmission protocol.
The control module 110 is configured to generate a control signal for controlling the conduction of the first signal transmission channel 121. For example, the control module 110 includes a Micro Controller Unit (MCU). The control signal may be generated based on a test trigger operation or a test selection operation of a user on a certain channel to be tested in the hard disk according to a test requirement of the user, or the control signal may be generated based on communication information (indicating that the channel to be tested and the first signal transmission channel are already communicated) between the channel to be tested in the hard disk interface to be tested and the first signal transmission channel in the hard disk interface module.
The channel switching module 130 is connected to the control module 110 and the hard disk interface module 120, and the channel switching module 130 is configured to receive a control signal of the control module 110 and control the first signal transmission channel 121 to be turned on according to the control signal, so that when the first signal transmission channel 121 is in a turned-on state, a data transmission test is performed on a channel to be tested in the hard disk interface 200 to be tested, which is connected to the first signal transmission channel 121. The channel switching module 130 is configured to control a conduction condition of the first signal transmission channel 121, and on the basis of ensuring that the function is implemented, a person skilled in the art may implement the channel switching module 130 according to any feasible switching principle, for example, the channel switching module 130 may be any available switching device or functional module such as a switch or a switching circuit. The first signal transmission channel 121 needs to perform effective data transmission only when it is matched with or the same as the data transmission protocol supported by the channel to be tested in the connected hard disk interface 200 to be tested (i.e. the data transmission condition is satisfied).
Since the preset transmission protocols supported by the channel to be tested of the hard disk interface 200 to be tested may be different, different preset transmission protocols correspond to different control signals, and thus whether the channel to be tested is communicated with the first signal transmission channel or not is controlled by different control signals. The channel switching module 130 switches on the first signal transmission channel according to the received control signal. In this way, when the first signal transmission channel 121 is in a conducting state, a data transmission test is performed on the channel to be tested in the hard disk interface 200 to be tested, which is connected to the first signal transmission channel 121. The hard disk interface channel testing device 100 does not need to insert the hard disk interface 200 to be tested in a positive and negative manner (i.e. the interface needs to be inserted and pulled out for multiple times), so that the operation time is saved, and the interface testing efficiency is improved. Furthermore, the abrasion of the hard disk interface 200 to be tested due to frequent plugging and unplugging of the equipment to be tested is reduced, and the identification error of the tested interface signal is reduced. Moreover, the type of the first signal transmission channel 121 is selected according to the requirement, so as to support data transmission under the preset transmission protocol corresponding to the channel to be tested of the hard disk interface 200 to be tested, thereby realizing the test compatible with different hard disk interfaces 200 to be tested (different preset transmission protocols), and expanding the application range of the hard disk interface channel test device 100.
In the embodiment of the present application, the data transmission channel or the signal transmission channel (for example, the first signal transmission channel 121) is used to generally refer to a portion forming a data transmission link, and may be a concept of a physical layer, a concept of a software layer, or a concept combining the physical layer and the software layer, for example, for a hard disk to be tested, the channel to be tested may refer to a concept of a physical layer that performs data transmission based on a preset transmission protocol, and is a medium for data transmission on the software layer. A plurality of data transmission channels may correspond to one hard disk interface. In the following embodiments, the concept of the signal line may be included in the signal transmission channel, that is, the data transmission line formed by the hard disk interface module 120 (the first signal transmission channel 121 included in the hard disk interface module) and the signal line (for example, the D + differential line and the D-differential line shown in fig. 3) may be collectively referred to as the signal transmission channel, and certainly, the signal line and the signal transmission channel may also be distinguished as two concepts, the signal transmission channel may distinguish the data transmission protocol supported by the hard disk interface module, and similarly, the channel to be tested in the hard disk interface to be tested may distinguish the data transmission protocol supported by the hard disk interface to be tested.
In some embodiments, as shown in FIG. 1, the hard disk interface module 120 includes at least one first signal transmission channel 121. The at least one first signal transmission channel 121 performs data transmission based on different preset transmission protocols, that is, the preset transmission protocols based on which the at least one first signal transmission channel 121 performs data transmission are different; or, when data transmission is performed on one part of the at least one first signal transmission channel 121, the preset transmission protocols based on are the same, and when data transmission is performed on another part of the at least one first signal transmission channel 121, the preset transmission protocols based on are the same, and the preset transmission protocols based on the two parts are different. Can be set according to actual requirements.
The channel switching module 130 may control the conduction of the plurality of first signal transmission channels 121 (which may correspond to the same data transmission protocol or may correspond to different data transmission protocols) at the same time, so as to implement the simultaneous testing of the plurality of hard disk channels, and the channel switching module 130 may also control the conduction of the first signal transmission channels 121 one by one, which may be configured according to specific testing requirements.
As shown in fig. 2, the channel switching module 130 may include at least one switching circuit 131, and one switching circuit 131 is connected to one first signal transmission channel 121. The control module 110 is configured to generate control signals for different switch circuits 131 to control conduction of the different switch circuits 131. Thus, based on the one-to-one correspondence relationship between the control signals and the switch circuits 131, the control of the corresponding first signal transmission channel 121 to be turned on or off by one switch circuit 131 is realized.
In some examples, as shown in fig. 2, the channel switching module 130 is configured to control, according to a corresponding relationship between the control signal and the switch circuit 131, the switch circuits 131 connected to each first signal transmission channel 121 to be turned on one by one according to a preset sequence, so that when each first signal transmission channel 121 is in a conducting state, a data transmission test is performed on a channel to be tested in the hard disk interface 200 to be tested connected to each first signal transmission channel 121.
It should be noted that the "preset order" refers to a default test order set according to requirements, for example, preset by a developer, or a priority level set according to a level of a preset transmission protocol on which a channel is based.
Or, the channel switching module 130 is configured to control conduction of the multiple switch circuits 131 simultaneously according to a corresponding relationship between the control signal and the switch circuit 131, where each switch circuit 131 is connected to a different first signal transmission channel 121, so that when the multiple first signal transmission channels 121 are in a conduction state, data transmission tests are performed on to-be-tested channels in the to-be-tested hard disk interface 200 respectively connected to the multiple first signal transmission channels 121 (which may correspond to the same data transmission protocol or different data transmission protocols).
In some embodiments, as shown in fig. 3 and 4, the hard disk interface module 120 includes at least two first signal transmission channels 121, where the at least two first signal transmission channels 121 include at least one signal transmission channel 121 for data transmission based on a first preset transmission protocol and at least one signal transmission channel 121 for data transmission based on a second preset transmission protocol, and a version number of the second preset transmission protocol (for example, USB3.1 version) is higher than a version number of the first preset transmission protocol (for example, USB2.0 version).
Illustratively, as shown in fig. 4, the signal transmission channel 121 for data transmission based on the first preset transmission protocol is connected to the channel switching module 130 through a D + differential line and a D-differential line. The signal transmission channel 121 for transmitting data based on the second preset transmission protocol is connected to the channel switching module 130 through a TXP1/TXN1 differential line and a RXP1/RXN1 differential line. The version number of the second predetermined transmission protocol is higher than the version number of the first predetermined transmission protocol.
In some embodiments, as shown in fig. 5, the hard disk interface channel testing apparatus 100 further includes a data transmission module 140 and a processing terminal 150. The data transmission module 140 is connected to the channel switching module 130 and the processing terminal 150, respectively.
The data transmission module 140 includes second signal transmission channels 141 corresponding to the first signal transmission channels 121, and illustratively, one second signal transmission channel 141 is connected to one first signal transmission channel 121 through the channel switching module 130 (e.g., one switch circuit 131). The switch circuit 131 connected to the first signal transmission channel 121 is turned on, so that when the first signal transmission channel 121 is in a conducting state, the first signal transmission channel 121 and the second signal transmission channel 141 form a path, which can realize data transmission between the hard disk interface 200 to be tested and the processing terminal 150, and test a channel to be tested in the hard disk interface 200 to be tested connected to the first signal transmission channel 121.
Illustratively, as shown in fig. 6, the test results of the channel under test include a data read test and a data write test. The first signal transmission channel 121 is connected to the channel switching module 130 through a first signal line 1211, the channel switching module 130 further connects to the second signal transmission channel 141 through a second signal line 1411, and the types of the first signal line 1211 and the second signal line 1411 are related to a predetermined transmission protocol supported by the first signal transmission channel 121.
With continued reference to fig. 6, for example, the first signal lines 1211 include a D + differential line and a D-differential line, and the corresponding second signal lines 1411 include a D '+ line and a D' -line. The first signal transmission channel 121 is connected to the switching circuit 131 through a D + differential line and a D-differential line, and the switching circuit 131 is connected to the second signal transmission channel 141 through a D '+ differential line and a D' -differential line.
Alternatively, the first signal lines 1211 include TXP1/TXN1 differential lines and RXP1/RXN1 differential lines and the corresponding second signal lines 1411 include TXP/TXN differential lines and RXP/RXN differential lines. The first signal transmission path 121 is connected to the switch circuit 131 through a TXP1/TXN1 differential line and a RXP1/RXN1 differential line, and the switch circuit 131 is connected to the second signal transmission path 141 through a TXP/TXN differential line and a RXP/RXN differential line.
Still alternatively, the first signal lines 1211 include TXP2/TXN2 differential lines and RXP2/RXN2 differential lines and the corresponding second signal lines 1411 include TXP/TXN differential lines and RXP/RXN differential lines. The first signal transmission path 121 is connected to the switch circuit 131 through TXP2/TXN2 differential lines and RXP2/RXN2 differential lines, and the switch circuit 131 is connected to the second signal transmission path 141 through TXP/TXN differential lines and RXP/RXN differential lines.
In some examples, in a case where the first signal transmission channel 121 and the second signal transmission channel 141 form a path, a data read test is performed on a channel to be tested in the hard disk interface to be tested 200 connected to the first signal transmission channel 121 by transmitting data in the hard disk to be tested connected to the first signal transmission channel 121 to the processing terminal 150.
In other examples, in the case where the first signal transmission channel 121 and the second signal transmission channel 141 form a path, by transmitting data in the processing terminal to the hard disk under test connected to the first signal transmission channel 121, the data write test is performed on the channel under test in the hard disk under test interface 200 connected to the first signal transmission channel 121.
In some embodiments, as shown in FIG. 7, processing terminal 150 includes a display module 151. The display module 151 is configured to display a test result of the channel to be tested according to a corresponding relationship between the channel to be tested and the test result; and/or the display module 151 is configured to display a control interface, the control interface displays a channel selection control, and the display module 151 is configured to generate a channel selection instruction in response to a trigger operation of a user on the channel selection control. The channel selection instruction carries a preset transmission protocol corresponding to the channel to be tested selected by the user.
The control module 110 is configured to generate a control signal for the first signal transmission channel 121 based on a preset transmission protocol carried in the channel selection instruction, where the first signal transmission channel 121 supports data transmission based on the preset transmission protocol carried in the channel selection instruction.
Illustratively, the device under test interface 200 detected by the hard disk interface channel testing apparatus 100 is an interface based on the USB3.0 protocol. The control module 110 sends two control signals to respectively conduct two first signal transmission channels 121, where the two first signal transmission channels 121 are based on different preset channel protocols. One of the first signal transmission channels 121 performs data transmission based on a first preset transmission protocol, for example, the first signal transmission channel 121 performs data transmission by using a D + differential line and a D-differential line. The other first signal transmission channel 121 performs data transmission based on a second predetermined transmission protocol, for example, the first signal transmission channel 121 performs data transmission by using TXP1/TXN1 differential lines and RXP1/RXN1 differential lines. Thus, under the condition that the first signal transmission channels 121 based on the two different preset transmission protocols are both turned on and normally transmit data, the device under test interface 200 based on the USB3.0 protocol is a good interface.
Further exemplarily, the hard disk interface channel test apparatus 100 detects that the device under test interface 200 is an interface based on the USB3.1 protocol. The control module 110 may send three different control signals to respectively conduct the three first signal transmission channels 121, where two of the first signal transmission channels 121 are based on different predetermined transmission protocols. A first signal transmission channel 121 performs data transmission based on a first predetermined transmission protocol, for example, the first signal transmission channel 121 performs data transmission by using a D + differential line and a D-differential line. The other two first signal transmission channels 121 perform data transmission based on a second preset transmission protocol, for example, the first signal transmission channels 121 perform data transmission by using TXP1/TXN1 differential lines and RXP1/RXN1 differential lines; and transmitting data by adopting TXP2/TXN2 differential lines and RXP2/RXN2 differential lines. In this way, when all the three first signal transmission channels 121 are turned on and normally transmit data, the device under test interface 200 based on the USB3.1 protocol is a good interface.
Alternatively, the control module 110 may send two different control signals to respectively conduct the two first signal transmission channels 121, where the two first signal transmission channels 121 are based on different preset transmission protocols. One of the first signal transmission channels 121 performs data transmission based on a first preset transmission protocol, for example, the first signal transmission channel 121 performs data transmission by using a D + differential line and a D-differential line. The other first signal transmission channel 121 performs data transmission based on a second predetermined transmission protocol, for example, the first signal transmission channel 121 performs data transmission by using TXP1/TXN1 differential lines and RXP1/RXN1 differential lines. Then, the control module 110 further sends out a control signal for turning on the first signal transmission channel 121 that uses the TXP2/TXN2 differential line and the RXP2/RXN2 differential line for data transmission. In this way, the device under test interface 200 based on the USB3.1 protocol is a good interface when all of the three first signal transmission channels 121 are turned on and normally transmit data.
In some embodiments, as shown in fig. 8, the hard disk interface channel testing apparatus 100 further includes an interface power consumption collecting module 160. The interface power consumption acquisition module 160 is connected to a power pin of the hard disk interface 200 to be tested, and is configured to acquire power consumption of the hard disk to be tested during a data transmission test process performed on the channel to be tested. The display module 151 is further configured to display power consumption of the hard disk to be tested.
For example, the power consumption collecting module 160 transmits the collected information to the display module 151 based on the IIC protocol, so that the user can know the operation power consumption of a certain hard disk to be tested, which is tested by the hard disk interface channel testing apparatus 100. Illustratively, the power consumption collection module 160 includes one or more of electronic components having functions of power collection, voltage fluctuation detection, over-current detection, data calculation, and the like. For example, the power consumption collection module 160 includes an electronic component having a power collection function.
In other examples, as shown in fig. 9, the hard disk interface channel testing apparatus 100 further includes a debugging module 170, and the debugging module 170 is connected to the control module 110. The control module 110 can automatically generate a corresponding control signal according to the debugging information of the debugging module 170 to control the corresponding first signal transmission channel 121 to be conducted.
For example, the debug signal in debug module 170 is an interface signal for debugging the USB 3.0-based protocol. The control module 110 sends two control signals according to the debug signal of the debug module 170, and respectively turns on the two first signal transmission channels 121, where the two first signal transmission channels 121 are based on different preset channel protocols. One of the first signal transmission channels 121 performs data transmission based on a first preset transmission protocol, for example, the first signal transmission channel 121 performs data transmission by using a D + differential line and a D-differential line. The other first signal transmission channel 121 performs data transmission based on a second predetermined transmission protocol, for example, the first signal transmission channel 121 performs data transmission by using TXP1/TXN1 differential lines and RXP1/RXN1 differential lines. Thus, under the condition that the first signal transmission channels 121 of two different preset transmission protocols are both turned on and normally transmit data, the device interface 200 to be tested based on the USB3.0 protocol is a good interface.
It is understood that the debug signal in the debug module 170 can be set and updated according to the user's requirement, which is not limited in this application. The interface test is performed through the debugging module 170, so that the labor cost can be reduced, the test error caused by the operation error of a tester is reduced, the practicability is better, and the portability of the using equipment for performing the interface test can be improved.
In some embodiments, as shown in fig. 9, the hard disk interface channel test apparatus 100 further includes a power module 180. The power module 180 includes a first power module and a second power module.
The first power supply module is connected to the hard disk interface module 120 and the channel switching module 130. For example, the first power module is a Direct Current to Direct Current Converter (DC/DC Converter), and is configured to convert a 12V voltage into a 5V voltage to drive the hard disk interface module 120 and the channel switching module 130 to operate. The first power supply module converts the electrical signal of the DC Jack into a 12V voltage through an external adapter.
The second power module is connected to the control module 110. For example, the second power module is a low dropout regulator (LDO) configured to convert a voltage of 5V into a voltage of 3.3V to drive the control module 110 to operate.
In other embodiments, the device 100 for testing a hard disk interface channel can simultaneously detect a plurality of hard disk interfaces 200 to be tested. The plurality of hard disk interfaces 200 to be tested may be the same or different.
The hard disk interface module 120 includes at least two first signal transmission channels 121 corresponding to the same preset transmission protocol. The at least two first signal transmission channels 121 are respectively used for connecting to-be-tested channels in different to-be-tested hard disk interfaces. The at least two first signal transmission channels 121 are connected to the channel switching module 130 in parallel, and the control signal generated by the control module 110 is used to control the conduction of the at least two first signal transmission channels 121 simultaneously. The different hard disk interfaces 200 to be tested correspond to different interface identifiers, and the control module 110 is further configured to distinguish channel test results of the different hard disk interfaces 200 to be tested according to the interface identifiers.
For example, as shown in fig. 10, the hard disk interface channel testing apparatus 100 detects three hard disk interfaces to be tested of the same type at the same time, that is, the channels to be tested in the three hard disk interfaces to be tested 200 are the same.
The hard disk interface module 120 includes a first signal transmission channel 121 corresponding to three predetermined transmission protocols. The same predetermined transmission protocol corresponds to three first signal transmission channels 121, and the three first signal transmission channels 121 are connected to the channel switching module 130 in a parallel manner. The multiple channel switching modules shown in fig. 10 may be integrated into one channel detection module, in other words, one channel detection module may be used to simultaneously connect multiple hard disk interface modules, and channel testing of multiple hard disk interfaces to be tested is also achieved.
The control module 110 generates a control signal for simultaneously controlling the three first signal transmission channels 121 based on the same predetermined transmission protocol to be conducted. The different to-be-tested hard disk interfaces 200 correspond to different interface identifiers, and the control module 110 may distinguish the channel test results of the different to-be-tested hard disk interfaces 200 according to the interface identifiers.
For example, in the embodiment of the present application, taking a USB transmission protocol as an example, a plurality of USB ports (i.e., hard disk interface modules) may be extended, and meanwhile, the reliability of the plurality of USB ports is detected. Further exemplarily, each USB channel may be connected in parallel to the D +/D-, RX/TX channel switch bus, and the host computer may assign a specific identifier to each USB interface, and when a certain USB channel FAILs to test FAIL, a specific certain USB may be identified according to the USB identifier. A plurality of USB test together, very big improvement the efficiency of test.
Based on the same inventive concept as the above embodiment, the present application also provides a method for testing a hard disk interface channel, and the content not explained in detail in the method embodiment may refer to the description of the above embodiment. As shown in fig. 11, the test method includes: s100 and S200.
S100: the control signal is generated by the control module 110.
For example, the control signal may be generated based on a test trigger operation or a test selection operation of a user on a certain channel to be tested in the hard disk according to a test requirement of the user, or the control signal may also be generated based on communication information (indicating that the channel to be tested and the first signal transmission channel are already communicated) between the channel to be tested in the hard disk interface to be tested and the first signal transmission channel in the hard disk interface module; or the control module 110 may be connected to an upper computer, the upper computer transmits a preset transmission protocol based on which the channel to be tested in the hard disk interface 200 to be tested is to the control module 110, and the control module 110 generates a corresponding control signal.
Illustratively, the hard disk to be tested is a PSSD. It can be understood that, in the case that the hard disk to be tested is determined, the preset transmission protocol of the channel to be tested of the interface to be tested 200 may be obtained by querying the related technology.
S200: the channel switching module 130 obtains the control signal, and controls the first signal transmission channel 121 of the hard disk interface module 120 to be conducted according to the control signal, so that the data transmission test is performed on the channel to be tested in the hard disk interface 200 to be tested, which is connected to the first signal transmission channel 121, when the first signal transmission channel 121 is in a conducting state.
Illustratively, the channel switching module 130 includes at least one switching circuit 131, and one switching circuit 131 is connected to one first signal transmission channel 121. The control module 110 is configured to generate control signals for different switch circuits 131 for controlling the conduction of the different switch circuits 131.
The channel switching module 130 is configured to control, according to a corresponding relationship between the control signal and the switch circuit 131, the switch circuits 131 connected to each first signal transmission channel 121 to be turned on one by one according to a preset sequence, so that when each first signal transmission channel 121 is in a conducting state, a data transmission test is performed on a channel to be tested in the hard disk interface 200 to be tested, which is connected to each first signal transmission channel 121.
It should be noted that the "preset order" refers to setting according to the requirement, for example, according to the priority level of the preset transmission protocol on which the channel is based.
Or, the channel switching module 130 is configured to control conduction of the plurality of switch circuits 131 simultaneously according to a corresponding relationship between the control signal and the switch circuit 131, where each switch circuit 131 is connected to a different first signal transmission channel 121, so that when the plurality of first signal transmission channels 121 are in a conduction state, data transmission test is performed on a channel to be tested in the hard disk interface to be tested 200, where the plurality of first signal transmission channels 121 are respectively connected to the channel to be tested.
Based on this, data is transmitted between the hard disk interface 200 to be tested and the processing terminal 150 through a path formed by the second signal transmission channel 141 of the data transmission module 140 and the first signal transmission channel 121, and the channel to be tested in the hard disk interface 200 to be tested connected with the first signal transmission channel 121 is tested.
Illustratively, in the case where the first signal transmission channel 121 and the second signal transmission channel 141 form a path, a data read test is performed on a channel to be tested in the hard disk interface to be tested 200 connected to the first signal transmission channel 121 by transmitting data in the hard disk to be tested connected to the first signal transmission channel 121 to the processing terminal 150.
Under the condition that the first signal transmission channel 121 and the second signal transmission channel 141 form a channel, data writing test is performed on the channel to be tested in the hard disk interface to be tested 200 connected with the first signal transmission channel 121 by transmitting data in the processing terminal 150 to the hard disk to be tested connected with the first signal transmission channel 121. The data writing test and the data reading test are both good, and the hard disk interface 200 to be tested is good; otherwise, the hard disk interface 200 to be tested fails.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations may be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A hard disk interface channel testing device is characterized by comprising:
the hard disk interface module comprises a first signal transmission channel, the first signal transmission channel is connected with a channel to be tested in the hard disk interface to be tested through a channel pin in the hard disk interface to be tested, and the first signal transmission channel and the channel to be tested are respectively used for data transmission based on a preset transmission protocol;
a control module configured to generate a control signal for controlling conduction of the first signal transmission channel;
and the channel switching module is connected with the control module and the hard disk interface module and is used for receiving the control signal of the control module and controlling the conduction of the first signal transmission channel according to the control signal, so that the data transmission test is carried out on the channel to be tested in the hard disk interface to be tested, which is connected with the first signal transmission channel, under the condition that the first signal transmission channel is in a conduction state.
2. The device of claim 1, wherein the hard disk interface module comprises at least one first signal transmission channel, and the at least one first signal transmission channel performs data transmission based on different preset transmission protocols;
the channel switching module comprises at least one switch circuit, and one switch circuit is connected with one first signal transmission channel;
the control module is used for generating control signals aiming at different switch circuits so as to control the conduction of the different switch circuits.
3. The apparatus of claim 2, wherein the channel switching module is configured to:
according to the corresponding relation between the control signals and the switch circuits, the switch circuits connected with each first signal transmission channel are controlled to be conducted one by one according to a preset sequence, so that data transmission testing is conducted on the channel to be tested in the hard disk interface to be tested, which is connected with each first signal transmission channel, when each first signal transmission channel is in a conducting state;
or,
and simultaneously controlling the conduction of the plurality of switch circuits according to the corresponding relation between the control signals and the switch circuits, wherein each switch circuit is connected with different first signal transmission channels, so that under the condition that the plurality of first signal transmission channels are in a conduction state, data transmission test is simultaneously carried out on the channels to be tested in the hard disk interfaces to be tested, which are respectively connected with the plurality of first signal transmission channels.
4. The apparatus according to claim 1 or 2, wherein the hard disk interface module comprises at least two first signal transmission channels, and the at least one first signal transmission channel comprises a signal transmission channel supporting data transmission based on a first preset transmission protocol, and at least one signal transmission channel supporting data transmission based on a second preset transmission protocol, and a version number of the second preset transmission protocol is higher than a version number of the first preset transmission protocol.
5. The apparatus of claim 1, further comprising: the system comprises a data transmission module and a processing terminal;
the data transmission module comprises a second signal transmission channel corresponding to the first signal transmission channel;
the data transmission module is respectively connected with the channel switching module and the processing terminal;
and when the first signal transmission channel is in a conducting state, the first signal transmission channel and the second signal transmission channel form a channel so as to transmit data between the hard disk interface to be tested and the processing terminal and test the channel to be tested in the hard disk interface to be tested, which is connected with the first signal transmission channel.
6. The apparatus of claim 5, wherein the test results of the channel under test comprise a data read test and a data write test;
the first signal transmission channel is connected with the channel switching module through a first signal line, the channel switching module is also connected with the second signal transmission channel through a second signal line, and the types of the first signal line and the second signal line are related to a preset transmission protocol supported by the first signal transmission channel;
under the condition that the first signal transmission channel and the second signal transmission channel form a channel, data in the hard disk to be tested connected with the first signal transmission channel are transmitted to the processing terminal, and data reading test is conducted on the channel to be tested in the hard disk interface to be tested connected with the first signal transmission channel;
and under the condition that the first signal transmission channel and the second signal transmission channel form a channel, data writing test is carried out on a channel to be tested in a hard disk interface to be tested, which is connected with the first signal transmission channel, by transmitting the data in the processing terminal to the hard disk to be tested, which is connected with the first signal transmission channel.
7. The device of claim 1, wherein the hard disk interface module comprises at least two first signal transmission channels corresponding to a same preset transmission protocol;
the at least two first signal transmission channels are respectively used for connecting to-be-tested channels in different to-be-tested hard disk interfaces;
the at least two first signal transmission channels are connected with the channel switching module in a parallel connection mode, and the control signal generated by the control module is used for simultaneously controlling the conduction of the at least two first signal transmission channels;
the control module is used for distinguishing channel test results of different hard disk interfaces to be tested according to the interface identifiers.
8. The apparatus of claim 5, wherein the processing terminal comprises a display module;
the display module is used for displaying the test result of the channel to be tested according to the corresponding relation between the channel to be tested and the test result;
and/or the presence of a gas in the atmosphere,
the display module is used for displaying a control interface, a channel selection control is displayed on the control interface, and the display module is used for responding to the triggering operation of a user on the channel selection control and generating a channel selection instruction; the channel selection instruction carries a preset transmission protocol corresponding to the channel to be detected selected by the user;
the control module is configured to generate a control signal for the first signal transmission channel based on a preset transmission protocol carried in the channel selection instruction, where the first signal transmission channel supports data transmission based on the preset transmission protocol carried in the channel selection instruction.
9. The apparatus of claim 8, further comprising an interface power consumption acquisition module; the interface power consumption acquisition module is connected with a power pin in the interface of the hard disk to be tested and is used for acquiring the power consumption of the hard disk to be tested in the process of carrying out data transmission test on the channel to be tested;
the display module is also used for displaying the power consumption of the hard disk to be tested.
10. A test method of a hard disk interface channel is characterized in that the test method is applied to the hard disk interface channel test device of any one of claims 1 to 9;
the test method comprises the following steps:
generating a control signal through a control module;
the control signal is obtained through a channel switching module, and a first signal transmission channel of the hard disk interface module is controlled to be conducted according to the control signal, so that data transmission testing is conducted on a channel to be tested in the hard disk interface to be tested, which is connected with the first signal transmission channel, under the condition that the first signal transmission channel is in a conducting state.
CN202211182860.2A 2022-09-27 2022-09-27 Hard disk interface channel testing device and testing method thereof Pending CN115658398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211182860.2A CN115658398A (en) 2022-09-27 2022-09-27 Hard disk interface channel testing device and testing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211182860.2A CN115658398A (en) 2022-09-27 2022-09-27 Hard disk interface channel testing device and testing method thereof

Publications (1)

Publication Number Publication Date
CN115658398A true CN115658398A (en) 2023-01-31

Family

ID=84985231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211182860.2A Pending CN115658398A (en) 2022-09-27 2022-09-27 Hard disk interface channel testing device and testing method thereof

Country Status (1)

Country Link
CN (1) CN115658398A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116453579A (en) * 2023-06-09 2023-07-18 深圳市金胜电子科技有限公司 Portable solid state disk power consumption testing device with display

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116453579A (en) * 2023-06-09 2023-07-18 深圳市金胜电子科技有限公司 Portable solid state disk power consumption testing device with display
CN116453579B (en) * 2023-06-09 2023-09-12 深圳市金胜电子科技有限公司 Portable solid state disk power consumption testing device with display

Similar Documents

Publication Publication Date Title
CN108475227B (en) Test functional assembly and data debugging method
US7015714B2 (en) Testing device for printed circuit boards
US20080133165A1 (en) Test apparatus and device interface
US20120324131A1 (en) Automatic detection device, system and method for inter-integrated circuit and serial general purpose input/output
CN106776183B (en) Debugging circuit, debugging device, modulation system and electronic equipment
CN106526456B (en) Integrated circuit on-line testing device and testing method
CN113960443B (en) IO static parameter testing method and system
CN109884517B (en) Chip to be tested and test system
CN101769986B (en) Test device and test method thereof
CN115658398A (en) Hard disk interface channel testing device and testing method thereof
CN211062033U (en) Test adapter and test equipment
CN101750578A (en) Automatic test system for integrated circuit board electrodes
CN203084153U (en) Chip testing system
CN105071484A (en) Charging method and apparatus of terminal having data exchange function
CN117290189B (en) Monitoring control system for memory chip CP testing machine
CN112162894B (en) Chip and debugging subassembly, debug system thereof
CN102455965A (en) Electronic device test system and method
CN220773578U (en) Testing device for universal serial bus interface
CN212809187U (en) Automatic test development board of communication module
CN117743049A (en) Test tool and test method for server to-be-tested mainboard interface
CN112763893A (en) Mainboard test system and method of intelligent terminal
CN113985321B (en) Cable connection performance testing device and method with intelligent self-learning capability
CN112860606A (en) Interface conversion device and equipment
CN106803776B (en) Radio frequency front end testing device and radio frequency front end testing method
CN214540463U (en) Relay board for switching and detecting multiple paths of signals

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