WO2013097221A1 - Method for communication between centre machine and test terminal in distributed test system - Google Patents

Method for communication between centre machine and test terminal in distributed test system Download PDF

Info

Publication number
WO2013097221A1
WO2013097221A1 PCT/CN2011/085142 CN2011085142W WO2013097221A1 WO 2013097221 A1 WO2013097221 A1 WO 2013097221A1 CN 2011085142 W CN2011085142 W CN 2011085142W WO 2013097221 A1 WO2013097221 A1 WO 2013097221A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
command
data
frame
address
Prior art date
Application number
PCT/CN2011/085142
Other languages
French (fr)
Chinese (zh)
Inventor
孟真
阎跃鹏
于进勇
Original Assignee
中国科学院微电子研究所
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 中国科学院微电子研究所 filed Critical 中国科学院微电子研究所
Priority to PCT/CN2011/085142 priority Critical patent/WO2013097221A1/en
Publication of WO2013097221A1 publication Critical patent/WO2013097221A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present invention relates to the field of control and data transmission technologies of a distributed test system, and more particularly, to a method between a central machine and a test terminal of a distributed test system.
  • the method of communication is applicable to distributed test systems with a large number of test terminals.
  • the distributed test system is suitable for a centralized control system.
  • the equipment in the system is divided into two types according to functions: central control unit and test terminal.
  • the central unit is the system control and data processing core. It is used to collect and analyze the test results of each terminal, and issue corresponding control commands according to the test results to control the entire test.
  • the operation of the system; the test terminal is responsible for performing parameter testing and returning test data according to the commands of the central machine.
  • the distributed test system has flexible scalability according to the test environment and the change of the test scale. Therefore, the function of a certain device in the system is not constant, but is flexible according to the change of the system. Set.
  • the control command of the downlink communication from the central machine to the test terminal transmits the data transmission of the uplink communication from the test terminal to the central machine, and a separate and different communication protocol is adopted.
  • the communication mode since the manner in which the central machine and the test terminal are transmitted and received is different, the communication software of the device needs to be replaced when the function of the device changes in the system, and the replacement process is for a large-scale distributed
  • the test system is very cumbersome and complicated.
  • the main object of the present invention is to provide a method for communication between a central machine and a test terminal of a distributed test system, so as to simplify the process of replacing the communication software when the device function is changed in the distributed test system, which is convenient. Flexible expansion of distributed test systems.
  • the present invention provides a method for communicating between a central machine and a test terminal of a distributed test system, including: a central machine of the distributed test system issues a command to the test terminal; and a distributed test system
  • the test terminal returns test data to the central machine; wherein, the central machine sends a command to the test terminal and the test terminal returns the test data to the central machine using the same frame structure, and the same frame structure includes a frame header, a frame length description, and an address.
  • command length description, data length description, verification method description, address, command, data, checksum, and frame end includes a frame header, a frame length description, and an address.
  • the basic constituent unit of the frame structure is a frame section, which includes four parts: a start bit, a data bit, a parity bit, and an end bit.
  • the central machine of the distributed test system sends a command to the test terminal, including: the central machine sends a command to all test terminals connected in parallel; the test device detects that the ⁇ structure of the command starts.
  • Receiving the command, and calculating the address, command, data, and school in the structure according to the frame length description, the address and command length description, the data length description, and the verification mode description part of the fixed frame length in the frame structure The length of the frame section of the verification part; each test terminal judges whether the command of the central machine is sent to itself, and if so, the test terminal continues to receive the content of the remaining part of the structure; if not, the test terminal stops receiving the message The content of the remaining part of the structure, and deleting the information of the received self-scratch part; the test terminal continuing to receive the remaining part of the structure obtains the test task according to the content of the command part of the structure that is continuously received, and according to the structure of the structure The data part of the content gets the specific test operation under this command, and then according
  • the test terminal of the distributed test system returns the test data to the central machine, including: after the test is completed, the test terminal monitors whether there are other test terminals on the parallel communication bus communicating with the central machine, if any, Then the test terminal waits until the communication ends, and sends test data to the central machine through the parallel communication bus; if not, sends the test data to the central machine through the parallel communication bus; the central machine detects the header portion of the test structure Then, the test data is received, and then according to the content of the address part of the structure, it is determined from which test terminal the structure is from, and according to the content of the command part of the structure, the test data returned by the structure is the central machine.
  • test data of the test content required by the terminal the central machine verifies the data of the structure according to the check portion of the structure, and if the verification is correct, the data of the structure is stored after the end of the file Or processing, if the verification is wrong, the center machine goes to the test terminal A test data retransmission commands, re-transmission of data until the check is correct, the received test data done correctly.
  • the present invention has the following beneficial effects:
  • the method for communication between a central machine and a test terminal of the distributed test system provided by the present invention, the control command and the data transmission are collected in the same frame structure, and the same can be used in the two-way communication between the central machine and the test terminal.
  • the frame structure effectively simplifies the process of replacing the communication software when the device function changes in the distributed test system, which facilitates the flexible expansion of the distributed test system.
  • the basic unit of the frame structure is a frame section, and the frame section can set the start bit and the end bit to perform different communication, which is convenient.
  • the distributed test system uses different communication methods such as peer communication and different communication.
  • the method for communicating between a central machine and a test terminal of the distributed test system provided by the present invention has a multi-level address structure for multi-level address addressing of a large number of terminals included in the system, and has a large capacity.
  • FIG. 1 is a schematic diagram of a frame structure used when communication between a central machine and a test terminal of a distributed test system provided by the present invention
  • FIG. 2 is a schematic diagram of a basic constituent unit frame section of the frame structure shown in FIG. 1;
  • FIG. 3 is a schematic diagram of a distributed test system having a multi-level address structure in accordance with an embodiment of the present invention
  • FIG. 4 is a flow chart of a method for communicating between a central machine and a test terminal of a distributed test system according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a basic constituent unit frame section of a frame structure employed in the embodiment shown in Figure 4;
  • FIG. 6 is a schematic illustration of the frame structure employed in the embodiment of Figure 4.
  • FIG. 1 is a schematic diagram of a frame structure used when communication between a central machine and a test terminal of the distributed test system provided by the present invention.
  • the frame structure includes a frame header, a frame length description, an address and command length description, a data length description, a verification mode description, an address, a command, a data, a checksum, and a frame end.
  • the frame length description, the address, and the command are included.
  • the length of the frame section of the length description, the data length description, and the verification mode description is fixed, and the length of the frame section of the address, command, data, and checksum is variable.
  • the length of the frame section of the address part is variable, and the multi-level address structure can be realized, which conforms to the system expansion mode of the distributed test system; the length of the frame section of the command part and the data part is variable, and the command and data can be commanded during command transmission and data transmission.
  • Set different lengths; the length of the frame section of the check part is variable, and different check codes can be used according to different channel environments between different central machines and test terminals.
  • the basic component of the above frame structure is a frame section, and its structure is as shown in FIG.
  • the frame section includes a start bit, a data bit, a check bit and an end bit, wherein the start bit is used to mark the start information when the communication mode adopts the different communication, and the data bit is used to store the part included in the frame structure.
  • the content of the check digit is used to encode and verify each frame section, and the end bit is used to mark the termination information when the communication mode uses heterogeneous communication.
  • FIG. 1 An example of the application of a frame structure is given in the present invention, and this frame structure is applied to a distributed test system having a multi-level address structure as shown in FIG.
  • This distributed test system uses a central machine to control the operation of the entire system.
  • the central unit is connected in parallel with each test terminal through the parallel communication bus to realize the terminal distribution pattern with the same priority.
  • the distributed test system shown in Figure 3 uses A and B total two-level address structure, in which the A-level address structure contains 128 addresses, and the B-level address structure contains 80 addresses. This 2-level address structure can be used for 10240 test terminals. Real-time control and test data backhaul.
  • the distributed test system shown in Figure 3 contains 110 test ports per test terminal. Table 1 shows some of the commands and corresponding functions of the test system. Table 2 shows some of the calibration methods and their codes in the ⁇ structure.
  • Table 2 Calibration methods and corresponding code examples in distributed test systems
  • the central machine of the distributed test system shown in FIG. 3 uses the ⁇ structure to send commands to the test terminal and the test terminal uses the ⁇ structure to return test data to the central machine as an example to illustrate how the present invention applies the same frame.
  • the structure realizes the communication between the central machine and the test terminal of the distributed test system.
  • the specific communication process is shown in FIG. 4, and includes the following steps: Step 1: The central machine of the distributed test system uses the structure to the test terminal When a test process is started, the central machine first sends a command to all test terminals connected in parallel through the parallel communication bus according to the test requirements.
  • the command has the structure shown in FIG.
  • the header of the ⁇ structure that detects the command starts to receive the command, and according to the frame length description, the address and command length description, the data length description and the verification mode description part of the fixed frame section length in the ⁇ structure, Calculate the frame length of the address, command, data, and check portion of the structure, and then test the root of each test terminal.
  • the known self address and the address information in the structure determine whether the command of the central machine is sent to itself. If the address of the own machine is the same as the address in the structure, it is sent to itself, and the test terminal continues to receive the command. The content of the rest of the structure; if the address of the self is different from the address in the structure, it is not sent to itself, the test terminal stops receiving the content of the remaining part of the structure, and deletes the information of the received self-head part;
  • the test terminal that continues to receive the remaining part of the structure obtains the test task according to the content of the command part of the structure that is continuously received, and obtains a specific test operation under the command according to the data part of the structure (for example, opening the test terminal)
  • the first port or the first parameter is tested, tested several times, etc., and then the information of the structure is verified according to the content of the check part of the structure. If the verification is correct, the tail is received.
  • the test process starts; if the check is wrong, the test terminal sends a retransmission command information to the center machine according to the structure until the correct command is completed and the correct command reception is completed.
  • Step 2 The test terminal of the distributed test system uses the ⁇ structure to return the test data to the central machine;
  • the test terminal that executes the test command starts to return the test data to the center machine.
  • the test terminal that executes the test command first monitors whether there are other test terminals on the parallel communication bus that are communicating with the central machine after the test is completed. If there is, the test is performed. The terminal waits until the communication ends, and sends test data to the central machine through the parallel communication bus; if not, sends the test data to the central machine through the parallel communication bus according to the ⁇ structure shown in FIG. 6;
  • the central part of the distributed test system detects that the header part of the test data begins to receive the test data, and then determines which test terminal the structure is from, based on the content of the address part of the structure, and according to the structure
  • the content of the command part is informed that the test data returned by the structure is the test data of the test content requested by the central machine for the test terminal;
  • the central machine checks the data of the structure according to the check portion of the structure. If the verification is correct, the data of the structure is stored or processed after the end of the file. If the verification is wrong, the center is The machine sends a command to retransmit the test data to the test terminal according to the ⁇ structure shown in FIG. 6, and retransmits the data until the verification is correct, and the correct test data reception is completed.
  • each frame section adopts 1 bit start bit, 8 bit data bits, no parity bit, and 2 bit end bit.
  • the start bit code word is set to 1, and the end bit code word is set to 0.
  • FIG. 6 is a schematic illustration of the frame structure employed in the embodiment of Figure 4 in accordance with the present invention.
  • the downlink command of the central machine indicates that the 98th port of the 1780th test terminal starts to work, and the length of each part included in the frame structure in the communication is given.
  • Detailed coding of each part is given.
  • the frame header and the end of the frame are set to: 1-00101010—00 and 1-00100011—00 respectively in this communication.
  • the first 6 bits of the address and command length description are the address length description area indicated by the binary number, and the last 2 bits are the command length description area indicated by the binary number.
  • the address length is 2 frame segments, and the command length is 1 frame segment. Therefore, the description of the address and command length is: 1-000010—01—00.
  • the data length in this communication is one frame section, so the data length part is: 1-00000001—00.
  • the first 4 bits of the verification mode description part are the information bit length description area, and the last 4 bits are the coding mode description area.
  • the verification method in this communication uses a set of CRC-16 checksums every 4 frame sections. According to the check mode command given above, the last 4 bits of the checksum are: 0011. A 32-bit CRC-16 check is used for each 32-bit information data, that is, a set of CRC-16 checksums is used for every 4 frame segments, so the first 4 bits of the check mode are 0100. Therefore, the description of the verification method is: 1—0100 —0011—00.
  • test system uses a 2-level address structure to control 10240 terminals, using 128 by 80, that is, there are 128 A-level addresses, each of which contains
  • each B-level address corresponds to one test terminal, and each test terminal contains 110 test ports.
  • the content of the first frame of the corresponding address part can be: 1 00000001 00 to 1—10000000—00; the content of the second frame section can be: 1 00000001 00 to 1—01010000—00.
  • the address part is the 1780th terminal, and in the level 2 address structure representation mode, the first level address is 23, and the second level address is 20. Therefore, the first frame section of the address part is: 1-00010111_00. The second frame section is: 1-00010100—00.
  • the content of the command part is to indicate that the port starts to work.
  • the command part is: 1-00010010—00.
  • the data part, the content is the port of indication 98, so: 1—01100010—00.
  • the frame length description, address and command length description, data length description, verification mode description, address, command, data, total length of 7 parts of this communication is 8 frame sections, and a set of CRC is used every 4 frame sections.
  • -16 Check, so the total length of the check part is 32 bits, that is, 4 frame sections. According to the generator polynomial of CRC-16, the contents of the 4-person frame section of the check portion are: 1-01011111-00, 1-0011110-100, 1-01000000-00, 1-01011010-00.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

