[go: up one dir, main page]

CN102833015B - Method for determining public software interface of satellite automatic testing system - Google Patents

Method for determining public software interface of satellite automatic testing system Download PDF

Info

Publication number
CN102833015B
CN102833015B CN201210264420.1A CN201210264420A CN102833015B CN 102833015 B CN102833015 B CN 102833015B CN 201210264420 A CN201210264420 A CN 201210264420A CN 102833015 B CN102833015 B CN 102833015B
Authority
CN
China
Prior art keywords
test
service
software
application software
test application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210264420.1A
Other languages
Chinese (zh)
Other versions
CN102833015A (en
Inventor
宋宏江
何晓宇
白少华
闫金栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Spacecraft System Engineering
Original Assignee
Beijing Institute of Spacecraft System Engineering
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 Beijing Institute of Spacecraft System Engineering filed Critical Beijing Institute of Spacecraft System Engineering
Priority to CN201210264420.1A priority Critical patent/CN102833015B/en
Publication of CN102833015A publication Critical patent/CN102833015A/en
Application granted granted Critical
Publication of CN102833015B publication Critical patent/CN102833015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种卫星自动化测试系统公共软件接口确定方法,对测试服务软件的访问接口进行标准化,在测试应用软件和测试服务软件之间加入了一个通用软件接口层,屏蔽测试服务软件的应用层通信协议,降低测试应用软件与测试服务软件之间的耦合度,最大程度提高测试应用软件的开发效率。本发明采用设计模式中的工厂模式,实现了服务创建工厂,集成了指令发送服务,数据订阅服务和数据查询服务,极大地提高了系统的灵活性,简化了测试应用软件对原有功能模块的管理模式。

A method for determining the public software interface of a satellite automated test system, standardizing the access interface of the test service software, adding a general software interface layer between the test application software and the test service software, shielding the application layer communication protocol of the test service software, Reduce the coupling degree between test application software and test service software, and maximize the development efficiency of test application software. The present invention adopts the factory mode in the design mode, realizes the service creation factory, integrates the instruction sending service, the data subscription service and the data query service, greatly improves the flexibility of the system, and simplifies the test application software for the original function module. management mode.

Description

一种卫星自动化测试系统公共软件接口确定方法A Method for Determining Common Software Interface of Satellite Automated Test System

技术领域 technical field

本发明涉及一种卫星自动化测试系统公共软件接口确定方法,主要应用于卫星综合测试总控系统应用软件开发,属于卫星综合测试技术领域。  The invention relates to a method for determining a common software interface of a satellite automatic test system, which is mainly used in the development of application software of a satellite comprehensive test master control system, and belongs to the technical field of satellite comprehensive test. the

背景技术 Background technique

卫星自动化测试系统是卫星综合测试地面支持设备的核心。它是一个大型分布式计算机网络系统,由测试服务软件和测试应用软件组成。测试服务软件提供测试数据的处理、分发、存储、地面设备管理和遥控指令管理服务;测试应用软件完成遥控指令的发送、地面设备的设置、测试数据以及测试信息的实时显示、测试信息的查询和分析。通过软件之间的信息交互,共同完成卫星上下行数据的处理、显示和分析评估工作。  The satellite automatic test system is the core of the satellite comprehensive test ground support equipment. It is a large-scale distributed computer network system composed of test service software and test application software. The test service software provides test data processing, distribution, storage, ground equipment management and remote control instruction management services; the test application software completes the sending of remote control instructions, the setting of ground equipment, the real-time display of test data and test information, the query of test information and analyze. Through the information interaction between the software, the processing, display, analysis and evaluation of satellite uplink and downlink data are jointly completed. the

以往的测试应用软件都是针对测试服务软件提供的接口服务,自行实现接口模块,这种实现方式存在以下不足:  In the past, the test application software was aimed at the interface service provided by the test service software, and the interface module was implemented by itself. This implementation method has the following shortcomings: 

1)需要具备指令发送和遥测数据显示功能的测试应用软件都需要完成与测试服务软件之间复杂的通信协议转换,从而降低了软件的开发效率,增加了研制周期。  1) The test application software that needs to have the functions of command sending and telemetry data display needs to complete the complex communication protocol conversion with the test service software, which reduces the development efficiency of the software and increases the development cycle. the

2)需要具备历史数据进行查询和分析功能的测试应用软件需要完成与测试数据库(测试服务软件中的一种)的通信以及测试数据表结构的解析,由于不同型号测试数据库的类型不同,表结构也不一样,导致软件的研制难度增加,通用性变差。  2) The test application software that needs to have the function of querying and analyzing historical data needs to complete the communication with the test database (one of the test service software) and the analysis of the test data table structure. Due to the different types of test databases of different models, the table structure It is not the same, resulting in increased difficulty in software development and poor versatility. the

随着卫星测试对地面软件的要求越来越高,以往的测试应用软件的开发模式重用性差,耦合度高,不适合提高卫星测试系统的自动化水平,不能快速应对卫星测试应用软件的研制要求。  As satellite testing has higher and higher requirements for ground software, the development mode of previous testing application software has poor reusability and high coupling, which is not suitable for improving the automation level of satellite testing systems and cannot quickly respond to the development requirements of satellite testing application software. the

