CN103312424A - Control method and system for multiple switches in automatic testing system - Google Patents
Control method and system for multiple switches in automatic testing system Download PDFInfo
- Publication number
- CN103312424A CN103312424A CN2013102731666A CN201310273166A CN103312424A CN 103312424 A CN103312424 A CN 103312424A CN 2013102731666 A CN2013102731666 A CN 2013102731666A CN 201310273166 A CN201310273166 A CN 201310273166A CN 103312424 A CN103312424 A CN 103312424A
- Authority
- CN
- China
- Prior art keywords
- switch
- virtual device
- information
- routing
- test system
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 65
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000007717 exclusion Effects 0.000 claims description 16
- 238000007405 data analysis Methods 0.000 claims description 3
- 238000013500 data storage Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 abstract description 5
- 238000007726 management method Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种自动测试系统中多开关的控制方法及控制系统,其中的方法包括步骤:a将自动测试系统中所有的开关需求抽象成一个开关网络虚拟设备,对开关网络虚拟设备进行虚拟设备信息配置,并对所配置的虚拟设备信息进行保存;b提供连接与断开路由的控制接口,自动测试系统通过调用连接与断开路由的控制接口,完成对开关网络虚拟设备中路由的控制;c根据虚拟设备信息中的连接规则对路由进行解析,并调用相应的开关驱动,完成对具体开关的连接与断开操作。本发明使用开关网络虚拟设备建立复杂开关系统的连接规则和路由信息,使用开关网络系统封装对复杂开关系统的控制,为其提供了简单的路由控制接口,能够降低开发和控制难度,缩短开发周期。
The invention discloses a multi-switch control method and control system in an automatic test system, wherein the method includes the steps of: a. abstracting all switch requirements in the automatic test system into a switch network virtual device, virtualizing the switch network virtual device Configure device information, and save the configured virtual device information; b provide a control interface for connecting and disconnecting routes, and the automatic test system completes the control of routing in the switch network virtual device by calling the control interface for connecting and disconnecting routes ; c Analyze the route according to the connection rules in the virtual device information, and call the corresponding switch driver to complete the connection and disconnection of the specific switch. The present invention uses the switch network virtual device to establish the connection rules and routing information of the complex switch system, uses the switch network system to encapsulate the control of the complex switch system, and provides a simple routing control interface for it, which can reduce the difficulty of development and control, and shorten the development cycle .
Description
技术领域technical field
本发明涉及一种自动测试系统中多开关的控制方法,以及一种自动测试系统中多开关的控制系统。The invention relates to a multi-switch control method in an automatic test system and a multi-switch control system in the automatic test system.
背景技术Background technique
微波开关是微波自动测试系统中信号传输和分配的中枢,使用微波开关矩阵可以充分利用测试资源,减少转接各种仪器的工作量,延长仪器使用寿命,提高测试效率。伴随着新产品的出现,被测件的复杂度也在持续增长,这导致必须连接的测试点数量剧增。测试点数量的剧增也意味着自动测试系统中开关系统复杂度的剧增,这样复杂的测试系统中就会出现需要管理多个开关模块、创建跨多个开关模块的路由来完成信号传输和分配的情况。The microwave switch is the center of signal transmission and distribution in the microwave automatic test system. Using the microwave switch matrix can make full use of test resources, reduce the workload of switching various instruments, prolong the service life of the instrument, and improve the test efficiency. As new products are introduced, the complexity of the device under test continues to grow, resulting in a dramatic increase in the number of test points that must be connected. The sharp increase in the number of test points also means a sharp increase in the complexity of the switching system in the automatic test system. In such a complex test system, there will be a need to manage multiple switch modules, create routes across multiple switch modules to complete signal transmission and The situation of the distribution.
目前在测试系统中对开关系统的控制主要还是针对不同开关模块的单独控制,开关路由的设计也是在开关内部的通道之间进行的,无法同时管理多个开关模块,更没法设计并标识跨开关模块的路由,为复杂开关系统的管理提高了难度。At present, the control of the switch system in the test system is mainly for the individual control of different switch modules. The design of the switch routing is also carried out between the channels inside the switch. It is impossible to manage multiple switch modules at the same time, and it is impossible to design and identify cross The routing of switch modules increases the difficulty for the management of complex switch systems.
图1所示的是自动测试系统中开关的传统控制方式示意图,该传统方式,自动测试系统针对不同的开关进行单独控制,开关间的连接关系没法在测试系统中体现,只能靠测试系统开发人员人工记录,这增加了复杂测试系统的开发和控制难度。Figure 1 is a schematic diagram of the traditional control mode of the switch in the automatic test system. In this traditional way, the automatic test system controls different switches separately, and the connection relationship between the switches cannot be reflected in the test system. It can only be controlled by the test system Manual documentation by developers adds to the difficulty of developing and controlling complex test systems.
发明内容Contents of the invention
本发明的任务在于解决现有技术自动测试系统中多开关的控制技术存在的缺陷,提供一种自动测试系统中多开关的控制方法,以及一种自动测试系统中多开关的控制系统。The task of the present invention is to solve the defects of the multi-switch control technology in the automatic test system in the prior art, provide a multi-switch control method in the automatic test system, and a multi-switch control system in the automatic test system.
其技术解决方案是:Its technical solutions are:
一种自动测试系统中多开关的控制方法,包括如下步骤:A method for controlling multiple switches in an automatic test system, comprising the steps of:
a将自动测试系统中所有的开关需求抽象成一个开关网络虚拟设备,对开关网络虚拟设备进行虚拟设备信息配置,并对所配置的虚拟设备信息进行保存;上述虚拟设备信息包括各开关的软件和硬件信息、虚拟设备的端口信息、开关间的连接规则信息、虚拟设备端口间路由信息;上述开关间的连接规则信息包括硬连线规则与互斥规则,分别用于描述不同开关模块端口之间的物理连接需求,以及虚拟设备端口之间的连接排斥需求;a Abstract all switch requirements in the automatic test system into a switch network virtual device, configure the virtual device information for the switch network virtual device, and save the configured virtual device information; the above virtual device information includes the software and software of each switch Hardware information, virtual device port information, connection rule information between switches, and routing information between virtual device ports; the connection rule information between the above switches includes hard-wiring rules and mutual exclusion rules, which are used to describe the connection between ports of different switch modules. Physical connection requirements, and connection exclusion requirements between virtual device ports;
b提供连接与断开路由的控制接口,自动测试系统通过调用连接与断开路由的控制接口,完成对开关网络虚拟设备中路由的控制;b Provide the control interface for connecting and disconnecting the route, and the automatic test system completes the control of the route in the switch network virtual device by calling the control interface for connecting and disconnecting the route;
c根据上述虚拟设备信息中的连接规则对路由进行解析,并调用相应的开关驱动,完成对具体开关的连接与断开操作。c. Analyze the route according to the connection rules in the above virtual device information, and call the corresponding switch driver to complete the connection and disconnection operation of the specific switch.
上述步骤a还包括以下步骤:The above step a also includes the following steps:
a1创建一个开关网络虚拟设备;a1 creates a switch network virtual device;
a2将自动测试系统中所有的开关添加到开关网络虚拟设备中,并记录包括开关的驱动程序、程控地址、拓扑结构在内的软硬件信息;a2 Add all the switches in the automatic test system to the switch network virtual device, and record the software and hardware information including the switch driver, program control address and topology;
a3将所有开关的端口虚拟成开关网络虚拟设备的端口;a3 Virtualize the ports of all switches into the ports of the switch network virtual device;
a4创建开关网络虚拟设备端口间的互斥集合;a4 Create a mutually exclusive set between the ports of the switch network virtual device;
a5创建开关网络虚拟设备端口间的硬连线集合;a5 Create a hardwired set between the ports of the switch network virtual device;
a6使用互斥和硬连线规则,创建开关网络虚拟设备端口间的路由集合;a6 Use mutual exclusion and hard-wiring rules to create a routing set between the ports of the switch network virtual device;
a7保存虚拟设备信息。a7 saves virtual device information.
上述步骤a6还包括以下步骤:Above-mentioned step a6 also comprises the following steps:
a61得到要建立路由的两个通道,即ch1、ch2通道,创建一个堆栈;a61 gets the two channels to establish routing, namely ch1 and ch2 channels, and creates a stack;
a62判断ch1和ch2通道是否在互斥配置中,如果是则返回不能连接的信息,否则执行a63;a62 judges whether the ch1 and ch2 channels are in the mutually exclusive configuration, if so, returns the information that cannot be connected, otherwise executes a63;
a63判断ch1、ch2通道是否属于同一个开关模块,如果不是,则执行步骤a64;如果是,则执行步骤a65;a63 judges whether the ch1 and ch2 channels belong to the same switch module, if not, then execute step a64; if yes, then execute step a65;
a64从硬连线集合中查找能与ch1通道连接的硬连线上的通道,如果找到,则将该通道作为新的ch1通道,并将找到的硬连线及原ch1通道的信息压入到内存的堆栈中,执行步骤a63;如果未找到,则执行a66;a64 searches for a hardwired channel that can be connected to the ch1 channel from the hardwired set, if found, uses the channel as a new ch1 channel, and pushes the found hardwired and original ch1 channel information into In the memory stack, execute step a63; if not found, execute a66;
a65判断ch1、ch2通道是否可以连接,如果不可以连接,则执行步骤a66;如果可以连接则执行步骤a67;a65 judges whether the ch1 and ch2 channels can be connected, if not, execute step a66; if connectable, execute step a67;
a66判断硬连线堆栈元素是否为空,不为空则将硬连线堆栈的栈顶的元素弹出,执行步骤a64继续查找其它硬连线;如果堆栈的元素集合为空,则返回不能连接的信息;a66 judges whether the hardwired stack element is empty, if it is not empty, the element at the top of the hardwired stack is popped out, and step a64 is executed to continue to search for other hardwired lines; if the element set of the stack is empty, then return the unconnectable information;
a67利用输入的两个通道以及堆栈中的元素组织路由信息,并将路由信息返回。a67 uses the two input channels and the elements in the stack to organize the routing information and return the routing information.
上述步骤b还包括以下步骤:Above-mentioned step b also comprises the following steps:
b1选择所存储的虚拟设备信息;b1 selects the stored virtual device information;
b2解析虚拟设备信息;b2 parses virtual device information;
b3从虚拟设备信息中获取配置的路由信息;b3 obtains the configured routing information from the virtual device information;
b4调用连接或断开路由操作,完成对开关网络虚拟设备的控制。b4 calls the operation of connecting or disconnecting the route to complete the control of the switch network virtual device.
上述步骤c还包括以下步骤:Above-mentioned step c also comprises the following steps:
c1从所存储的虚拟设备信息中获取每个开关模块的驱动信息及硬件地址;c1 obtains the driver information and hardware address of each switch module from the stored virtual device information;
c2调用每个开关的驱动来初始化开关模块,将会话句柄保存到内存中;c2 calls the driver of each switch to initialize the switch module and save the session handle to the memory;
c3得到要连接的路由信息;c3 gets the routing information to be connected;
c4按照路由路径上的硬连线对路由进行分段,每一段路由上的端口都属于同一个开关;c4 segments the route according to the hard-wiring on the routing path, and the ports on each segment of the route belong to the same switch;
c5循环每一段路由,从内存中找到当前开关的会话句柄,使用该句柄调用开关的连接方法,完成该段路由的连接操作;c5 loops through each route, finds the session handle of the current switch from the memory, uses the handle to call the connection method of the switch, and completes the connection operation of the route;
c6关闭会话句柄。c6 closes the session handle.
上述步骤c还包括以下步骤:Above-mentioned step c also comprises the following steps:
c7从所存储的虚拟设备信息中获取每个开关模块的驱动信息及硬件地址;c7 obtains the driver information and hardware address of each switch module from the stored virtual device information;
c8调用每个开关的驱动来初始化开关模块,将会话句柄保存到内存中;c8 calls the driver of each switch to initialize the switch module and save the session handle to the memory;
c9得到要断开的路由信息;c9 gets the routing information to be disconnected;
c11按照路由路径上的硬连线对路由进行分段,每一段路由上的端口都属于同一个开关;c11 divides the route according to the hard wiring on the routing path, and the ports on each route belong to the same switch;
c12循环每一段路由,从内存中找到当前开关的会话句柄,使用该句柄调用开关的断开方法,完成该段路由的断开操作;c12 loops through each route, finds the session handle of the current switch from the memory, uses the handle to call the disconnect method of the switch, and completes the disconnection operation of the route;
c13关闭会话句柄。c13 closes the session handle.
一种自动测试系统中多开关的控制系统,包括:A multi-switch control system in an automatic test system, comprising:
开关网络建模模块,用于将自动测试系统中所有的开关需求抽象成一个开关网络虚拟设备,对开关网络虚拟设备进行虚拟设备信息配置,并对所配置的虚拟设备信息进行保存;上述虚拟设备信息包括各开关的软件和硬件信息、虚拟设备的端口信息、开关间的连接规则信息、虚拟设备端口间路由信息;上述开关间的连接规则信息包括硬连线规则与互斥规则,分别用于描述不同开关模块端口之间的物理连接需求,以及虚拟设备端口之间的连接排斥需求;The switch network modeling module is used to abstract all the switch requirements in the automatic test system into a switch network virtual device, configure the virtual device information for the switch network virtual device, and save the configured virtual device information; the above virtual device The information includes the software and hardware information of each switch, the port information of the virtual device, the connection rule information between the switches, and the routing information between the virtual device ports; the connection rule information between the above switches includes hardwire rules and mutual exclusion rules, respectively for Describe the physical connection requirements between different switch module ports, and the connection exclusion requirements between virtual device ports;
路由控制模块,用于提供连接与断开路由的控制接口,自动测试系统通过调用连接与断开路由的控制接口,完成对开关网络虚拟设备中路由的控制;The routing control module is used to provide a control interface for connecting and disconnecting the routing, and the automatic test system completes the control of the routing in the switch network virtual device by calling the control interface for connecting and disconnecting the routing;
数据存储与解析模块及开关控制模块,用于根据上述虚拟设备信息中的连接规则对路由进行解析,并调用相应的开关驱动,完成对具体开关的连接与断开操作。The data storage and analysis module and the switch control module are used to analyze the route according to the connection rules in the above virtual device information, and call the corresponding switch driver to complete the connection and disconnection of the specific switch.
本发明具有以下有益技术效果:The present invention has the following beneficial technical effects:
一、本发明实现了自动测试系统中复杂开关系统的统一控制。将多个开关(模块)组成的复杂开关系统抽象成“开关网络虚拟设备”,将不同开关模块之间通道的连接设计成“硬连线”,在设计相应的连接规则的基础上,实现智能的开关系统管理和跨开关模块的路由路径管理功能。1. The present invention realizes the unified control of the complex switch system in the automatic test system. The complex switch system composed of multiple switches (modules) is abstracted into a "switch network virtual device", and the connection of channels between different switch modules is designed as "hard wiring". On the basis of designing corresponding connection rules, intelligent switch system management and routing path management functions across switch modules.
二、本发明提高了自动测试系统的开发效率。本发明能够进行智能开关管理与跨开关模块的路由配置,测试系统开发人员使用本发明的方法进行复杂开关系统控制时,不再需要了解开关系统的内部连接关系和规则,只需对开关网络的路由的执行连接或者断开操作即可,这样降低了复杂开关系统的控制难度,提高了自动测试系统的开发效率。2. The present invention improves the development efficiency of the automatic test system. The present invention can perform intelligent switch management and routing configuration across switch modules. When test system developers use the method of the present invention to control complex switch systems, they no longer need to understand the internal connection relationships and rules of the switch system, and only need to understand the switch network. Routing can only be connected or disconnected, which reduces the difficulty of controlling the complex switch system and improves the development efficiency of the automatic test system.
三、本发明可维护性好。使用本发明将开关系统的业务功能封装起来,对外提供统一的控制接口,即路由。如果开关系统内部配置发生了改变,比如更换了开关模块或者模块之间的连接规则发生了变化,这种情况下只要保证开关系统对外的路由配置不变,仅对开关网络的内部配置做局部修改,而测试系统对开关网络的控制保持不变,就可以满足新的需求,降低了测试系统的维护成本。3. The present invention has good maintainability. The invention encapsulates the business functions of the switch system and provides a unified control interface, that is, routing. If the internal configuration of the switch system is changed, such as the switch module is replaced or the connection rules between modules are changed, in this case, only the external routing configuration of the switch system remains unchanged, and only the internal configuration of the switch network is partially modified. , while the control of the test system on the switch network remains unchanged, new requirements can be met, and the maintenance cost of the test system is reduced.
附图说明Description of drawings
图1为传统的自动测试系统控制复杂开关系统的原理框图。Fig. 1 is the functional block diagram of the complex switch system controlled by the traditional automatic test system.
图2为本发明中自动测试系统中多开关的控制方法一种实施方式的整体流程图。Fig. 2 is an overall flow chart of an embodiment of a multi-switch control method in the automatic test system of the present invention.
图3为图2方式中创建开关网络虚拟设备的流程图。FIG. 3 is a flow chart of creating a switch network virtual device in the manner of FIG. 2 .
图4为图2方式中利用连接规则创建开关网络虚拟设备路由的流程图。FIG. 4 is a flow chart of creating a switch network virtual device route by using connection rules in the manner shown in FIG. 2 .
图5为图2方式中自动测试系统控制开关网络虚拟设备的流程图。FIG. 5 is a flow chart of the automatic test system controlling and switching network virtual devices in the manner shown in FIG. 2 .
图6为图2方式中使用连接规则和路由信息完成连接路由操作的流程图。FIG. 6 is a flow chart of completing connection routing operations using connection rules and routing information in the manner shown in FIG. 2 .
图7为图2方式中使用连接规则和路由信息完成断开路由操作的流程图。FIG. 7 is a flow chart of using connection rules and routing information to complete the disconnection routing operation in the manner in FIG. 2 .
图8为本发明中自动测试系统中多开关的控制系统一种实施方式的原理示意框图。FIG. 8 is a schematic block diagram of an embodiment of a multi-switch control system in the automatic test system of the present invention.
具体实施方式Detailed ways
下面根据附图对本发明的技术方案作进一步详细说明。The technical solution of the present invention will be described in further detail below according to the accompanying drawings.
在详细说明之前,首先介绍几个概念:Before going into detail, a few concepts are introduced first:
通道:指的是开关模块上的连接点。Channel: Refers to the connection point on the switch module.
互斥:是一个连接规则,用于保证特定通道之间不能连接。互斥通常用于安全目的。Mutual exclusion: It is a connection rule used to ensure that specific channels cannot be connected. Mutexes are often used for security purposes.
硬连线:是开关通道之间的物理连接,例如配线、类似总线、矩阵扩展插头等。Hardwiring: It is the physical connection between switch channels, such as wiring, bus-like, matrix expansion plugs, etc.
路由:是一条信号通路,可能经过多个开关的端口。Routing: A signal path that may pass through multiple ports of a switch.
开关网络虚拟设备:代表了一个开关系统,一个虚拟设备由开关模块、通道、硬连线、总线、互斥和路由等配置组成。Switch network virtual device: represents a switch system, and a virtual device is composed of configurations such as switch modules, channels, hardwires, buses, mutexes, and routes.
如图2所示,一种自动测试系统中多开关的控制方法,包括如下步骤:As shown in Figure 2, a control method for multiple switches in an automatic test system includes the following steps:
步骤1:将自动测试系统中所有的开关需求抽象成一个开关网络虚拟设备,对开关网络虚拟设备进行虚拟设备信息配置,并对所配置的虚拟设备信息进行保存。开关网络虚拟设备是一个虚拟的软件对象,它由系统中所有的开关模块组合并抽象而来,开关网络虚拟设备中记录了这些开关模块的软硬件信息。开关网络虚拟设备具有端口属性,测试系统中所有开关模块的端口组成了开关网络虚拟设备的端口。上述虚拟设备信息包括各开关的软件和硬件信息、虚拟设备的端口信息、开关间的连接规则信息、虚拟设备端口间路由信息;上述开关间的连接规则信息包括硬连线规则与互斥规则,分别用于描述不同开关模块端口之间的物理连接需求,以及虚拟设备端口之间的连接排斥需求。Step 1: abstract all switch requirements in the automatic test system into a switch network virtual device, configure virtual device information for the switch network virtual device, and save the configured virtual device information. The switch network virtual device is a virtual software object, which is combined and abstracted from all the switch modules in the system. The switch network virtual device records the software and hardware information of these switch modules. The switch network virtual device has a port attribute, and the ports of all the switch modules in the test system form the ports of the switch network virtual device. The above virtual device information includes software and hardware information of each switch, port information of virtual devices, connection rule information between switches, and routing information between virtual device ports; the connection rule information between the above switches includes hardwire rules and mutual exclusion rules, They are respectively used to describe the physical connection requirements between different switch module ports, and the connection exclusion requirements between virtual device ports.
步骤2:提供连接与断开路由的控制接口,自动测试系统通过调用连接与断开路由的控制接口,完成对开关网络虚拟设备中路由的控制。Step 2: Provide a control interface for connecting and disconnecting the route, and the automatic test system completes the control of the route in the switch network virtual device by calling the control interface for connecting and disconnecting the route.
步骤3:根据上述虚拟设备信息中的连接规则对路由进行解析,并调用相应的开关驱动,完成对具体开关的连接与断开操作。Step 3: Analyze the route according to the connection rules in the above virtual device information, and call the corresponding switch driver to complete the connection and disconnection of the specific switch.
结合图3,上述步骤1还包括以下步骤:With reference to Figure 3, the above step 1 also includes the following steps:
步骤101:创建一个开关网络虚拟设备;Step 101: Create a switch network virtual device;
步骤102:将自动测试系统中所有的开关添加到开关网络虚拟设备中,并记录包括开关的驱动程序、程控地址、拓扑结构在内的软硬件信息;Step 102: Add all the switches in the automatic test system to the switch network virtual device, and record the software and hardware information including the switch driver, program control address, and topology;
步骤103:将所有开关的端口虚拟成开关网络虚拟设备的端口;Step 103: Virtualize the ports of all switches into ports of the switch network virtual device;
步骤104:创建开关网络虚拟设备端口间的互斥集合;Step 104: Create a mutually exclusive set between ports of the switch network virtual device;
步骤105:创建开关网络虚拟设备端口间的硬连线集合;Step 105: Create a hardwired set between ports of the switch network virtual device;
步骤106:使用互斥和硬连线规则,创建开关网络虚拟设备端口间的路由集合;Step 106: using mutual exclusion and hard-wiring rules, creating a routing set between ports of the switch network virtual device;
步骤107:保存虚拟设备信息。Step 107: Save the virtual device information.
结合图4,上述步骤106还包括以下步骤:In conjunction with FIG. 4, the
61得到要建立路由的两个通道,即ch1、ch2通道,创建一个堆栈;61 Get the two channels for routing, namely ch1 and ch2 channels, and create a stack;
62判断ch1和ch2通道是否在互斥配置中,如果是则返回不能连接的信息,否则执行63;62. Determine whether the ch1 and ch2 channels are in a mutually exclusive configuration, and if so, return information that cannot be connected, otherwise execute 63;
63判断ch1、ch2通道是否属于同一个开关模块,如果不是,则执行步骤64;如果是,则执行步骤65;63 judge whether the ch1 and ch2 channels belong to the same switch module, if not, then perform step 64; if yes, then perform step 65;
64从硬连线集合中查找能与ch1通道连接的硬连线上的通道,如果找到,则将该通道作为新的ch1通道,并将找到的硬连线及原ch1通道的信息压入到内存的堆栈中,执行步骤63;如果未找到,则执行66;64 Search the hardwired channel that can be connected to the ch1 channel from the hardwired collection, if found, use the channel as a new ch1 channel, and push the found hardwired and original ch1 channel information into In the memory stack, execute step 63; if not found, execute 66;
65判断ch1、ch2通道是否可以连接,如果不可以连接,则执行步骤66;如果可以连接则执行步骤67;65 judge whether the ch1 and ch2 channels can be connected, if not, execute step 66; if connectable, execute step 67;
66判断硬连线堆栈元素是否为空,不为空则将硬连线堆栈的栈顶的元素弹出,执行步骤a64继续查找其它硬连线;如果堆栈的元素集合为空,则返回不能连接的信息;66 judge whether the hardwired stack element is empty, if it is not empty, then the element at the top of the hardwired stack is popped out, and step a64 is performed to continue to search for other hardwired; if the element collection of the stack is empty, then return the unconnectable information;
67利用输入的两个通道以及堆栈中的元素组织路由信息,并将路由信息返回。67 uses the two input channels and the elements in the stack to organize the routing information, and returns the routing information.
结合图5,上述步骤2还包括以下步骤:With reference to Figure 5, the above step 2 also includes the following steps:
步骤201:选择所存储的虚拟设备信息;Step 201: Select the stored virtual device information;
步骤202:解析虚拟设备信息;Step 202: Parse virtual device information;
步骤203:从虚拟设备信息中获取配置的路由信息;Step 203: Obtain configured routing information from virtual device information;
步骤204:调用连接或断开路由操作,完成对开关网络虚拟设备的控制。Step 204: Invoke the operation of connecting or disconnecting the route to complete the control of the switch network virtual device.
结合图6,上述步骤3还包括以下步骤:With reference to Figure 6, the above step 3 also includes the following steps:
步骤301:从所存储的虚拟设备信息中获取每个开关模块的驱动信息及硬件地址;Step 301: Obtain the drive information and hardware address of each switch module from the stored virtual device information;
步骤302:调用每个开关的驱动来初始化开关模块,将会话句柄保存到内存中;Step 302: call the driver of each switch to initialize the switch module, and save the session handle into the memory;
步骤303:得到要连接的路由信息;Step 303: Obtain the routing information to be connected;
步骤304:按照路由路径上的硬连线对路由进行分段,每一段路由上的端口都属于同一个开关;Step 304: Segment the route according to the hard wiring on the routing path, and the ports on each segment of the route belong to the same switch;
步骤305:循环每一段路由,从内存中找到当前开关的会话句柄,使用该句柄调用开关的连接方法,完成该段路由的连接操作;Step 305: Cycle each route, find the session handle of the current switch from the memory, use the handle to call the connection method of the switch, and complete the connection operation of the route;
步骤306关闭会话句柄。Step 306 closes the session handle.
结合图7,上述步骤3还包括以下步骤:In conjunction with Figure 7, the above step 3 also includes the following steps:
步骤401:从所存储的虚拟设备信息中获取每个开关模块的驱动信息及硬件地址;Step 401: Obtain the drive information and hardware address of each switch module from the stored virtual device information;
步骤402:调用每个开关的驱动来初始化开关模块,将会话句柄保存到内存中;Step 402: call the driver of each switch to initialize the switch module, and save the session handle into the memory;
步骤403:得到要断开的路由信息;Step 403: Get the routing information to be disconnected;
步骤404:按照路由路径上的硬连线对路由进行分段,每一段路由上的端口都属于同一个开关;Step 404: Segment the route according to the hard wiring on the routing path, and the ports on each segment of the route belong to the same switch;
步骤405:循环每一段路由,从内存中找到当前开关的会话句柄,使用该句柄调用开关的断开方法,完成该段路由的断开操作;Step 405: Cycle through each section of route, find the session handle of the current switch from the memory, use the handle to call the disconnect method of the switch, and complete the disconnection operation of this section of route;
步骤406:关闭会话句柄。Step 406: close the session handle.
如图8所示,一种自动测试系统中多开关的控制系统,包括:As shown in Figure 8, a multi-switch control system in an automatic test system includes:
开关网络建模模块,用于将自动测试系统中所有的开关需求抽象成一个开关网络虚拟设备,对开关网络虚拟设备进行虚拟设备信息配置,并对所配置的虚拟设备信息进行保存;上述虚拟设备信息包括各开关的软件和硬件信息、虚拟设备的端口信息、开关间的连接规则信息、虚拟设备端口间路由信息;上述开关间的连接规则信息包括硬连线规则与互斥规则,分别用于描述不同开关模块端口之间的物理连接需求,以及虚拟设备端口之间的连接排斥需求;The switch network modeling module is used to abstract all the switch requirements in the automatic test system into a switch network virtual device, configure the virtual device information for the switch network virtual device, and save the configured virtual device information; the above virtual device The information includes the software and hardware information of each switch, the port information of the virtual device, the connection rule information between the switches, and the routing information between the virtual device ports; the connection rule information between the above switches includes hardwire rules and mutual exclusion rules, respectively for Describe the physical connection requirements between different switch module ports, and the connection exclusion requirements between virtual device ports;
路由控制模块,用于提供连接与断开路由的控制接口,自动测试系统通过调用连接与断开路由的控制接口,完成对开关网络虚拟设备中路由的控制;The routing control module is used to provide a control interface for connecting and disconnecting the routing, and the automatic test system completes the control of the routing in the switch network virtual device by calling the control interface for connecting and disconnecting the routing;
数据存储与解析模块及开关控制模块,用于根据上述虚拟设备信息中的连接规则对路由进行解析,并调用相应的开关驱动,完成对具体开关的连接与断开操作。The data storage and analysis module and the switch control module are used to analyze the route according to the connection rules in the above virtual device information, and call the corresponding switch driver to complete the connection and disconnection of the specific switch.
本发明将多个开关模块组成的复杂开关系统抽象成“开关网络虚拟设备”,将不同开关模块之间通道的连接设计成“硬连线”,在设计相应的连接规则的基础上,实现智能的开关系统管理和跨开关模块的路由路径管理功能,测试系统开发人员使用本发明的方法进行复杂开关系统控制时,不再需要了解开关系统的内部连接关系和规则,只需对开关网络的路由的执行连接或者断开操作即可,这样降低了复杂开关系统的控制难度,提高了自动测试系统的开发效率。The present invention abstracts a complex switch system composed of multiple switch modules into a "switch network virtual device", designs the connection of channels between different switch modules as "hard-wired", and realizes intelligent switching on the basis of designing corresponding connection rules. switch system management and routing path management functions across switch modules, when test system developers use the method of the present invention to control complex switch systems, they no longer need to understand the internal connection relationships and rules of the switch system, and only need to understand the routing of the switch network It only needs to perform the connection or disconnection operation, which reduces the difficulty of controlling the complex switch system and improves the development efficiency of the automatic test system.
本发明可将开关系统的业务功能封装起来,对测试系统提供统一的控制接口:路由。如果开关系统内部配置发生了改变,比如更换了开关模块或者模块之间的连接规则发生了变化,这种情况下只要保证开关系统对外的路由配置不变,仅对开关网络的内部配置做局部修改,而测试系统对开关网络的控制保持不变,就可以满足新的需求,降低了测试系统的维护成本。The invention can encapsulate the business functions of the switch system and provide a unified control interface: routing for the test system. If the internal configuration of the switch system is changed, such as the switch module is replaced or the connection rules between modules are changed, in this case, only the external routing configuration of the switch system remains unchanged, and only the internal configuration of the switch network is partially modified. , while the control of the test system on the switch network remains unchanged, new requirements can be met, and the maintenance cost of the test system is reduced.
上述方式中未述及的有关技术内容采取或借鉴已有技术即可实现。Relevant technical contents not mentioned in the above methods can be realized by adopting or referring to existing technologies.
本领域的技术人员可以对本发明进行各种改型和改变。因此,本发明覆盖了落入所附的权利要求书及其等同物的范围内的各种改型和改变。Various modifications and changes can be made to the present invention by those skilled in the art. Thus, the present invention covers the modifications and changes that come within the scope of the appended claims and their equivalents.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310273166.6A CN103312424B (en) | 2013-07-02 | 2013-07-02 | Control method and system for multiple switches in automatic testing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310273166.6A CN103312424B (en) | 2013-07-02 | 2013-07-02 | Control method and system for multiple switches in automatic testing system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103312424A true CN103312424A (en) | 2013-09-18 |
CN103312424B CN103312424B (en) | 2014-12-10 |
Family
ID=49137246
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310273166.6A Expired - Fee Related CN103312424B (en) | 2013-07-02 | 2013-07-02 | Control method and system for multiple switches in automatic testing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103312424B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484166A (en) * | 2014-12-04 | 2015-04-01 | 山东科技大学 | Graphical modeling device and method for automatic testing system |
CN104486177A (en) * | 2014-12-26 | 2015-04-01 | 中国电子科技集团公司第五十四研究所 | Large-scale reconfigurable radio-frequency switch network based on PXI bus |
CN104852832A (en) * | 2015-06-03 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Method and system for testing performance of stun server in socket cluster |
CN106249138A (en) * | 2016-08-29 | 2016-12-21 | 杭州鸿雁智能科技有限公司 | The automatic checkout system of a kind of intelligent switch and detection method |
CN106370223A (en) * | 2016-08-25 | 2017-02-01 | 中国电子科技集团公司第四十研究所 | Method, adapter and system for realizing the versatility of switch network |
CN107911923A (en) * | 2017-11-16 | 2018-04-13 | 欧普照明股份有限公司 | The light modulation output method and light adjusting controller of light adjusting controller |
CN111916077A (en) * | 2020-07-24 | 2020-11-10 | 青岛海信智慧家居系统股份有限公司 | Voice control method and device |
CN111984255A (en) * | 2020-08-18 | 2020-11-24 | 中电科仪器仪表有限公司 | Method and device for automatically generating switch driver codes |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101916206A (en) * | 2010-07-23 | 2010-12-15 | 北京全路通信信号研究设计院 | Method and device for modeling signal system |
CN101937394A (en) * | 2010-09-14 | 2011-01-05 | 中兴通讯股份有限公司 | Method and device for adaption of topology |
JP4623010B2 (en) * | 2004-11-18 | 2011-02-02 | 日本電気株式会社 | Switch device, switch method, and switch control program |
CN102834806A (en) * | 2010-03-18 | 2012-12-19 | 日本电气株式会社 | System structure managing device, method of managing system structure, and program |
-
2013
- 2013-07-02 CN CN201310273166.6A patent/CN103312424B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4623010B2 (en) * | 2004-11-18 | 2011-02-02 | 日本電気株式会社 | Switch device, switch method, and switch control program |
CN102834806A (en) * | 2010-03-18 | 2012-12-19 | 日本电气株式会社 | System structure managing device, method of managing system structure, and program |
CN101916206A (en) * | 2010-07-23 | 2010-12-15 | 北京全路通信信号研究设计院 | Method and device for modeling signal system |
CN101937394A (en) * | 2010-09-14 | 2011-01-05 | 中兴通讯股份有限公司 | Method and device for adaption of topology |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104484166A (en) * | 2014-12-04 | 2015-04-01 | 山东科技大学 | Graphical modeling device and method for automatic testing system |
CN104484166B (en) * | 2014-12-04 | 2017-07-28 | 山东科技大学 | A kind of automatization test system mathematics library device and method |
CN104486177B (en) * | 2014-12-26 | 2018-03-02 | 中国电子科技集团公司第五十四研究所 | A kind of extensive restructural RF switch network based on PXI buses |
CN104486177A (en) * | 2014-12-26 | 2015-04-01 | 中国电子科技集团公司第五十四研究所 | Large-scale reconfigurable radio-frequency switch network based on PXI bus |
CN104852832A (en) * | 2015-06-03 | 2015-08-19 | 上海斐讯数据通信技术有限公司 | Method and system for testing performance of stun server in socket cluster |
CN104852832B (en) * | 2015-06-03 | 2017-11-21 | 上海斐讯数据通信技术有限公司 | The method and system tested for stun server performances in socket cluster |
CN106370223A (en) * | 2016-08-25 | 2017-02-01 | 中国电子科技集团公司第四十研究所 | Method, adapter and system for realizing the versatility of switch network |
CN106249138A (en) * | 2016-08-29 | 2016-12-21 | 杭州鸿雁智能科技有限公司 | The automatic checkout system of a kind of intelligent switch and detection method |
CN107911923A (en) * | 2017-11-16 | 2018-04-13 | 欧普照明股份有限公司 | The light modulation output method and light adjusting controller of light adjusting controller |
CN111916077A (en) * | 2020-07-24 | 2020-11-10 | 青岛海信智慧家居系统股份有限公司 | Voice control method and device |
CN111916077B (en) * | 2020-07-24 | 2024-03-05 | 青岛海信智慧家居系统股份有限公司 | Voice control method and equipment |
CN111984255A (en) * | 2020-08-18 | 2020-11-24 | 中电科仪器仪表有限公司 | Method and device for automatically generating switch driver codes |
CN111984255B (en) * | 2020-08-18 | 2024-09-27 | 中电科思仪科技股份有限公司 | Automatic generation method and device for switch driver codes |
Also Published As
Publication number | Publication date |
---|---|
CN103312424B (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103312424B (en) | Control method and system for multiple switches in automatic testing system | |
TWI732125B (en) | Method and device for virtual network link detection | |
Yannuzzi et al. | A new era for cities with fog computing | |
Darabseh et al. | SDDC: A software defined datacenter experimental framework | |
CN104734954B (en) | A kind of route determining methods and device for software defined network | |
US20160352578A1 (en) | System and method for adaptive paths locator for virtual network function links | |
CN103516802A (en) | Method and device for achieving seamless transference of across heterogeneous virtual switch | |
WO2020048238A1 (en) | Modular design method for electric energy meter software | |
CN107733746A (en) | A kind of network-building method and mixed cloud plateform system for mixing cloud platform | |
CN109074280A (en) | Network function virtualization | |
WO2024104394A1 (en) | Network modeling method, network problem analysis method and related device | |
CN104503826A (en) | Virtual machine mapping method and device for cloud computing data center | |
CN102608497B (en) | Power failure diagnosis method and device | |
CN116170314B (en) | Digital twin network platform device for AI (advanced technology attachment) endophytic under network slice scene | |
CN109639799A (en) | The processing method and processing device of isomery cloud platform | |
CN107889183A (en) | Data transmission method and device | |
CN113704046A (en) | Fault alarm processing method and device, equipment and storage medium | |
CN107977254A (en) | The response method and computer-readable recording medium asked in cloud data system | |
CN108170507A (en) | Virtual application management method/system, computer readable storage medium and server-side | |
CN105786732B (en) | Data access method and device | |
CN108319492A (en) | Reset the method, apparatus and system of physical machine | |
CN112448833B (en) | Multi-management-domain communication method and device | |
EP2908498A1 (en) | Integrated application generating system and method for internet of things terminal | |
CN107947974A (en) | A network critical link detection method for cloud platform services | |
CN118159988A (en) | A model training method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141210 |