Disclosed is a method for communication between a centre machine and a test terminal in a distributed test system, including: a centre machine of a distributed test system issuing a command to a test terminal; the test terminal of the distributed test system transferring test data back to the centre machine; and the centre machine issuing a command to the test terminal and the test terminal transferring test data back to the centre machine employing the same frame structure. The same frame structure includes 10 parts of a frame head, frame length description, address and command length description, data length description, check method description, address, command, data, check and frame end. The frame byte lengths of the frame length description, address and command length description, data length description and check method description are fixed, and the frame byte lengths of the address, command, data and check parts are variable. The present invention can be applied to effectively simplify the replacement process of communication software in a distributed test system when the functions of a device change, which facilitates the flexible extension of the distributed test system.

Description

分布式测试系统的中心机与测试终端之间进行通讯的方法 技术领域 本发明涉及分布式测试系统的控制和数据传输技术领域, 尤其涉及 一种分布式测试系统的中心机与测试终端之间进行通讯的方法, 适用于 包含大量测试终端的分布式测试系统。  TECHNICAL FIELD The present invention relates to the field of control and data transmission technologies of a distributed test system, and more particularly, to a method between a central machine and a test terminal of a distributed test system. The method of communication is applicable to distributed test systems with a large number of test terminals.
背景技术 含有大量测试终端的分布式测试系统在工业生产中具有广泛的应 用。 在测试过程中, 分布式测试系统需要根据对测试对象测量结果的变 化对测试终端进行动态的控制, 灵活的实施测试方案, 因此具有物理分 布、 并发访问、 时序敏感等特点。 BACKGROUND OF THE INVENTION Distributed test systems containing a large number of test terminals have a wide range of applications in industrial production. In the test process, the distributed test system needs to dynamically control the test terminal according to the change of the measurement result of the test object, and implement the test plan flexibly, so it has the characteristics of physical distribution, concurrent access, and timing sensitivity.
分布式测试对测试过程的流程控制要求较高, 需要实时获取全局状 态进而指导测试流程, 因此分布式测试系统适合采用集中式的控制体 系。 系统中的设备按功能分为中心机和测试终端两种, 中心机为系统控 制和数据处理核心, 用于汇集、 分析各终端的测试结果, 并根据测试结 果发出相应的控制命令, 控制整个测试系统的运行; 测试终端则负责根 据中心机的命令进行参量测试以及回传测试数据。  Distributed testing requires high process control for the test process and requires real-time access to the global state to guide the test process. Therefore, the distributed test system is suitable for a centralized control system. The equipment in the system is divided into two types according to functions: central control unit and test terminal. The central unit is the system control and data processing core. It is used to collect and analyze the test results of each terminal, and issue corresponding control commands according to the test results to control the entire test. The operation of the system; the test terminal is responsible for performing parameter testing and returning test data according to the commands of the central machine.
分布式测试系统根据测试环境的不同与测试规模的变化, 具有灵活 的可扩展性, 因此系统中某个设备的功能为中心机或是终端并非恒定不 变的, 而是根据系统的变化而灵活设定的。  The distributed test system has flexible scalability according to the test environment and the change of the test scale. Therefore, the function of a certain device in the system is not constant, but is flexible according to the change of the system. Set.
在现有的分布式测试系统中, 由中心机至测试终端的下行通讯的控 制命令传输与由测试终端至中心机的上行通讯的数据传输, 采取的是单 独的、 不同的通讯协议, 在这种通讯方式中, 由于中心机与测试终端的 发送和接收的方式是不同的, 因此在系统中设备的功能改变时就需要对 设备的通信软件进行更换, 该更换过程对于规模较大的分布式测试系统 而言是非常繁琐和复杂的。 发明内容 有鉴于此, 本发明的主要目的在于提供一种分布式测试系统的中心 机与测试终端之间进行通讯的方法, 以简化分布式测试系统在设备功能 改变时通讯软件的更换过程, 方便分布式测试系统的灵活扩展。 In the existing distributed test system, the control command of the downlink communication from the central machine to the test terminal transmits the data transmission of the uplink communication from the test terminal to the central machine, and a separate and different communication protocol is adopted. In the communication mode, since the manner in which the central machine and the test terminal are transmitted and received is different, the communication software of the device needs to be replaced when the function of the device changes in the system, and the replacement process is for a large-scale distributed The test system is very cumbersome and complicated. SUMMARY OF THE INVENTION In view of this, the main object of the present invention is to provide a method for communication between a central machine and a test terminal of a distributed test system, so as to simplify the process of replacing the communication software when the device function is changed in the distributed test system, which is convenient. Flexible expansion of distributed test systems.
为达到上述目的, 本发明提供了一种分布式测试系统的中心机与测 试终端之间进行通讯的方法, 包括: 分布式测试系统的中心机向测试终 端下发命令; 以及分布式测试系统的测试终端向中心机回传测试数据; 其中, 中心机向测试终端下发命令和测试终端向中心机回传测试数据采 用相同的帧结构, 该相同的帧结构包括帧头、 帧长说明、 地址和命令长 度说明、 数据长度说明、 校验方式说明、 地址、 命令、 数据、 校验以及 帧尾共 10个部分。  To achieve the above object, the present invention provides a method for communicating between a central machine and a test terminal of a distributed test system, including: a central machine of the distributed test system issues a command to the test terminal; and a distributed test system The test terminal returns test data to the central machine; wherein, the central machine sends a command to the test terminal and the test terminal returns the test data to the central machine using the same frame structure, and the same frame structure includes a frame header, a frame length description, and an address. And command length description, data length description, verification method description, address, command, data, checksum, and frame end.
上述方案中, 所述帧长说明、 地址和命令长度说明、 数据长度说明 以及校验方式说明部分的帧节长度是固定的, 所述地址、 命令、 数据以 及校验部分的帧节长度可变的。 所述帧结构的基本组成单元为帧节, 包 括起始位、 数据位、 校验位和结束位共 4个部分。  In the above solution, the frame length description, the address and command length description, the data length description, and the check mode description part of the frame length are fixed, and the address, the command, the data, and the check portion have a variable frame length. of. The basic constituent unit of the frame structure is a frame section, which includes four parts: a start bit, a data bit, a parity bit, and an end bit.
上述方案中, 所述分布式测试系统的中心机向测试终端下发命令, 包括: 中心机向并行连接的所有测试终端发送命令; 各测试终端检测到 该命令的桢结构的桢头则均开始接收该命令, 并根据该桢结构中固定帧 节长度的帧长说明、 地址和命令长度说明、 数据长度说明和校验方式说 明部分的内容, 计算出该桢结构中地址、 命令、 数据、 校验部分的帧节 长度; 各测试终端判断中心机的命令是否是发送给自己的, 如果是, 则 该测试终端继续接收该桢结构剩余部分的内容; 如果不是, 则该测试终 端停止收该桢结构剩余部分的内容, 并删除已接收的自桢头部分的信 息; 继续接收该桢结构剩余部分内容的测试终端根据继续接收的该桢结 构的命令部分内容获知测试任务, 并根据该桢结构的数据部分内容获取 在此命令下具体的测试操作, 然后根据该桢结构的校验部分内容对该桢 结构的信息进行校验, 如果校验正确, 则在接收完毕桢尾部分后即开始 测试过程; 如果校验错误, 则该测试终端按照该桢结构向中心机发出一 个重传命令的信息, 直至能够校验正确, 完成正确的命令接收。 上述方案中, 所述分布式测试系统的测试终端向中心机回传测试数 据, 包括: 在测试完成后, 测试终端监测并行通讯总线上是否有其它测 试终端正在与中心机进行通讯, 如果有, 则该测试终端等待直至通讯结 束, 并通过并行通讯总线向中心机发送测试数据; 如果没有, 则通过并 行通讯总线向中心机发送测试数据; 中心机检测到该测试数据的桢结构 的桢头部分则开始接收测试数据, 然后根据该桢结构的地址部分内容判 断出该桢结构是来自哪个测试终端, 并根据该桢结构的命令部分内容获 知该桢结构回传的测试数据是中心机对该测试终端要求进行何种测试 内容的测试数据; 中心机根据该桢结构的校验部分对该桢结构的数据进 行校验, 如果校验正确, 则在桢尾结束后对该桢结构的数据进行存储或 处理, 如果校验错误, 则中心机向该测试终端发出一个重传测试数据的 命令, 进行数据的重新传输,直至校验正确, 完成正确的测试数据接收。 In the above solution, the central machine of the distributed test system sends a command to the test terminal, including: the central machine sends a command to all test terminals connected in parallel; the test device detects that the 桢 structure of the command starts. Receiving the command, and calculating the address, command, data, and school in the structure according to the frame length description, the address and command length description, the data length description, and the verification mode description part of the fixed frame length in the frame structure The length of the frame section of the verification part; each test terminal judges whether the command of the central machine is sent to itself, and if so, the test terminal continues to receive the content of the remaining part of the structure; if not, the test terminal stops receiving the message The content of the remaining part of the structure, and deleting the information of the received self-scratch part; the test terminal continuing to receive the remaining part of the structure obtains the test task according to the content of the command part of the structure that is continuously received, and according to the structure of the structure The data part of the content gets the specific test operation under this command, and then according to the 桢The content of the verification part of the structure is verified by the information of the structure. If the verification is correct, the test process is started after the end of the tail is received; if the verification is wrong, the test terminal follows the structure to the center. Issue a message to retransmit the command until it can be verified correctly and complete the correct command reception. In the above solution, the test terminal of the distributed test system returns the test data to the central machine, including: after the test is completed, the test terminal monitors whether there are other test terminals on the parallel communication bus communicating with the central machine, if any, Then the test terminal waits until the communication ends, and sends test data to the central machine through the parallel communication bus; if not, sends the test data to the central machine through the parallel communication bus; the central machine detects the header portion of the test structure Then, the test data is received, and then according to the content of the address part of the structure, it is determined from which test terminal the structure is from, and according to the content of the command part of the structure, the test data returned by the structure is the central machine. The test data of the test content required by the terminal; the central machine verifies the data of the structure according to the check portion of the structure, and if the verification is correct, the data of the structure is stored after the end of the file Or processing, if the verification is wrong, the center machine goes to the test terminal A test data retransmission commands, re-transmission of data until the check is correct, the received test data done correctly.
从上述技术方案可以看出, 本发明具有以下有益效果:  As can be seen from the above technical solutions, the present invention has the following beneficial effects:
1、 本发明提供的分布式测试系统的中心机与测试终端之间进行通 讯的方法, 将控制命令和数据传输集合于相同的帧结构中, 可以在中心 机和测试终端的双向通讯中使用相同的帧结构, 有效地简化了分布式测 试系统在设备功能改变时通讯软件的更换过程, 方便了分布式测试系统 的灵活扩展。  1. The method for communication between a central machine and a test terminal of the distributed test system provided by the present invention, the control command and the data transmission are collected in the same frame structure, and the same can be used in the two-way communication between the central machine and the test terminal. The frame structure effectively simplifies the process of replacing the communication software when the device function changes in the distributed test system, which facilitates the flexible expansion of the distributed test system.
2、 本发明提供的分布式测试系统的中心机与测试终端之间进行通 讯的方法, 帧结构的基本单元为帧节, 帧节可以设置起始位和结束位来 进行异歩通讯, 方便了分布式测试系统采用同歩通讯、 异歩通讯等不同 的通讯方式。  2. The method for communication between the central machine and the test terminal of the distributed test system provided by the present invention, the basic unit of the frame structure is a frame section, and the frame section can set the start bit and the end bit to perform different communication, which is convenient. The distributed test system uses different communication methods such as peer communication and different communication.
3、 本发明提供的分布式测试系统的中心机与测试终端之间进行通 讯的方法, 具有多级地址结构可以对系统所包含的大量终端进行多级地 址寻址, 具有很大的容量。  3. The method for communicating between a central machine and a test terminal of the distributed test system provided by the present invention has a multi-level address structure for multi-level address addressing of a large number of terminals included in the system, and has a large capacity.
4、 本发明提供的分布式测试系统的中心机与测试终端之间进行通 讯的方法, 具有灵活可设的编码校验方式, 可以根据测试环境和测试终 端的不同采用不同的校验方式。 附图说明 图 1是本发明提供的分布式测试系统的中心机与测试终端之间进行 通讯时所采用的帧结构的示意图; 4. The method for communication between the central machine and the test terminal of the distributed test system provided by the present invention has a flexible and configurable code verification mode, and different verification modes can be adopted according to different test environments and test terminals. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a frame structure used when communication between a central machine and a test terminal of a distributed test system provided by the present invention; FIG.
图 2是图 1所示帧结构的基本组成单元帧节的示意图;  2 is a schematic diagram of a basic constituent unit frame section of the frame structure shown in FIG. 1;
图 3是依照本发明实施例的具有多级地址结构的分布式测试系统的 示意图;  3 is a schematic diagram of a distributed test system having a multi-level address structure in accordance with an embodiment of the present invention;
图 4是依照本发明实施例的分布式测试系统的中心机与测试终端之 间进行通讯的方法流程图;  4 is a flow chart of a method for communicating between a central machine and a test terminal of a distributed test system according to an embodiment of the present invention;
图 5是图 4所示实施例中采用的帧结构的基本组成单元帧节的示意 图;  Figure 5 is a schematic diagram of a basic constituent unit frame section of a frame structure employed in the embodiment shown in Figure 4;
图 6是图 4所示实施例中采用的帧结构的示意图。  Figure 6 is a schematic illustration of the frame structure employed in the embodiment of Figure 4.
具体实施方式 为使本发明的目的、 技术方案和优点更加清楚明白, 以下结合具体 实施例, 并参照附图, 对本发明进一歩详细说明。 DETAILED DESCRIPTION OF THE INVENTION In order to make the objects, the technical solutions and the advantages of the present invention more comprehensible, the present invention will be described in detail below with reference to the accompanying drawings.
本发明提供的分布式测试系统的中心机与测试终端之间进行通讯 的方法, 分布式测试系统的中心机下行向测试终端发送命令和测试终端 上行向中心机回传测试数据两个通讯过程采用相同的帧结构。 如图 1所 示, 图 1是本发明提供的分布式测试系统的中心机与测试终端之间进行 通讯时所采用的帧结构的示意图。 该帧结构包括帧头、 帧长说明、 地址 和命令长度说明、 数据长度说明、 校验方式说明、 地址、 命令、 数据、 校验和帧尾共 10 个部分, 其中帧长说明、 地址和命令长度说明、 数据 长度说明和校验方式说明等部分的帧节长度是固定的, 地址、 命令、 数 据和校验等部分的帧节长度可变的。 地址部分的帧节长度可变, 可以实 现多级地址结构, 符合分布式测试系统的系统扩展方式; 命令部分和数 据部分的帧节长度可变, 可以在命令传输和数据传输时对命令和数据设 置不同的长度; 校验部分的帧节长度可变, 可以根据不同中心机和测试 终端间信道环境的不同而采用不同的校验编码。 上述帧结构的基本组成单元为帧节, 其结构如图 2所示, 可以同时 适用于同歩通信与异歩通讯。 该帧节包括起始位、 数据位、 校验位和结 束位, 其中起始位用于在通讯方式采用异歩通讯时标志起始信息, 数据 位用于存放该帧结构中各部分所包含的内容, 校验位用于对每一帧节进 行编码校验, 结束位用于在通讯方式采用异歩通讯时标志终止信息。 The method for communicating between the central machine and the test terminal of the distributed test system provided by the present invention, the central machine of the distributed test system sends a command to the test terminal, and the test terminal transmits the test data to the central machine, and the two communication processes are adopted. The same frame structure. As shown in FIG. 1, FIG. 1 is a schematic diagram of a frame structure used when communication between a central machine and a test terminal of the distributed test system provided by the present invention. The frame structure includes a frame header, a frame length description, an address and command length description, a data length description, a verification mode description, an address, a command, a data, a checksum, and a frame end. The frame length description, the address, and the command are included. The length of the frame section of the length description, the data length description, and the verification mode description is fixed, and the length of the frame section of the address, command, data, and checksum is variable. The length of the frame section of the address part is variable, and the multi-level address structure can be realized, which conforms to the system expansion mode of the distributed test system; the length of the frame section of the command part and the data part is variable, and the command and data can be commanded during command transmission and data transmission. Set different lengths; the length of the frame section of the check part is variable, and different check codes can be used according to different channel environments between different central machines and test terminals. The basic component of the above frame structure is a frame section, and its structure is as shown in FIG. 2, which can be applied to both peer-to-peer communication and heterogeneous communication. The frame section includes a start bit, a data bit, a check bit and an end bit, wherein the start bit is used to mark the start information when the communication mode adopts the different communication, and the data bit is used to store the part included in the frame structure. The content of the check digit is used to encode and verify each frame section, and the end bit is used to mark the termination information when the communication mode uses heterogeneous communication.
本发明中给出了一个帧结构的应用的实例, 将此帧结构应用于如图 3 所示的具有多级地址结构的分布式测试系统中。 此分布式测试系统采 用一个中心机控制整个系统的运行。 中心机通过并行通讯总线与各测试 终端之间并行连接, 实现优先级相同的终端分布方式。  An example of the application of a frame structure is given in the present invention, and this frame structure is applied to a distributed test system having a multi-level address structure as shown in FIG. This distributed test system uses a central machine to control the operation of the entire system. The central unit is connected in parallel with each test terminal through the parallel communication bus to realize the terminal distribution pattern with the same priority.
图 3所示的分布式测试系统, 采用 A、 B共 2级地址结构, 其中 A 级地址结构包含 128个地址, B级地址结构包含 80个地址,此 2级地址 结构可以对 10240个测试终端进行实时控制和测试数据回传。 图 3所示 的分布式测试系统, 每个测试终端中包含 110个测试端口。 表 1给出了 测试系统的一部分命令和相应的功能, 表 2给出了桢结构中的一部分校 验方式及其代码。  The distributed test system shown in Figure 3 uses A and B total two-level address structure, in which the A-level address structure contains 128 addresses, and the B-level address structure contains 80 addresses. This 2-level address structure can be used for 10240 test terminals. Real-time control and test data backhaul. The distributed test system shown in Figure 3 contains 110 test ports per test terminal. Table 1 shows some of the commands and corresponding functions of the test system. Table 2 shows some of the calibration methods and their codes in the 桢 structure.
Figure imgf000007_0002
Figure imgf000007_0002
Figure imgf000007_0001
Figure imgf000007_0001
命令名称 校验方式  Command name
0001 CRC-4 (生成多项式: x4+x+l )  0001 CRC-4 (generating polynomial: x4+x+l)
0010 CRC-12 (生成多项式: xl2+xl l+x3+x+l )  0010 CRC-12 (generating polynomial: xl2+xl l+x3+x+l )
0011 CRC-16 (生成多项式: xl6+xl5+x2+l )  0011 CRC-16 (generating polynomial: xl6+xl5+x2+l)
0100 CRC-32 (生成多项式: x32+x26+x23+...+x2+x+l )  0100 CRC-32 (generating polynomial: x32+x26+x23+...+x2+x+l )
表 2: 分布式测试系统中校验方式及相应代码举例 以下以图 3所示分布式测试系统的中心机利用该桢结构向测试终端 下发命令以及测试终端利用该桢结构向中心机回传测试数据的过程为 例, 说明本发明如何应用相同的帧结构实现分布式测试系统的中心机与 测试终端间的通讯, 该具体通讯过程如图 4所示, 包括以下歩骤: 歩骤 1 : 分布式测试系统的中心机利用该桢结构向测试终端下发命 分布式测试系统在启动某个测试过程时, 首先由中心机根据测试需 要通过并行通讯总线向并行连接的所有测试终端的发送命令, 该命令具 有图 6所示的桢结构, 各测试终端检测到该命令的桢结构的桢头则均开 始接收该命令, 并根据该桢结构中固定帧节长度的帧长说明、 地址和命 令长度说明、 数据长度说明和校验方式说明部分的内容, 计算出该桢结 构中地址、 命令、 数据、 校验部分的帧节长度, 然后各测试终端根据已 知的自身地址和该桢结构中的地址信息判断出中心机的命令是否是发 送给自己的, 如果自身地址与桢结构中地址相同, 则是发送给自己的, 该测试终端继续接收该桢结构剩余部分的内容; 如果自身地址与桢结构 中地址不同, 则不是发送给自己的, 该测试终端停止收该桢结构剩余部 分的内容, 并删除已接收的自桢头部分的信息; Table 2: Calibration methods and corresponding code examples in distributed test systems In the following, the central machine of the distributed test system shown in FIG. 3 uses the 桢 structure to send commands to the test terminal and the test terminal uses the 桢 structure to return test data to the central machine as an example to illustrate how the present invention applies the same frame. The structure realizes the communication between the central machine and the test terminal of the distributed test system. The specific communication process is shown in FIG. 4, and includes the following steps: Step 1: The central machine of the distributed test system uses the structure to the test terminal When a test process is started, the central machine first sends a command to all test terminals connected in parallel through the parallel communication bus according to the test requirements. The command has the structure shown in FIG. 6, and each test terminal The header of the 桢 structure that detects the command starts to receive the command, and according to the frame length description, the address and command length description, the data length description and the verification mode description part of the fixed frame section length in the 桢 structure, Calculate the frame length of the address, command, data, and check portion of the structure, and then test the root of each test terminal. The known self address and the address information in the structure determine whether the command of the central machine is sent to itself. If the address of the own machine is the same as the address in the structure, it is sent to itself, and the test terminal continues to receive the command. The content of the rest of the structure; if the address of the self is different from the address in the structure, it is not sent to itself, the test terminal stops receiving the content of the remaining part of the structure, and deletes the information of the received self-head part;
继续接收该桢结构剩余部分内容的测试终端根据继续接收的该桢 结构的命令部分内容获知测试任务, 并根据该桢结构的数据部分内容获 取在此命令下具体的测试操作 (如对开启测试终端的第几端口或对第几 个参量进行测试, 测试几次等), 然后根据该桢结构的校验部分内容对 该桢结构的信息进行校验, 如果校验正确, 则在接收完毕桢尾部分后即 开始测试过程; 如果校验错误, 则该测试终端按照该桢结构向中心机发 出一个重传命令的信息, 直至能够校验正确, 完成正确的命令接收。  The test terminal that continues to receive the remaining part of the structure obtains the test task according to the content of the command part of the structure that is continuously received, and obtains a specific test operation under the command according to the data part of the structure (for example, opening the test terminal) The first port or the first parameter is tested, tested several times, etc., and then the information of the structure is verified according to the content of the check part of the structure. If the verification is correct, the tail is received. After the part, the test process starts; if the check is wrong, the test terminal sends a retransmission command information to the center machine according to the structure until the correct command is completed and the correct command reception is completed.
歩骤 2: 分布式测试系统的测试终端利用该桢结构向中心机回传测 试数据;  Step 2: The test terminal of the distributed test system uses the 桢 structure to return the test data to the central machine;
在根据要求完成测试后, 执行测试命令的测试终端开始向中心机回 传测试数据。 执行测试命令的测试终端在测试完成后首先监测并行通讯 总线上是否有其它测试终端正在与中心机进行通讯, 如果有, 则该测试 终端等待直至通讯结束, 并通过并行通讯总线向中心机发送测试数据; 如果没有, 则按照图 6所示的桢结构通过并行通讯总线向中心机发送测 试数据; After the test is completed according to the requirements, the test terminal that executes the test command starts to return the test data to the center machine. The test terminal that executes the test command first monitors whether there are other test terminals on the parallel communication bus that are communicating with the central machine after the test is completed. If there is, the test is performed. The terminal waits until the communication ends, and sends test data to the central machine through the parallel communication bus; if not, sends the test data to the central machine through the parallel communication bus according to the 桢 structure shown in FIG. 6;
分布式测试系统的中心机检测到该测试数据的桢结构的桢头部分 则开始接收测试数据, 然后根据该桢结构的地址部分内容判断出该桢结 构是来自哪个测试终端, 并根据该桢结构的命令部分内容获知该桢结构 回传的测试数据是中心机对该测试终端要求进行何种测试内容的测试 数据;  The central part of the distributed test system detects that the header part of the test data begins to receive the test data, and then determines which test terminal the structure is from, based on the content of the address part of the structure, and according to the structure The content of the command part is informed that the test data returned by the structure is the test data of the test content requested by the central machine for the test terminal;
然后中心机根据该桢结构的校验部分对该桢结构的数据进行校验, 如果校验正确, 则在桢尾结束后对该桢结构的数据进行存储或处理, 如 果校验错误, 则中心机按照图 6所示的桢结构向该测试终端发出一个重 传测试数据的命令, 进行数据的重新传输, 直至校验正确, 完成正确的 测试数据接收。  Then, the central machine checks the data of the structure according to the check portion of the structure. If the verification is correct, the data of the structure is stored or processed after the end of the file. If the verification is wrong, the center is The machine sends a command to retransmit the test data to the test terminal according to the 桢 structure shown in FIG. 6, and retransmits the data until the verification is correct, and the correct test data reception is completed.
在图 4所示的实施例中, 通讯采用的基本帧节结构如图 5所示, 每 个帧节采用 1 比特起始位, 8比特数据位, 无校验位, 2比特结束位。 起始位码字设定为 1, 结束位码字设定为 0。  In the embodiment shown in Fig. 4, the basic frame structure used for communication is as shown in Fig. 5. Each frame section adopts 1 bit start bit, 8 bit data bits, no parity bit, and 2 bit end bit. The start bit code word is set to 1, and the end bit code word is set to 0.
图 6是依照本发明在图 4所示的实施例中采用的帧结构的示意图。 以图 4所示的实施例中的某次通讯中中心机下行发出指令指示第 1780 个测试终端第 98 端口开始工作为例, 给出了通讯中帧结构包含的各部 分的长度, 以下给出各部分的详细编码:  Figure 6 is a schematic illustration of the frame structure employed in the embodiment of Figure 4 in accordance with the present invention. In the communication in the embodiment shown in FIG. 4, the downlink command of the central machine indicates that the 98th port of the 1780th test terminal starts to work, and the length of each part included in the frame structure in the communication is given. Detailed coding of each part:
1 )、 帧头和帧尾在本次通讯中分别设定为: 1—00101010—00 和 1—00100011—00。  1), the frame header and the end of the frame are set to: 1-00101010—00 and 1-00100011—00 respectively in this communication.
2 )、 本次通讯中一帧的总长度为 14 帧节, 故帧长部分为: 1—00001110—00。  2) The total length of one frame in this communication is 14 frame segments, so the frame length is: 1-00001110-00.
3 )、 地址和命令长度说明部分的前 6比特为 2进制数表示的地址长 度说明区, 后 2比特为 2进制数表示的命令长度说明区。 本次通讯中地 址长度为 2个帧节, 命令长度为 1个帧节, 故地址和命令长度说明部分 为: 1—000010—01—00。  3) The first 6 bits of the address and command length description are the address length description area indicated by the binary number, and the last 2 bits are the command length description area indicated by the binary number. In this communication, the address length is 2 frame segments, and the command length is 1 frame segment. Therefore, the description of the address and command length is: 1-000010—01—00.
4 )、 本次通讯中数据长度为一个帧节, 故数据长度部分为: 1—00000001—00。 4), the data length in this communication is one frame section, so the data length part is: 1-00000001—00.
5 )、 校验方式说明部分的前 4比特为信息位长度说明区, 后 4比特 为编码方式说明区。  5) The first 4 bits of the verification mode description part are the information bit length description area, and the last 4 bits are the coding mode description area.
本次通讯中校验方式每 4个帧节采用一组 CRC-16校验。 根据上文 所给出的校验方式命令, 校验部分的后 4 比特为: 0011。 每 32 比特信 息数据采用一组 CRC-16校验, 即每 4个帧节采用一组 CRC-16校验, 故校验方式的前 4 比特为 0100。 故校验方式说明部分为: 1—0100 —0011—00。  The verification method in this communication uses a set of CRC-16 checksums every 4 frame sections. According to the check mode command given above, the last 4 bits of the checksum are: 0011. A 32-bit CRC-16 check is used for each 32-bit information data, that is, a set of CRC-16 checksums is used for every 4 frame segments, so the first 4 bits of the check mode are 0100. Therefore, the description of the verification method is: 1—0100 —0011—00.
6)、 测试系统中采用 2级地址结构实现对 10240个终端的控制, 采 用 128乘 80的方式, 即共有 128个 A级地址, 每个 A级地址中包含有 6), the test system uses a 2-level address structure to control 10240 terminals, using 128 by 80, that is, there are 128 A-level addresses, each of which contains
80个 B级地址, 每个 B级地址对应 1个测试终端, 每个测试终端含有 110 个测试端口。 相应的地址部分的第 1 个帧节内容可以为: 1 00000001 00 至 1—10000000—00 ; 第 2 个帧节内容可以为: 1 00000001 00 至 1—01010000—00。 80 B-level addresses, each B-level address corresponds to one test terminal, and each test terminal contains 110 test ports. The content of the first frame of the corresponding address part can be: 1 00000001 00 to 1—10000000—00; the content of the second frame section can be: 1 00000001 00 to 1—01010000—00.
本次通信中地址部分为第 1780个终端, 在 2级地址结构表示方式 下第 1级地址为 23, 第 2级地址为 20。 因此地址部分的第 1个帧节为: 1—00010111—00。 第 2个帧节为: 1—00010100—00。  In this communication, the address part is the 1780th terminal, and in the level 2 address structure representation mode, the first level address is 23, and the second level address is 20. Therefore, the first frame section of the address part is: 1-00010111_00. The second frame section is: 1-00010100—00.
7 )、 命令部分的内容为指示端口开始工作, 根据上文给出的命令代 码, 命令部分为: 1—00010010—00。  7), the content of the command part is to indicate that the port starts to work. According to the command code given above, the command part is: 1-00010010—00.
8)、 数据部分, 内容为指示第 98端口, 故为: 1—01100010—00。 8), the data part, the content is the port of indication 98, so: 1—01100010—00.
9)、 本次通讯中帧长说明、 地址和命令长度说明、 数据长度说明、 校验方式说明、 地址、 命令、 数据 7部分的总长度为 8帧节, 每 4个帧 节采用一组 CRC-16 校验, 故校验部分的总长为 32比特, 即 4个帧节。 根据 CRC-16的生成多项式可得校验部分的 4个人帧节的内容依次为: 1—01011111—00, 1—00111101—00, 1—01000000—00, 1—01011010—00。 9), the frame length description, address and command length description, data length description, verification mode description, address, command, data, total length of 7 parts of this communication is 8 frame sections, and a set of CRC is used every 4 frame sections. -16 Check, so the total length of the check part is 32 bits, that is, 4 frame sections. According to the generator polynomial of CRC-16, the contents of the 4-person frame section of the check portion are: 1-01011111-00, 1-0011110-100, 1-01000000-00, 1-01011010-00.
以上所述的具体实施例, 对本发明的目的、 技术方案和有益效果进 行了进一歩详细说明, 所应理解的是, 以上所述仅为本发明的具体实施 例而已, 并不用于限制本发明, 凡在本发明的精神和原则之内, 所做的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。  The specific embodiments of the present invention have been described in detail with reference to the preferred embodiments of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求 Rights request
1、 一种分布式测试系统的中心机与测试终端之间进行通讯的方法, 其特征在于, 包括: A method for communicating between a central machine and a test terminal of a distributed test system, comprising:
分布式测试系统的中心机向测试终端下发命令; 以及  The central machine of the distributed test system issues a command to the test terminal;
分布式测试系统的测试终端向中心机回传测试数据;  The test terminal of the distributed test system returns the test data to the central machine;
其中, 中心机向测试终端下发命令和测试终端向中心机回传测试数 据采用相同的帧结构, 该相同的帧结构包括帧头、 帧长说明、 地址和命 令长度说明、 数据长度说明、 校验方式说明、 地址、 命令、 数据、 校验 以及帧尾共 10个部分。  The central machine sends the command to the test terminal and the test terminal returns the test data to the central machine using the same frame structure. The same frame structure includes the frame header, the frame length description, the address and command length description, the data length description, and the calibration. There are 10 parts in the description of the method, address, command, data, checksum and frame end.
2、 根据权利要求 1 所述的分布式测试系统的中心机与测试终端之 间进行通讯的方法, 其特征在于, 所述帧长说明、地址和命令长度说明、 数据长度说明以及校验方式说明部分的帧节长度是固定的, 所述地址、 命令、 数据以及校验部分的帧节长度可变的。  2. The method for communicating between a central machine and a test terminal of a distributed test system according to claim 1, wherein the frame length description, the address and command length description, the data length description, and the verification mode description The length of the portion of the frame is fixed, and the length of the frame of the address, the command, the data, and the check portion is variable.
3、 根据权利要求 2所述的分布式测试系统的中心机与测试终端之 间进行通讯的方法, 其特征在于,  3. The method of communicating between a central machine and a test terminal of the distributed test system according to claim 2, wherein:
所述地址部分的帧节长度可变, 用于实现多级地址结构, 符合分布 式测试系统的系统扩展方式;  The frame portion of the address portion has a variable length, and is used to implement a multi-level address structure, and conforms to a system expansion mode of the distributed test system;
所述命令部分和数据部分的帧节长度可变, 用于在命令传输和数据 传输时对命令和数据设置不同的长度;  The command portion and the data portion have variable frame lengths for setting different lengths of commands and data during command transmission and data transmission;
所述校验部分的帧节长度可变, 用于根据不同中心机和测试终端间 信道环境的不同而采用不同的校验编码。  The frame length of the check portion is variable, and is used to adopt different check codes according to different channel environments between different central machines and test terminals.
4、 根据权利要求 1 所述的分布式测试系统的中心机与测试终端之 间进行通讯的方法, 其特征在于, 所述帧结构的基本组成单元为帧节, 包括起始位、 数据位、 校验位和结束位共 4个部分。  The method for communicating between a central machine and a test terminal of the distributed test system according to claim 1, wherein the basic component of the frame structure is a frame section, including a start bit, a data bit, The check digit and the end bit have a total of 4 parts.
5、 根据权利要求 4所述的分布式测试系统的中心机与测试终端之 间进行通讯的方法, 其特征在于,  5. The method of communicating between a central machine and a test terminal of a distributed test system according to claim 4, wherein:
所述起始位用于在通讯方式采用异歩通讯时标志起始信息; 所述数据位用于存放该帧结构中各部分所包含的内容; 所述校验位用于对每一帧节进行编码校验; The start bit is used to mark start information when the communication mode adopts different communication; the data bit is used to store content included in each part of the frame structure; The check bit is used to perform coding verification on each frame section;
所述结束位用于在通讯方式采用异歩通讯时标志终止信息。  The end bit is used to mark the termination information when the communication mode uses heterogeneous communication.
6、 根据权利要求 1 所述的分布式测试系统的中心机与测试终端之 间进行通讯的方法, 其特征在于, 所述分布式测试系统的中心机向测试 终端下发命令, 包括:  The method of communicating between the central unit and the test terminal of the distributed test system according to claim 1, wherein the central machine of the distributed test system sends a command to the test terminal, including:
中心机向并行连接的所有测试终端发送命令;  The central machine sends commands to all test terminals connected in parallel;
各测试终端检测到该命令的桢结构的桢头则均开始接收该命令, 并 根据该桢结构中固定帧节长度的帧长说明、 地址和命令长度说明、 数据 长度说明和校验方式说明部分的内容, 计算出该桢结构中地址、 命令、 数据、 校验部分的帧节长度;  Each test terminal detects that the command structure of the command starts receiving the command, and according to the frame length description of the fixed frame length in the frame structure, the address and command length description, the data length description, and the verification mode description part. Content, calculate the frame length of the address, command, data, and check portion of the structure;
各测试终端判断中心机的命令是否是发送给自己的, 如果是, 则该 测试终端继续接收该桢结构剩余部分的内容; 如果不是, 则该测试终端 停止收该桢结构剩余部分的内容, 并删除已接收的自桢头部分的信息; 继续接收该桢结构剩余部分内容的测试终端根据继续接收的该桢 结构的命令部分内容获知测试任务, 并根据该桢结构的数据部分内容获 取在此命令下具体的测试操作, 然后根据该桢结构的校验部分内容对该 桢结构的信息进行校验, 如果校验正确, 则在接收完毕桢尾部分后即开 始测试过程; 如果校验错误, 则该测试终端按照该桢结构向中心机发出 一个重传命令的信息, 直至能够校验正确, 完成正确的命令接收。  Each test terminal determines whether the command of the central machine is sent to itself, and if so, the test terminal continues to receive the content of the remaining portion of the structure; if not, the test terminal stops receiving the content of the remaining portion of the structure, and Deleting the received information from the header portion; the test terminal continuing to receive the remaining portion of the structure obtains the test task according to the content of the command portion of the structure that continues to be received, and obtains the command according to the data portion of the structure The specific test operation is performed, and then the information of the structure is verified according to the content of the check portion of the structure. If the check is correct, the test process is started after the end of the tail is received; if the check is incorrect, The test terminal sends a retransmission command information to the center machine according to the 桢 structure until the correct command is completed, and the correct command reception is completed.
7、 根据权利要求 6所述的分布式测试系统的中心机与测试终端之 间进行通讯的方法, 其特征在于, 所述各测试终端判断中心机的命令是 否是发送给自己的, 包括:  The method for communicating between the central unit and the test terminal of the distributed test system according to claim 6, wherein the test terminals determine whether the command of the central machine is sent to itself, including:
各测试终端根据自身地址和桢结构中的地址信息判断出中心机的 命令是否是发送给自己的, 如果自身地址与桢结构中地址相同, 则是发 送给自己的;如果自身地址与桢结构中地址不同,则不是发送给自己的。  Each test terminal determines whether the command of the central machine is sent to itself according to the address information in the own address and the 桢 structure, and if the address is the same as the address in the 桢 structure, it is sent to itself; if the own address and the 桢 structure If the address is different, it is not sent to yourself.
8、 根据权利要求 1 所述的分布式测试系统的中心机与测试终端之 间进行通讯的方法, 其特征在于, 所述分布式测试系统的测试终端向中 心机回传测试数据, 包括:  The method of communicating between the central unit and the test terminal of the distributed test system according to claim 1, wherein the test terminal of the distributed test system returns test data to the center machine, including:
在测试完成后, 测试终端监测并行通讯总线上是否有其它测试终端 正在与中心机进行通讯, 如果有, 则该测试终端等待直至通讯结束, 并 通过并行通讯总线向中心机发送测试数据; 如果没有, 则通过并行通讯 总线向中心机发送测试数据; After the test is completed, the test terminal monitors whether there are other test terminals on the parallel communication bus. Communicating with the central machine, if there is, the test terminal waits until the communication ends, and sends test data to the central machine through the parallel communication bus; if not, sends the test data to the central machine through the parallel communication bus;
中心机检测到该测试数据的桢结构的桢头部分则开始接收测试数 据, 然后根据该桢结构的地址部分内容判断出该桢结构是来自哪个测试 终端, 并根据该桢结构的命令部分内容获知该桢结构回传的测试数据是 中心机对该测试终端要求进行何种测试内容的测试数据;  The gimmick portion of the 桢 structure of the test data of the test machine starts to receive the test data, and then determines which test terminal the 桢 structure is from according to the content of the address portion of the 桢 structure, and knows according to the content of the command part of the 桢 structure The test data returned by the structure is the test data of the test content required by the central machine for the test terminal;
中心机根据该桢结构的校验部分对该桢结构的数据进行校验, 如果 校验正确, 则在桢尾结束后对该桢结构的数据进行存储或处理, 如果校 验错误, 则中心机向该测试终端发出一个重传测试数据的命令, 进行数 据的重新传输, 直至校验正确, 完成正确的测试数据接收。  The central machine checks the data of the structure according to the check portion of the structure. If the verification is correct, the data of the structure is stored or processed after the end of the file. If the verification is wrong, the center machine A command to retransmit the test data is sent to the test terminal, and the data is retransmitted until the verification is correct, and the correct test data reception is completed.
PCT/CN2011/085142 2011-12-31 2011-12-31 Method for communication between centre machine and test terminal in distributed test system WO2013097221A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/085142 WO2013097221A1 (en) 2011-12-31 2011-12-31 Method for communication between centre machine and test terminal in distributed test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/085142 WO2013097221A1 (en) 2011-12-31 2011-12-31 Method for communication between centre machine and test terminal in distributed test system