发明内容 Contents of the invention

本发明的技术解决问题是:提出了一种卫星自动化测试系统公共软件接口确定方法,对测试服务软件的访问接口进行标准化,在测试应用软件和测试服务软件之间加入了一个通用软件接口层,屏蔽测试服务软件的应用层通信协议,降低测试应用软件与测试服务软件之间的耦合度,最大程度提高测试应用软件的开发效率。  The technical solution problem of the present invention is: proposed a kind of method for determining the public software interface of the satellite automatic test system, standardizes the access interface of the test service software, added a general software interface layer between the test application software and the test service software, Shield the application layer communication protocol of the test service software, reduce the coupling degree between the test application software and the test service software, and maximize the development efficiency of the test application software. the

本发明的技术解决方案是:  Technical solution of the present invention is:

一种卫星自动化测试系统公共软件接口确定方法,步骤如下:  A method for determining the public software interface of a satellite automated test system, the steps are as follows:

(1)根据卫星自动化测试系统中的测试应用软件的服务请求,首先调用服务创建工厂,判断是哪种服务请求;如果是指令发送服务请求,则通过服务创建工厂产生指令发送服务接口,之后进入步骤(2);如果是数据订阅服务请求,则通过服务创建工厂产生数据订阅服务接口,之后进入步骤(4);如果是数据查询服务请求,则通过服务创建工厂产生数据查询服务接口,之后进入步骤(7);  (1) According to the service request of the test application software in the satellite automated test system, first call the service creation factory to determine what kind of service request it is; if it is an instruction sending service request, then generate an instruction sending service interface through the service creation factory, and then enter Step (2); if it is a data subscription service request, generate a data subscription service interface through the service creation factory, and then enter step (4); if it is a data query service request, generate a data query service interface through the service creation factory, and then enter step (7);

(2)指令发送服务接口等待接收测试应用软件的网络连接命令,之后向测试服务软件的监听端口调用TCP/IP的connect接口函数申请建立网络连接;  (2) The instruction sending service interface waits to receive the network connection command of the test application software, and then calls the connect interface function of TCP/IP to the monitoring port of the test service software to apply for establishing a network connection;

若网络连接建立成功,则获得该网络连接的句柄,用来与该测试服务软件进行数据通信,之后自动发送签到消息给该测试服务软件,从该测试服务软件接收校时消息并完成系统校时,同时向测试应用软件告知网络连接成功,之后进入步骤(3);若网络连接建立失败,则向测试应用软件告知失败类型,之后返回步骤(2)继续等待测试应用软件的连接命令。  If the network connection is successfully established, the handle of the network connection is obtained, which is used for data communication with the test service software, and then the check-in message is automatically sent to the test service software, and the time calibration message is received from the test service software and the system time calibration is completed , inform the test application software that the network connection is successful, and then enter step (3); if the network connection fails to be established, then notify the test application software of the failure type, then return to step (2) and continue to wait for the connection command of the test application software. the

(3)测试应用软件向指令发送服务接口发送设置命令、遥控指令或者管理命令,由指令发送服务接口打包之后将消息发送给测试服务软件,同时采用同步的方式等待接收测试服务软件的返回消息,若在预设的规定时间内收到测试服务软件的返回消息,则对返回消息进行译码处理,将指令执行结果返回给测试应用软件从而完成本次指令发送流程,之后再进入步骤(3), 直至测试应用软件主动请求断开连接;若在规定时间内未收到测试服务软件的返回消息,则将错误码返回给测试应用软件,之后再进入步骤(3),直至测试应用软件主动请求断开连接;  (3) The test application software sends a setting command, a remote control command or a management command to the command sending service interface, and the message is sent to the test service software after being packaged by the command sending service interface, and simultaneously waits to receive the return message of the test service software in a synchronous manner, If the return message from the test service software is received within the preset specified time, the return message is decoded, and the command execution result is returned to the test application software to complete the command sending process, and then enter step (3) , until the test application software actively requests to disconnect; if the return message from the test service software is not received within the specified time, the error code will be returned to the test application software, and then enter step (3) until the test application software actively requests Disconnect;

(4)数据订阅服务接口等待接收测试应用软件的网络连接命令,之后向测试服务软件的监听端口调用TCP/IP的connect接口函数申请建立网络连接,若网络连接建立成功,则获得该网络连接的句柄,用来与测试服务软件进行数据通信,之后自动发送签到消息给测试服务软件,从测试服务软件接收校时消息并完成系统校时,同时向测试应用软件告知网络连接成功,之后进入步骤(5);若网络连接建立失败,则向测试应用软件告知失败类型,之后回到步骤(4),继续等待测试应用软件的连接命令;  (4) The data subscription service interface waits to receive the network connection command of the test application software, and then calls the connect interface function of TCP/IP to the listening port of the test service software to apply for establishing a network connection. If the network connection is successfully established, the network connection is obtained. The handle is used for data communication with the test service software, and then automatically sends a check-in message to the test service software, receives the time calibration message from the test service software and completes the system time calibration, and simultaneously notifies the test application software that the network connection is successful, and then enters the step ( 5); If the network connection fails to be established, then inform the test application software of the failure type, then return to step (4), and continue to wait for the connection command of the test application software;

