A communication device testing method
Through the FPGA processing unit and the test device with multiple communication interfaces, the versatility and reliability issues of the communication device test system are solved, high-rate signal output adapted to a variety of communication devices is achieved, the test operation is simplified and the maintenance cost is reduced.
Patent Information
- Application Number
- CN202211326853.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-10-26
AI Technical Summary
Due to the diversified communication interfaces and different excitation signal waveforms, the existing communication device testing system has poor versatility, is difficult to recycle, and is difficult and time-consuming to maintain and modify.
Design a communication device testing method that connects the host computer and signal source device through the FPGA processing unit and a variety of communication interface test devices to achieve dynamic setting of the communication interface and signal waveform conversion, and supports high-rate signal output of different communication devices , simplifying the construction and operation of the test system.
It enables a single test device to adapt to multiple communication devices, improves the versatility and reliability of the test system, saves test time, simplifies operations, and reduces maintenance costs.
Smart Images

Figure CN115834455B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and more particularly to a communication device testing method. Background Art
[0002] In the communication protocols of some control systems, different communication device products often have different control interface requirements, such as RS485 interface, CAN interface, I2C interface, etc. Before product delivery, it is necessary to simulate the customer's communication and control to verify the product's functions and indicators. The general approach is to build a temporary test system for various types of communication device products.
[0003] However, due to the diversity of communication interfaces of various products and different excitation signal waveforms, the temporary test system has poor versatility and is difficult to recycle into multiple products. In addition, due to its own poor reliability, subsequent maintenance and modification become difficult, and it takes a long time to rebuild the test system.
[0004] Therefore, it is urgent to design a testing method that is highly versatile, can be used in various communication devices, and is adaptable to different communication interfaces and different excitation signal waveforms of various communication devices. Summary of the invention
[0005] In order to overcome the shortcomings and deficiencies in the prior art, the purpose of the present invention is to provide a communication device testing method; this method can enable a single test device to be used in various communication devices and adapt to different communication interfaces and different excitation signal waveforms of each communication device, and can output high-speed signals with good reliability. The test system can be easily built, saving test time and simplifying test operations.
[0006] In order to achieve the above object, the present invention is implemented by the following technical scheme: a communication device testing method, characterized in that: the test device is connected to the host computer, the communication device and the signal source device respectively to achieve the test; the test device includes an FPGA processing unit and several communication interfaces;
[0007] The communication device testing method comprises the following steps:
[0008] S1. Connect the host computer and the signal source device to the test device respectively, and connect the signal source device to the excitation input interface of the communication device; determine the communication interface corresponding to the control interface of the communication device and the communication interface corresponding to the debugging interface of the communication device in the test device according to the control interface and the debugging interface of the communication device; connect the control interface and the debugging interface of the communication device to the communication interface corresponding to the test device through the data connection line;
[0009] S2. According to the communication interfaces in the test device respectively connected to the control interface and the debugging interface of the communication device, a transceiver switch setting instruction is set; the host computer sends the transceiver switch setting instruction to the test device, and the test device sets the communication interface connected to the control interface and the debugging interface of the communication device to be turned on and the other communication interfaces to be turned off according to the transceiver switch setting instruction; thereafter, the test device transmits the transceiver switch setting instruction back to the host computer;
[0010] S3, the host computer sends one or more of the status query instruction, signal waveform setting instruction and debugging instruction to the test device;
[0011] When the test device receives the status query instruction, it converts the received low-rate status query instruction into a high-rate status query instruction, and then sends it to the communication device through the control interface of the communication device; the communication device obtains a status report instruction according to its own status, and transmits it to the test device at a high rate through the control interface of the communication device; then the test device converts the high-rate status report instruction into a low-rate status report instruction and transmits it back to the host computer;
[0012] When the test device receives the signal waveform setting instruction, it obtains the duty cycle setting parameters of the high pulse waveform according to the signal waveform setting instruction, and the test device outputs the high pulse waveform to the signal source device according to the duty cycle setting parameters of the high pulse waveform; the signal source device outputs the corresponding excitation signal to the communication device according to the received high pulse waveform; thereafter, the test device transmits the signal waveform setting instruction back to the host computer;
[0013] When the test device receives the debugging instruction, it converts the received low-rate debugging instruction into a high-rate debugging instruction, and then sends it to the communication device through the debugging interface of the communication device; the communication device adjusts the parameters of the communication device according to the debugging instruction, and transmits the debugging instruction back to the test device; thereafter, the test device converts the high-rate debugging instruction into a low-rate debugging instruction and transmits it back to the host computer;
[0014] Repeat S3 until the test is completed.
[0015] Preferably, a one-to-one connection or a one-to-many connection is adopted between the host computer and the test device.
[0016] Among them, when a one-to-one connection is adopted between the host computer and the test device, the test device communicates with the host computer through the UART interface.
[0017] When a one-to-many connection is adopted between the host computer and the test devices, all the test devices communicate with the host computer through the bus; each test device sets a device address respectively; the communication between the host computer and each test device is realized by putting the device address information into the transceiver switch setting instruction, status query instruction, signal waveform setting instruction and debugging instruction.
[0018] Preferably, in S2, the transceiver switch setting instruction includes number information of the communication interface set to be turned on, and working state setting information of the communication interface set to be turned on.
[0019] Preferably, in S3, the status query instruction includes query parameter information; and the status reporting instruction includes voltage status information, current status information, temperature status information, fan status information and segment selection status information.
[0020] Preferably, in said S3, the signal waveform setting instruction includes duty cycle setting information.
[0021] Preferably, in S3, the debugging instruction includes adjustment parameters and increase / decrease adjustment amount information corresponding to the adjustment parameters.
[0022] Preferably, the communication interface of the testing device includes: RS485 interface, LVDS interface, CAN interface, RS232 interface, I2C interface, 1.8V / 3.3V / 5VTTL interface.
[0023] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0024] 1. In the present invention, the tester can set the transceiver switch setting instruction, status query instruction, signal waveform setting instruction and debugging instruction according to the communication interface and required excitation signal of different communication devices, and complete the construction of the communication device test system; a single test device can be used in various communication devices and adapt to different communication interfaces and different excitation signal waveforms of each communication device, and can output high-speed signals, with good reliability, convenient troubleshooting and maintenance; the tester does not need to set up test systems for various communication devices respectively, which can save test time and simplify test operations;
[0025] 2. The present invention adopts a one-to-many connection between the host computer and the test device, which reduces the occupancy of the host computer and saves the test cost; at the same time, it is conducive to the regular arrangement of the test device and the communication device, and the convenient setting of the test device parameters, which is convenient for the test personnel to conduct the test. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a structural connection block diagram of the communication device testing method of the present invention;
[0027] Figure 2 It is a schematic diagram of the transmission path of the transceiver switch setting instruction in the communication device testing method of the present invention;
[0028] Figure 3 It is a schematic diagram of the transmission path of the status query instruction and the status reporting instruction in the communication device testing method of the present invention;
[0029] Figure 4 It is a schematic diagram of the transmission path of the signal waveform setting instruction in the communication device testing method of the present invention;
[0030] Figure 5 It is a schematic diagram of the transmission path of the debugging instruction in the communication device testing method of the present invention. DETAILED DESCRIPTION
[0031] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0032] Embodiment 1
[0033] This embodiment provides a communication device testing method, which is implemented by connecting the testing device to the host computer, the communication device and the signal source device respectively. Figure 1 As shown; the test device includes an FPGA processing unit and several communication interfaces;
[0034] The communication device testing method comprises the following steps:
[0035] S1. Connect the host computer and the signal source device to the test device respectively, and connect the signal source device to the excitation input interface of the communication device; determine the communication interface corresponding to the control interface of the communication device and the communication interface corresponding to the debugging interface of the communication device in the test device according to the control interface and the debugging interface of the communication device; connect the control interface and the debugging interface of the communication device to the corresponding communication interface of the test device through a data connection line.
[0036] S2. According to the communication interfaces in the test device that are respectively connected to the control interface and the debugging interface of the communication device, set the transceiver switch setting instruction; the transceiver switch setting instruction includes the number information of the communication interface set to be turned on, and the working state setting information of the communication interface set to be turned on. The host computer sends the transceiver switch setting instruction to the test device, and the test device sets the communication interface connected to the control interface and the debugging interface of the communication device to be turned on, and sets the other communication interfaces to be turned off according to the transceiver switch setting instruction; then, the test device transmits the transceiver switch setting instruction back to the host computer, such as Figure 2 shown.
[0037] S3. The host computer sends one or more of the status query instruction, signal waveform setting instruction and debugging instruction to the test device.
[0038] The status query instruction includes query parameter information; the status reporting instruction includes voltage status information, current status information, temperature status information, fan status information and segment selection status information. When the test device receives the status query instruction, it converts the received low-rate status query instruction into a high-rate status query instruction, and then sends it to the communication device through the control interface of the communication device; the communication device derives the status reporting instruction according to its own status, and transmits it to the test device at a high rate through the control interface of the communication device; then the test device converts the high-rate status reporting instruction into a low-rate status reporting instruction and transmits it back to the host computer, such as Figure 3 shown.
[0039] The signal waveform setting instruction includes duty cycle setting information. When the test device receives the signal waveform setting instruction, it obtains the duty cycle setting parameters of the high pulse waveform according to the signal waveform setting instruction, and the test device outputs the high pulse waveform to the signal source device according to the duty cycle setting parameters of the high pulse waveform; the signal source device outputs the corresponding excitation signal to the communication device according to the received high pulse waveform; then, the test device transmits the signal waveform setting instruction back to the host computer, such as Figure 4 shown.
[0040] The debugging instruction includes the adjustment parameters and the increase or decrease adjustment amount information corresponding to the adjustment parameters. When the test device receives the debugging instruction, it converts the received low-rate debugging instruction into a high-rate debugging instruction, and then sends it to the communication device through the debugging interface of the communication device; the communication device adjusts the parameters of the communication device according to the debugging instruction, and returns the debugging instruction to the test device; then, the test device converts the high-rate debugging instruction into a low-rate debugging instruction and returns it to the host computer, such as Figure 5 shown.
[0041] Repeat S3 until the test is completed.
[0042] A one-to-one connection is adopted between the host computer and the test device, and the test device communicates with the host computer through the UART interface.
[0043] According to the present invention, the test personnel can complete the construction of the communication device test system by setting the transceiver switch setting instructions, status query instructions, signal waveform setting instructions and debugging instructions according to the communication interfaces and required excitation signals of different communication devices; a single test device can be used in various communication devices and adapt to different communication interfaces and different excitation signal waveforms of each communication device, and can output high-speed signals, with good reliability and convenient troubleshooting and maintenance; the test personnel do not need to build test systems for various communication devices respectively, which can save test time and simplify test operations.
[0044] Embodiment 2
[0045] The present embodiment is a communication device testing method, which is different from the first embodiment in that: in the present embodiment, a one-to-many connection is used between the host computer and the test device; all the test devices communicate with the host computer through the bus; each test device sets a device address respectively; the communication between the host computer and each test device is realized by putting the device address information into the transceiver switch setting instruction, the status query instruction, the signal waveform setting instruction and the debugging instruction. A one-to-many connection is used between the host computer and the test device to reduce the occupancy of the host computer and save the test cost; at the same time, it is conducive to the regular arrangement of the test device and the communication device, and the convenient setting of the test parameters, so as to facilitate the test personnel to conduct the test.
[0046] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.
Claims
1. A communication device testing method, characterized in that: This is achieved by connecting the test device to the host computer, the communication device and the signal source device respectively; the test device includes an FPGA processing unit and several communication interfaces; The communication device testing method comprises the following steps: S1. Connect the host computer and the signal source device to the test device respectively, and connect the signal source device to the excitation input interface of the communication device; determine the communication interface corresponding to the control interface of the communication device and the communication interface corresponding to the debugging interface of the communication device in the test device according to the control interface and the debugging interface of the communication device; connect the control interface and the debugging interface of the communication device to the communication interface corresponding to the test device through the data connection line; S2. According to the communication interfaces in the test device respectively connected to the control interface and the debugging interface of the communication device, a transceiver switch setting instruction is set; the host computer sends the transceiver switch setting instruction to the test device, and the test device sets the communication interface connected to the control interface and the debugging interface of the communication device to be turned on and the other communication interfaces to be turned off according to the transceiver switch setting instruction; thereafter, the test device transmits the transceiver switch setting instruction back to the host computer; S3, the host computer sends one or more of the status query instruction, signal waveform setting instruction and debugging instruction to the test device; When the test device receives the status query instruction, it converts the received low-rate status query instruction into a high-rate status query instruction, and then sends it to the communication device through the control interface of the communication device; The communication device obtains a status reporting instruction according to its own status, and transmits it to the test device at a high rate through the control interface of the communication device; Afterwards, the test device converts the high-rate status reporting instruction into a low-rate status reporting instruction and transmits it back to the host computer; When the test device receives the signal waveform setting instruction, the duty cycle setting parameter of the high pulse waveform is obtained according to the signal waveform setting instruction, and the test device outputs the high pulse waveform to the signal source device according to the duty cycle setting parameter of the high pulse waveform; The signal source device outputs a corresponding excitation signal to the communication device according to the received high pulse waveform; Afterwards, the test device transmits the signal waveform setting instruction back to the host computer; When the test device receives the debugging instruction, it converts the received low-rate debugging instruction into a high-rate debugging instruction, and then sends it to the communication device through the debugging interface of the communication device; The communication device adjusts the parameters of the communication device according to the debugging instruction, and transmits the debugging instruction back to the test device; then, the test device converts the high-rate debugging instruction into a low-rate debugging instruction and transmits it back to the host computer; Repeat S3 until the test is completed.
2. The communication device testing method according to claim 1, characterized in that: The host computer and the test device are connected in a one-to-one or one-to-many manner.
3. The communication device testing method according to claim 2, wherein: When a one-to-one connection is adopted between the host computer and the test device, the test device communicates with the host computer through the UART interface.
4. The communication device testing method according to claim 2, wherein: When a one-to-many connection is adopted between the host computer and the test devices, all the test devices communicate with the host computer through the bus; each test device sets a device address respectively; the communication between the host computer and each test device is realized by putting the device address information into the transceiver switch setting instruction, status query instruction, signal waveform setting instruction and debugging instruction.
5. The communication device testing method according to claim 1, wherein: In S2, the transceiver switch setting instruction includes the number information of the communication interface set to be turned on, and the working state setting information of the communication interface set to be turned on.
6. The communication device testing method according to claim 1, characterized in that: In S3, the status query instruction includes query parameter information; the status reporting instruction includes voltage status information, current status information, temperature status information, fan status information and segment selection status information.
7. The communication device testing method according to claim 1, characterized in that: In the above-mentioned S3, the signal waveform setting instruction includes duty cycle setting information.
8. The communication device testing method according to claim 1, wherein: In S3, the debugging instruction includes the adjustment parameter and the increase or decrease adjustment amount information corresponding to the adjustment parameter.
9. The communication device testing method according to claim 1, wherein: The test device has communication interfaces including: RS485 interface, LVDS interface, CAN interface, RS232 interface, I2C interface, and 1.8V / 3.3V / 5VTTL interface.