Publications (1)

Publication Number Publication Date
WO2013097221A1 true WO2013097221A1 (en) 2013-07-04

Family

ID=48696277

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/085142 WO2013097221A1 (en) 2011-12-31 2011-12-31 Method for communication between centre machine and test terminal in distributed test system

Country Status (1)

Country Link
WO (1) WO2013097221A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614863A (en) * 2018-04-04 2018-10-02 吉林省星途科技有限公司 A kind of floating data frame frame head lookup method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231437B2 (en) * 2002-05-21 2007-06-12 Sun Microsystems, Inc. Task submission systems and methods for a distributed test framework
CN101226397A (en) * 2008-02-04 2008-07-23 南京理工大学 High reliability distributed Ethernet test control system
CN101453390A (en) * 2008-12-30 2009-06-10 中兴通讯股份有限公司 Test method and system for biplane double layer communication
CN101951298A (en) * 2010-09-15 2011-01-19 北京航空航天大学 Mthod and system for consistency test of an air ground communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231437B2 (en) * 2002-05-21 2007-06-12 Sun Microsystems, Inc. Task submission systems and methods for a distributed test framework
CN101226397A (en) * 2008-02-04 2008-07-23 南京理工大学 High reliability distributed Ethernet test control system
CN101453390A (en) * 2008-12-30 2009-06-10 中兴通讯股份有限公司 Test method and system for biplane double layer communication
CN101951298A (en) * 2010-09-15 2011-01-19 北京航空航天大学 Mthod and system for consistency test of an air ground communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614863A (en) * 2018-04-04 2018-10-02 吉林省星途科技有限公司 A kind of floating data frame frame head lookup method and system
CN108614863B (en) * 2018-04-04 2022-04-19 吉林省星途科技有限公司 Method and system for searching frame header of floating data frame