(5)测试应用软件向数据订阅服务接口发送订阅请求命令,由数据订阅服务接口打包之后将消息发送给测试服务软件,之后进入步骤(6);  (5) The test application software sends a subscription request command to the data subscription service interface, and the message is sent to the test service software after being packaged by the data subscription service interface, and then enters step (6);

(6)数据订阅服务接口接收测试服务软件转发的所述订阅请求命令对应的测试数据,数据订阅服务接口对测试数据进行解包处理,将测试数据提取后返回给测试应用软件,之后继续执行步骤(6)直至测试应用软件主动请求断开连接,从而完成一次数据订阅流程;  (6) The data subscription service interface receives the test data corresponding to the subscription request command forwarded by the test service software, the data subscription service interface unpacks the test data, returns the test data to the test application software after extraction, and then continues to execute the steps (6) Until the test application software actively requests to disconnect, so as to complete a data subscription process;

(7)数据查询服务接口等待接收测试应用软件的网络连接命令,由数据查询服务接口识别测试应用软件所要访问的测试数据库的类型,构造数据库网络连接字串,之后向相应数据库的监听端口调用连接函数申请建立网络连接,若网络连接建立成功,则获得该连接的句柄,用来与数据库进行数据通信,之后进入步骤(8);若网络连接失败,则向测试应用软件告知失败类型,之后重新执行步骤(7)继续等待测试应用软件的连接命令。  (7) The data query service interface waits to receive the network connection command of the test application software, the data query service interface identifies the type of test database to be accessed by the test application software, constructs the database network connection string, and then calls the connection to the monitoring port of the corresponding database The function applies to establish a network connection. If the network connection is successfully established, the handle of the connection is obtained for data communication with the database, and then enters step (8); if the network connection fails, the test application software is notified of the failure type, and then restarts Execute step (7) and continue to wait for the connection command of the test application software. the

(8)测试应用软件向数据查询服务接口发送所需要查询信息的种类和参数内容,由数据查询服务接口将这些查询信息的种类和参数内容翻译成一个或多个相应数据库的SQL语句,将其发送给数据库进行查询操作,同时采用同步的方式等待接收数据库的返回消息,若在规定时间内收到数据库的返 回消息,则对返回消息进行解包处理,将查询结果提取后返回给测试应用软件从而完成本次测试数据的查询流程,之后再执行步骤(8),直至测试应用软件主动请求断开连接;若在规定时间内未收到数据库的返回消息,则将错误码返回给测试应用软件,之后再执行步骤(8),直至测试应用软件主动请求断开连接;  (8) The test application software sends the type and parameter content of the required query information to the data query service interface, and the data query service interface translates the type and parameter content of these query information into SQL statements of one or more corresponding databases, and converts them Send it to the database for query operation, and at the same time wait for the return message from the database in a synchronous manner. If the return message from the database is received within the specified time, the return message will be unpacked, and the query result will be extracted and returned to the test application The software thus completes the query process of the test data, and then performs step (8) until the test application software actively requests to disconnect; if the return message from the database is not received within the specified time, the error code is returned to the test application software, and then perform step (8), until the test application software actively requests disconnection;

所述卫星自动化测试系统中的测试应用软件的服务请求包括指令发送服务请求、数据订阅服务请求和数据查询服务请求。  The service requests of the test application software in the satellite automated test system include command sending service requests, data subscription service requests and data query service requests. the

所述服务创建工厂是指采用设计模式中的工厂模式,实现创建服务的统一接口。  The service creation factory refers to adopting the factory pattern in the design pattern to realize a unified interface for creating services. the

本发明与现有技术相比的有益效果是:  The beneficial effect of the present invention compared with prior art is:

(1)本发明采用设计模式中的工厂模式,实现了服务创建工厂,集成了指令发送服务,数据订阅服务和数据查询服务,极大地提高了系统的灵活性,简化了测试应用软件对原有功能模块的管理模式。  (1) The present invention adopts the factory mode in the design mode, realizes the service creation factory, integrates the command sending service, data subscription service and data query service, greatly improves the flexibility of the system, and simplifies the test application software to the original The management mode of the function module. the

(2)本发明引入的指令发送服务、数据订阅服务和数据查询服务在测试应用软件和测试服务软件之间均起到了一个转换器的作用,这三种服务屏蔽底层复杂的通信协议,使测试应用软件与测试服务软件之间的通信过程尽量简化,使得测试应用软件开发人员将重点放在自动化测试业务上,缩短测试软件的开发周期,降低出错概率。  (2) The command transmission service, data subscription service and data query service introduced by the present invention have all played the role of a converter between the test application software and the test service software. These three services shield the underlying complex communication protocols, making the test The communication process between the application software and the test service software is simplified as far as possible, so that the test application software developers can focus on the automated test business, shorten the development cycle of the test software, and reduce the probability of errors. the

(3)本发明引入的数据查询服务,还起到了一个适配器的作用,它的底层接口由数据库厂商加载驱动程序,对外则提供统一的接口,解决了不同型号测试数据库接口不统一的问题,使测试应用软件专注于查询内容,不必过多考虑不同数据库的查询接口。  (3) the data inquiry service that the present invention introduces has also played the effect of an adapter, and its underlying interface is loaded driver program by database manufacturer, then provides unified interface externally, has solved the problem that different model test database interface is not unified, makes The test application software focuses on the query content, without having to think too much about the query interfaces of different databases. the

附图说明 Description of drawings

图1为本发明接口示意图;  Fig. 1 is a schematic diagram of the interface of the present invention;

图2为本发明的指令发送接口工作流程图;  Fig. 2 is the instruction sending interface work flowchart of the present invention;

图3为本发明的数据订阅接口工作流程图;  Fig. 3 is the data subscription interface work flowchart of the present invention;

图4为本发明的数据查询接口工作流程图。  Fig. 4 is a working flow chart of the data query interface of the present invention. the

具体实施方式 Detailed ways

下面结合附图对本发明的具体实施方式进行进一步的详细描述。  Specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. the

在卫星测试过程中,测试服务软件负责提供各种应用服务,主要有:  During satellite testing, the testing service software is responsible for providing various application services, mainly including:

(1)提供三种指令服务类型:遥控指令服务、前端设备管理服务以及管理服务。其中,遥控指令服务是指测试应用软件可以通过该服务发送测试过程需要的各种符合通信协议的遥控指令服务;前端设备管理服务是指测试应用软件可以通过该指令服务远程管理接入测试服务软件的各种前端测试设备;管理服务是指测试应用软件可以通过该指令服务对测试服务软件的运行情况进行管理。  (1) Provide three command service types: remote command service, front-end equipment management service and management service. Among them, the remote control command service means that the test application software can send various remote control command services in accordance with the communication protocol required by the test process through this service; the front-end equipment management service means that the test application software can remotely manage and access the test service software through this command service Various front-end test equipment; management service means that the test application software can manage the operation of the test service software through the instruction service. the

(2)提供五种数据订阅服务类型:订阅测试信息、订阅遥测原始帧、订阅遥测参数值、订阅设备参数值以及订阅所有数据。其中,订阅测试信息是指订阅后测试服务软件会将接收到所有测试信息转发给客户端;订阅遥测原始帧是指订阅后测试服务软件会将遥测原始帧按照接收的频率转发给客户端;订阅遥测参数值是指订阅后测试服务软件会将遥测参数值按照接收的频率转发给客户端;订阅设备参数值是指订阅后测试服务软件会将设备参数值按照接收的频率转发给客户端;订阅所有数据是指客户端可以选择这种方式获取所有的测试数据和测试信息,订阅后测试服务软件会将接收到的所有消息转发给客户端。  (2) Provide five types of data subscription services: subscribe to test information, subscribe to telemetry raw frames, subscribe to telemetry parameter values, subscribe to device parameter values, and subscribe to all data. Among them, subscribing to test information means that after subscribing, the test service software will forward all the test information received to the client; subscribing to the original telemetry frame means that after subscribing, the test service software will forward the original telemetry frame to the client according to the received frequency; subscribe The telemetry parameter value means that after subscription, the test service software will forward the telemetry parameter value to the client according to the received frequency; subscribe to the device parameter value means that after subscription, the test service software will forward the device parameter value to the client according to the received frequency; subscribe All data means that the client can choose this method to obtain all test data and test information. After subscribing, the test service software will forward all received messages to the client. the

(3)测试数据库提供标准数据库的访问接口,支持历史测试数据和测试信息的提取。  (3) The test database provides the access interface of the standard database and supports the extraction of historical test data and test information. the

测试应用软件需要向测试服务软件发出各种服务请求,从测试服务软件获取执行结果,为保证测试应用软件与测试服务软件之间的信息交互流程尽量简化,减少重复开发。  The test application software needs to send various service requests to the test service software, and obtain the execution results from the test service software. In order to ensure that the information interaction process between the test application software and the test service software is as simple as possible and reduce repeated development. the

本发明提供了一种卫星自动化测试系统公共软件接口确定方法,实施步骤如下:  The invention provides a method for determining the public software interface of the satellite automated test system, the implementation steps are as follows:

(1)如图1所示,根据卫星自动化测试系统中的测试应用软件的服务请求,首先调用服务创建工厂,判断是哪种服务请求;如果是指令发送服务请求,则通过服务创建工厂产生指令发送服务接口,之后进入步骤(2);如果是数据订阅服务请求,则通过服务创建工厂产生数据订阅服务接口,之后进入步骤(4);如果是数据查询服务请求,则通过服务创建工厂产生数据查询服务接口,之后进入步骤(7);  (1) As shown in Figure 1, according to the service request of the test application software in the satellite automated test system, first call the service creation factory to determine what kind of service request it is; if it is an instruction to send a service request, then generate an instruction through the service creation factory Send the service interface, and then go to step (2); if it is a data subscription service request, generate a data subscription service interface through the service creation factory, and then go to step (4); if it is a data query service request, generate data through the service creation factory Query the service interface, and then enter step (7);