Similar Documents

Publication Publication Date Title
JP5815664B2 (en) Robot system with wireless acceleration sensor
CN101325468B (en) Mixed error-correcting method based on bidirectional odd-even check
CN104040976B (en) Method and device used for lost real-time media packet recovery
CN104580441A (en) Data distribution method in local area network, server and terminal device
JP6487562B2 (en) Method and system for on-demand file repair
WO2023125212A1 (en) Data transmission method and apparatus, and device and medium
CN106656424A (en) Verification method of data transmission
CN111984477A (en) PCIe equipment signal parameter dynamic correction device and method
CN105897689B (en) Embedded system and method thereof
CN111897674A (en) Cyclic redundancy check circuit IP (Internet protocol) check verification system and method
CN115484131A (en) Internet of things gateway and equipment data storage system for same
CN106686410B (en) HLS flow-medium transmission method and device
CN107947902A (en) The data error processing system and method for a kind of high-speed interface chip
KR101769133B1 (en) Electronic device adaptively selecting tcp/r-udp and packet transmitting/receiving method thereof
WO2013097221A1 (en) Method for communication between centre machine and test terminal in distributed test system
WO2014180414A1 (en) Transmission method and device based on management data input/output multi-source agreements
CN102098130A (en) Efficient dynamic transmission with high speed and high reliability
CN102480333B (en) Line coding method as well as synchronous processing method and device of coded data block
US9525594B2 (en) Method for combined unicast/multicast software transmission
CN107222296A (en) Method, terminal device and the computer-readable recording medium of information transfer
WO2018133415A1 (en) Method and device for coding and decoding data of physical coding sublayer and storage medium
CN110213259A (en) The UDP transmission method of electric power observation and control message sends terminal and receives terminal
CN114443537B (en) PCIE signal transmitting end parameter configuration method, device, equipment and medium
CN116266800A (en) Multicast transmission method, device and system
CN102487282A (en) Circuit for realizing variable length CRC operation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11878952

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11878952

Country of ref document: EP

Kind code of ref document: A1