卫星自动化测试系统中的测试应用软件的服务请求包括指令发送服务请求、数据订阅服务请求和数据查询服务请求。服务创建工厂是指采用设计模式中的工厂模式,实现创建服务的统一接口。  The service requests of the test application software in the satellite automated test system include command sending service requests, data subscription service requests and data query service requests. The service creation factory refers to the use of the factory pattern in the design pattern to achieve a unified interface for creating services. the

(2)如图2所示,指令发送服务接口等待接收测试应用软件的网络连接命令,之后向测试服务软件的监听端口调用TCP/IP的connect接口函数申请建立网络连接;  (2) As shown in Figure 2, the command sending service interface waits to receive the network connection command of the test application software, and then calls the connect interface function of TCP/IP to the monitoring port of the test service software to apply for establishing a network connection;

若网络连接建立成功,则获得该网络连接的句柄,用来与该测试服务软件进行数据通信,之后自动发送签到消息给该测试服务软件,从该测试服务软件接收校时消息并完成系统校时,同时向测试应用软件告知网络连接成功,之后进入步骤(3);若网络连接建立失败,则向测试应用软件告知失败类型,之后返回步骤(2)继续等待测试应用软件的连接命令;  If the network connection is successfully established, the handle of the network connection is obtained, which is used for data communication with the test service software, and then the check-in message is automatically sent to the test service software, and the time calibration message is received from the test service software and the system time calibration is completed , and inform the test application software that the network connection is successful, then enter step (3); if the network connection fails to be established, then notify the test application software of the failure type, then return to step (2) and continue to wait for the connection command of the test application software;

(3)测试应用软件向指令发送服务接口发送设置命令、遥控指令或者管理命令,由指令发送服务接口打包之后将消息发送给测试服务软件,同时采用同步的方式等待接收测试服务软件的返回消息,若在预设的规定时间内收到测试服务软件的返回消息,则对返回消息进行译码处理,将指令执行结果返回给测试应用软件从而完成本次指令发送流程,之后再进入步骤(3),直至测试应用软件主动请求断开连接;若在规定时间内未收到测试服务软件的返回消息,则将错误码返回给测试应用软件,之后再进入步骤(3),直至测试应用软件主动请求断开连接。  (3) The test application software sends a setting command, a remote control command or a management command to the command sending service interface, and the message is sent to the test service software after being packaged by the command sending service interface, and simultaneously waits to receive the return message of the test service software in a synchronous manner, If the return message from the test service software is received within the preset specified time, the return message is decoded, and the command execution result is returned to the test application software to complete the command sending process, and then enter step (3) , until the test application software actively requests to disconnect; if the return message from the test service software is not received within the specified time, the error code will be returned to the test application software, and then enter step (3) until the test application software actively requests Disconnect. the

(4)如图3所示,数据订阅服务接口等待接收测试应用软件的网络连 接命令,之后向测试服务软件的监听端口调用TCP/IP的connect接口函数申请建立网络连接,若网络连接建立成功,则获得该网络连接的句柄,用来与测试服务软件进行数据通信,之后自动发送签到消息给测试服务软件,从测试服务软件接收校时消息并完成系统校时,同时向测试应用软件告知网络连接成功,之后进入步骤(5);若网络连接建立失败,则向测试应用软件告知失败类型,之后回到步骤(4),继续等待测试应用软件的连接命令;  (4) As shown in Figure 3, the data subscription service interface waits to receive the network connection command of the test application software, and then calls the connect interface function of TCP/IP to the monitoring port of the test service software to apply for establishing a network connection, if the network connection is established successfully , the handle of the network connection is obtained, which is used for data communication with the test service software, and then automatically sends a check-in message to the test service software, receives the time calibration message from the test service software and completes the system time calibration, and at the same time informs the test application software of the network If the connection is successful, then enter step (5); if the network connection fails to be established, then notify the test application software of the failure type, then return to step (4), and continue to wait for the connection command of the test application software;

(5)测试应用软件向数据订阅服务接口发送订阅请求命令,由数据订阅服务接口打包之后将消息发送给测试服务软件,之后进入步骤(6)。  (5) The test application software sends a subscription request command to the data subscription service interface, and the data subscription service interface packs and sends the message to the test service software, and then enters step (6). the

(6)数据订阅服务接口接收测试服务软件转发的所述订阅请求命令对应的测试数据,数据订阅服务接口对测试数据进行解包处理,将测试数据提取后返回给测试应用软件,之后继续执行步骤(6)直至测试应用软件主动请求断开连接,从而完成一次数据订阅流程。  (6) The data subscription service interface receives the test data corresponding to the subscription request command forwarded by the test service software, the data subscription service interface unpacks the test data, returns the test data to the test application software after extraction, and then continues to execute the steps (6) Until the test application software actively requests to disconnect, so as to complete a data subscription process. the

(7)如图4所示,数据查询服务接口等待接收测试应用软件的网络连接命令,由数据查询服务接口识别测试应用软件所要访问的测试数据库的类型,比如Oracle或者SQL Server,构造数据库网络连接字串,之后向相应数据库的监听端口调用连接函数申请建立网络连接,若网络连接建立成功,则获得该连接的句柄,用来与数据库进行数据通信,之后进入步骤(8);若网络连接失败,则向测试应用软件告知失败类型,之后重新执行步骤(7)继续等待测试应用软件的连接命令。  (7) As shown in Figure 4, the data query service interface waits to receive the network connection command of the test application software, and the type of the test database to be accessed by the data query service interface is identified by the test application software, such as Oracle or SQL Server, and the database network connection is constructed string, and then call the connection function to the monitoring port of the corresponding database to apply for establishing a network connection. If the network connection is successfully established, the handle of the connection will be obtained for data communication with the database, and then enter step (8); if the network connection fails , then inform the test application software of the failure type, then re-execute step (7) and continue to wait for the connection command of the test application software. the

(8)测试应用软件向数据查询服务接口发送所需要查询信息的种类和参数内容,由数据查询服务接口将这些查询信息的种类和参数内容翻译成一个或多个相应数据库的SQL语句,将其发送给数据库进行查询操作,同时采用同步的方式等待接收数据库的返回消息,若在规定时间内收到数据库的返回消息,则对返回消息进行解包处理,将查询结果提取后返回给测试应用软件从而完成本次测试数据的查询流程,之后再执行步骤(8),直至测试应用软件主动请求断开连接;若在规定时间内未收到数据库的返回消息,则 将错误码返回给测试应用软件,之后再执行步骤(8),直至测试应用软件主动请求断开连接;  (8) The test application software sends the type and parameter content of the required query information to the data query service interface, and the data query service interface translates the type and parameter content of these query information into SQL statements of one or more corresponding databases, and converts them Send it to the database for query operation, and at the same time wait for the return message from the database in a synchronous manner. If the return message from the database is received within the specified time, the return message will be unpacked, and the query result will be extracted and returned to the test application software Thereby complete the query process of the test data, and then perform step (8) until the test application software actively requests to disconnect; if the return message from the database is not received within the specified time, the error code will be returned to the test application software , and then perform step (8) until the test application software actively requests disconnection;

目前已有部分在研型号卫星上使用本发明方法,经过整星测试表明,应用了本发明方法后,新研的测试应用软件的开发周期大大缩短,可靠性有效提高。  At present, the method of the present invention has been used on some satellites under research and development. The entire satellite test shows that after the method of the invention is applied, the development cycle of the newly developed test application software is greatly shortened, and the reliability is effectively improved. the

本发明未公开技术属本领域技术人员公知常识。  The undisclosed technologies of the present invention belong to the common knowledge of those skilled in the art. the

Claims (3)

1.一种卫星自动化测试系统公共软件接口确定方法,其特征在于步骤如下:1. a method for determining the public software interface of a satellite automated test system is characterized in that the steps are as follows: (1)根据卫星自动化测试系统中的测试应用软件的服务请求,首先调用服务创建工厂,判断是哪种服务请求;如果是指令发送服务请求,则通过服务创建工厂产生指令发送服务接口,之后进入步骤(2);如果是数据订阅服务请求,则通过服务创建工厂产生数据订阅服务接口,之后进入步骤(4);如果是数据查询服务请求,则通过服务创建工厂产生数据查询服务接口,之后进入步骤(7);(1) According to the service request of the test application software in the satellite automated test system, first call the service creation factory to determine what kind of service request it is; if it is an instruction sending service request, then generate an instruction sending service interface through the service creation factory, and then enter Step (2); if it is a data subscription service request, generate a data subscription service interface through the service creation factory, and then enter step (4); if it is a data query service request, generate a data query service interface through the service creation factory, and then enter step (7); (2)指令发送服务接口等待接收测试应用软件的网络连接命令,之后向测试服务软件的监听端口调用TCP/IP的connect接口函数申请建立网络连接;(2) The command sending service interface waits to receive the network connection command of the test application software, and then calls the connect interface function of TCP/IP to the monitoring port of the test service software to apply for setting up a network connection; 若网络连接建立成功,则获得该网络连接的句柄,用来与该测试服务软件进行数据通信,之后自动发送签到消息给该测试服务软件,从该测试服务软件接收校时消息并完成系统校时,同时向测试应用软件告知网络连接成功,之后进入步骤(3);若网络连接建立失败,则向测试应用软件告知失败类型,之后继续等待测试应用软件的连接命令;If the network connection is successfully established, the handle of the network connection is obtained, which is used for data communication with the test service software, and then the check-in message is automatically sent to the test service software, and the time calibration message is received from the test service software and the system time calibration is completed , inform the test application software that the network connection is successful, and then enter step (3); if the network connection fails to be established, then inform the test application software of the failure type, and then continue to wait for the connection command of the test application software; (3)测试应用软件向指令发送服务接口发送设置命令、遥控指令或者管理命令,由指令发送服务接口打包之后将消息发送给测试服务软件,同时采用同步的方式等待接收测试服务软件的返回消息,若在预设的规定时间内收到测试服务软件的返回消息,则对返回消息进行译码处理,将指令执行结果返回给测试应用软件从而完成本次指令发送流程,之后再进入步骤(3),直至测试应用软件主动请求断开连接;若在规定时间内未收到测试服务软件的返回消息,则将错误码返回给测试应用软件,之后再进入步骤(3),直至测试应用软件主动请求断开连接;(3) The test application software sends a setting command, a remote control command or a management command to the command sending service interface, and the message is sent to the test service software after being packaged by the command sending service interface, and simultaneously waits to receive the return message of the test service software in a synchronous manner, If the return message from the test service software is received within the preset specified time, the return message is decoded, and the command execution result is returned to the test application software to complete the command sending process, and then enter step (3) , until the test application software actively requests to disconnect; if the return message from the test service software is not received within the specified time, the error code will be returned to the test application software, and then enter step (3) until the test application software actively requests Disconnect; (4)数据订阅服务接口等待接收测试应用软件的网络连接命令,之后向测试服务软件的监听端口调用TCP/IP的connect接口函数申请建立网络连接,若网络连接建立成功,则获得该网络连接的句柄,用来与测试服务软件进行数据通信,之后自动发送签到消息给测试服务软件,从测试服务软件接收校时消息并完成系统校时,同时向测试应用软件告知网络连接成功,之后进入步骤(5);若网络连接建立失败,则向测试应用软件告知失败类型,之后回到步骤(4),继续等待测试应用软件的连接命令;(4) The data subscription service interface waits to receive the network connection command of the test application software, and then calls the connect interface function of TCP/IP to the listening port of the test service software to apply for establishing a network connection. If the network connection is successfully established, the network connection is obtained. The handle is used for data communication with the test service software, and then automatically sends a check-in message to the test service software, receives the time calibration message from the test service software and completes the system time calibration, and simultaneously notifies the test application software that the network connection is successful, and then enters the step ( 5); If the network connection fails to be established, then inform the test application software of the failure type, then get back to step (4), and continue to wait for the connection command of the test application software; (5)测试应用软件向数据订阅服务接口发送订阅请求命令,由数据订阅服务接口打包之后将消息发送给测试服务软件,之后进入步骤(6);(5) The test application software sends a subscription request command to the data subscription service interface, and the message is sent to the test service software after being packaged by the data subscription service interface, and then enters step (6); (6)数据订阅服务接口接收测试服务软件转发的所述订阅请求命令对应的测试数据,数据订阅服务接口对测试数据进行解包处理,将测试数据提取后返回给测试应用软件,之后继续执行步骤(6)直至测试应用软件主动请求断开连接,从而完成一次数据订阅流程;(6) The data subscription service interface receives the test data corresponding to the subscription request command forwarded by the test service software, the data subscription service interface unpacks the test data, returns the test data to the test application software after extraction, and then continues to execute the steps (6) Until the test application software actively requests to disconnect, thereby completing a data subscription process; (7)数据查询服务接口等待接收测试应用软件的网络连接命令,由数据查询服务接口识别测试应用软件所要访问的测试数据库的类型,构造数据库网络连接字串,之后向相应数据库的监听端口调用连接函数申请建立网络连接,若网络连接建立成功,则获得该连接的句柄,用来与数据库进行数据通信,之后进入步骤(8);若网络连接失败,则向测试应用软件告知失败类型,之后重新执行步骤(7)继续等待测试应用软件的连接命令;(7) The data query service interface waits to receive the network connection command of the test application software, the data query service interface identifies the type of test database to be accessed by the test application software, constructs the database network connection string, and then calls the connection to the monitoring port of the corresponding database The function applies to establish a network connection. If the network connection is successfully established, the handle of the connection is obtained for data communication with the database, and then enters step (8); if the network connection fails, the test application software is notified of the failure type, and then restarts Execute step (7) and continue to wait for the connection command of the test application software; (8)测试应用软件向数据查询服务接口发送所需要查询信息的种类和参数内容,由数据查询服务接口将这些查询信息的种类和参数内容翻译成一个或多个相应数据库的SQL语句,将其发送给数据库进行查询操作,同时采用同步的方式等待接收数据库的返回消息,若在规定时间内收到数据库的返回消息,则对返回消息进行解包处理,将查询结果提取后返回给测试应用软件从而完成本次测试数据的查询流程,之后再执行步骤(8),直至测试应用软件主动请求断开连接;若在规定时间内未收到数据库的返回消息,则将错误码返回给测试应用软件,之后再执行步骤(8),直至测试应用软件主动请求断开连接。(8) The test application software sends the type and parameter content of the required query information to the data query service interface, and the data query service interface translates the type and parameter content of these query information into SQL statements of one or more corresponding databases, and converts them Send it to the database for query operation, and at the same time wait for the return message from the database in a synchronous manner. If the return message from the database is received within the specified time, the return message will be unpacked, and the query result will be extracted and returned to the test application software Thereby complete the query process of this test data, and then execute step (8) until the test application software actively requests to disconnect; if the return message from the database is not received within the specified time, the error code will be returned to the test application software , and then execute step (8) until the test application software actively requests to disconnect. 2.根据权利要求1所述的一种卫星自动化测试系统公共软件接口确定方法,其特征在于:所述卫星自动化测试系统中的测试应用软件的服务请求包括指令发送服务请求、数据订阅服务请求和数据查询服务请求。2. a kind of satellite automated test system public software interface determining method according to claim 1 is characterized in that: the service request of the test application software in the described satellite automated test system comprises instruction sending service request, data subscription service request and Data query service request. 3.根据权利要求1所述的一种卫星自动化测试系统公共软件接口确定方法,其特征在于:所述服务创建工厂是指采用设计模式中的工厂模式,实现创建服务的统一接口。3. The method for determining a common software interface of a satellite automated test system according to claim 1, wherein the service creation factory refers to a unified interface for creating services by adopting a factory pattern in a design pattern.
CN201210264420.1A 2012-07-27 2012-07-27 Method for determining public software interface of satellite automatic testing system Active CN102833015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210264420.1A CN102833015B (en) 2012-07-27 2012-07-27 Method for determining public software interface of satellite automatic testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210264420.1A CN102833015B (en) 2012-07-27 2012-07-27 Method for determining public software interface of satellite automatic testing system

Publications (2)

Publication Number Publication Date
CN102833015A CN102833015A (en) 2012-12-19
CN102833015B true CN102833015B (en) 2014-08-27

Family

ID=47336000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210264420.1A Active CN102833015B (en) 2012-07-27 2012-07-27 Method for determining public software interface of satellite automatic testing system

Country Status (1)

Country Link
CN (1) CN102833015B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897504A (en) * 2016-03-30 2016-08-24 上海卫星工程研究所 Satellite universal testing system data interaction method and system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281322B (en) * 2013-05-30 2016-06-29 莱诺斯科技(北京)股份有限公司 A kind of middleware system for satellite test data collection Yu control
CN103873134B (en) * 2014-03-20 2017-08-29 中国空间技术研究院 A kind of satellite data method for subscribing of compatible multiple data format
CN104410702A (en) * 2014-12-08 2015-03-11 畅捷通信息技术股份有限公司 Remote service request method, response method, request device and response device
CN104618502B (en) * 2015-02-15 2018-03-23 中国科学院遥感与数字地球研究所 A kind of joint debugging test platform for satellite data grounded receiving station net
CN106559129A (en) * 2016-11-22 2017-04-05 航天恒星科技有限公司 Satellite communication protocols emulation test method and system
CN115203306A (en) * 2022-07-19 2022-10-18 平安付科技服务有限公司 Data exporting method and device, computer equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1361446A2 (en) * 2002-05-09 2003-11-12 Agilent Technologies Inc Method and apparatus for generating electronic test programs and data structure
CN101739256A (en) * 2009-12-30 2010-06-16 中国运载火箭技术研究院 Universal interface system for integration optimizing software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1361446A2 (en) * 2002-05-09 2003-11-12 Agilent Technologies Inc Method and apparatus for generating electronic test programs and data structure
CN101739256A (en) * 2009-12-30 2010-06-16 中国运载火箭技术研究院 Universal interface system for integration optimizing software

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
卫星通用自动化测试系统体系结构研究;赵瑞峰;《信息技术》;20110430(第4期);65-72 *
孙波.航天器综合测试系统体系系统结构设计.《计算机测量与控制》.2009,第17卷(第3期),440-451.
航天器综合测试系统体系系统结构设计;孙波;《计算机测量与控制》;20090331;第17卷(第3期);440-451 *
赵瑞峰.卫星通用自动化测试系统体系结构研究.《信息技术》.2011,(第4期),65-72.

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897504A (en) * 2016-03-30 2016-08-24 上海卫星工程研究所 Satellite universal testing system data interaction method and system
CN105897504B (en) * 2016-03-30 2019-06-28 上海卫星工程研究所 Satellite General test macro data interactive method and system

Also Published As

Publication number Publication date
CN102833015A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102833015B (en) Method for determining public software interface of satellite automatic testing system
CN103297517B (en) Distributed data transmission method of condition monitoring system
WO2016045403A1 (en) Runtime environment configuration method, device and system
CN112328470B (en) Automated operation and maintenance test method, device, equipment and storage medium
WO2013135016A1 (en) Version construction system and method
CN105868936A (en) Intelligent operation and maintenance and overhaul system applied to integrated operation and maintenance and overhaul of power transformation equipment
CN112769901B (en) Rail transit signal equipment communication interaction method and system
CN111935177A (en) Service control method and device
CN117194156A (en) Unified monitoring operation and maintenance management method and system for multi-cloud platform
CN114205230A (en) Method, system, medium and electronic device for configuring cloud native network element
CN112463604A (en) APP detection system based on electric power integration terminal
CN107590208A (en) A kind of electric network data heterogeneous database data cut-in method of plug-in type
CN110569140A (en) A kind of operation and maintenance method and device
CN100531431C (en) Device for realizing maintenance of far end radio frequency terminal by local maintenance terminal
CN111769979A (en) A cloud resource orchestration method, system, terminal and storage medium
CN113297148B (en) Method, device and equipment for collecting service log data and readable storage medium
CN115146000A (en) Database data synchronization method and device, electronic equipment and storage medium
CN113570347A (en) RPA operation and maintenance method for micro-service architecture system
WO2017197829A1 (en) Test information management method and apparatus, and test case execution system and device
WO2023241680A1 (en) Edge node control method based on cloud computing technology, and cloud management platform
CN114356706A (en) Monitoring management system based on domestic equipment
CN114116679B (en) A multi-database environment operation and maintenance method and system
CN112367297B (en) Service control method and device
CN113760235B (en) BLE development and debugging system and method
CN112367296B (en) Service control 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